Instructions for installing Ubuntu Web Server on remote host

In the following article, we will show you how to install and configure Ubuntu web server system on remote host. To do this, you need to prepare several factors as follows ...

TipsMake.com - In the following article, we will show you how to install and configure Ubuntu web server system on remote host. To do this, you need to prepare several factors as follows:

- SSH access protocol to remote host

- The host must be absolutely 'clean', meaning that no software has been installed and no new accounts have been created

To start, open Terminal (if in Windows, you can use PuTTY) and make an SSH connection to the host . The first thing to do here is to update the current status so that the host can use all the software and applications:

sudo apt-get update && sudo apt-get upgrade

If you are logged in as a root account, it is best to change your password and create another account, because it works directly with a relatively risky root account if you have not yet mastered the necessary techniques. The next operation will be applied on the newly created account.

To change the password of the root account:

passwd

Create new:

adduser # username "replace" with your account name

The system will ask you to enter a new password and information

Instructions for installing Ubuntu Web Server on remote host Picture 1Instructions for installing Ubuntu Web Server on remote host Picture 1

Assign this new account to the sudo group:

adduser username sudo

When finished, we must disconnect the current SSH and log back in with the new account. The next thing to do here is to install the LAMP Server , since there is no Synaptic or Ubuntu Software Center here, you will have to do it all via Terminal :

sudo apt-get install tasksel

sudo tasksel install lamp-server

During installation, the system will ask the user to declare some information as follows:

Instructions for installing Ubuntu Web Server on remote host Picture 2Instructions for installing Ubuntu Web Server on remote host Picture 2

When finished, open your browser and type in the domain or IP address of the remote host. If it shows the results of It Works as shown below, we have succeeded:

Instructions for installing Ubuntu Web Server on remote host Picture 3Instructions for installing Ubuntu Web Server on remote host Picture 3

To secure MySQL, you type:

mysql_secure_installation

then the system will ask a few questions as follows:

- Change the root password? If you already have a strong and secure password, just press n

- Remove anonymous users? Press y

- Disallow root login command? Press y

- Remove test database and access to it? Press y

- Reload privilege table now? Press y

So basically, we have completed the process of setting up the web server system on the remote host.

Some other components:

Below is a list of some essential applications and utilities. Such as:

1. phpMyAdmin :

Basically this is an installation program, setting up the database easily with a graphical interface. Since it can be accessed via the web interface, many users have thought that it will not guarantee security and become a security vulnerability for hackers to attack and database systems with brute force. Type the following command to install:

sudo apt-get install phpmyadmin

Then, you open the browser and type in the address http:/// your-ip-address / phpmyadmin , if you see the page phpMyAdmin means it was successful. Otherwise, you must assign a few extra lines of code to Apache 's conf file:

sudo nano /etc/apache2/apache2.conf

Add the following line:

Include /etc/phpmyadmin/apache.conf

Save changes and exit the editing program. Then restart Apache :

sudo /etc/init.d/apache2 restart

Some steps to configure Apache in Ubuntu can be found here.

2. Installing FTP Server:

If you want to access the remote host via FTP , we need to install the FTP server utility. There are several FTP applications that can be used, the example here is vsftp:

sudo apt-get install vsftpd

And also don't forget to assign an existing user account to the ftp group:

sudo adduser ftp username

3. Webmin installation :

Webmin is a free web-based control application for administrators to manage server systems without having to use the command line:

sudo nano /etc/apt/sources.list

and assign the following code to the end of the file:

deb http://download.webmin.com/download/repository sarge contrib

deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

After that, enter the GPG key key:

wget http://www.webmin.com/jcameron-key.asc

sudo apt-key add jcameron-key.asc

Webmin installation:

sudo apt-get update

sudo apt-get install webmin

Instructions for installing Ubuntu Web Server on remote host Picture 4Instructions for installing Ubuntu Web Server on remote host Picture 4

After that, we can access webmin via the browser by typing the address: https://10.xxx:10000/

Good luck!

5 ★ | 1 Vote