Getting Started

This is you Getting Started Guide.

Contents
Getting Started 

Securing your Server


Hosting your Website


Troubleshooting

Common Questions

Getting Started


By default every Digitizedhost VPS is deployed with ssh enabled. This allows you to access your server by terminal. You can refer to connecting to your VPS in Common Questions Guide. 

This Guide assumes you already received your "Welcome Email" which includes notification of your newly deployed VPS and its details.

1. You can start by connecting to your server via ssh for the first time.


Securing your server

This is the time you might consider Adding Users, so you don't have to maintain and operate your server with your root user.

To Add new user

1. You can use the "useradd" command this works on both CentOS and Ubuntu.
$ useradd

2. Then enter the password for this user by typing in the passwd command and you will be asked to set a password for this user.
$ passwd
Add your newly created user to sudoers list

It is safe to use your newly created username to perform daily routines since it is really dangerous and harmful if you regularly use your root user. Adding your new username to perform sudo tasks when needed.

1. Type in on the terminal and issue these commands.
$ sudo adduser admin

This must be done from an account that has admin rights, such as your root account.


Securing your SSH server






Hosting your Website


This applies if you don't have the basic LAMP stack pre-installed and you wish to manually install your own webserver applications.

This guide will help you get started with hosting your website. First you need a Web Server, there are a lot. For this guide we are going to install Apache Web Server, the world's most popular web server.

1. Installing and Configuring Apache Web Server
Installing Apache Web Server.
Ubuntu
$ sudo apt-get install apache2
Centos
$ sudo yum install httpd
Note: This is typically installed with CentOS by default, just incase it is not. You may manually install it by issuing the above commands to install it.

Optimizing Apache
1. First, backup your configuration file just to be safe you messed up yoru configuration.
$ sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.backup
2. Use your favorite text editor to view and edit the configuration file.
$ sudo nano /etc/apache2.apache2.conf
3.


It is time to upload your files to the server via FTP clients that support sFTP. You may check XX for further details.

Installing sFTP client FileZilla





 
  • 0 Users Found This Useful
Was this answer helpful?