Instructions for installing Ubuntu Web Server on remote host
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
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:
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:
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
After that, we can access webmin via the browser by typing the address: https://10.xxx:10000/
Good luck!
You should read it
- How to Install Ubuntu Server
- How to Install phpMyAdmin on Your Windows PC
- Deploy KMS activation on Windows Server 2008
- How to install and configure WampServer
- 9 types of servers that can be hosted on Raspberry Pi
- How to install and configure MySQL server on Pi
- How to Install Tomcat in Ubuntu
- How to install MySQL on Ubuntu 20.04
May be interested
- Instructions for installing WordPress on the Vitual Server with Cloud9downloading and running internal wordpress servers is quite complicated. if you are a seasoned developer, you should set up a local server with xampp or wamp. but if you are a 'new' who just wants to 'mischief' install wordpress self-host, follow and follow the steps below.
- How to configure static IP address on Ubuntu 22.04 LTS and 22.10the ip addresses of most devices today are generated by the dynamic host configuration protocol (dhcp) server. the dhcp server dynamically assigns an ip address to your device when it is connected to the network. therefore, you have the opportunity to change this ip address from time to time.
- Ways to install Ubuntu on Windows, run in parallel or run separatelythere are many ways to install ubuntu on your computer, such as installing ubuntu from usb, cd, installing ubuntu running in parallel with windows, installing it
- How to install FTP Server on Ubuntuwhether you want to run an ubuntu server or simply want to remotely copy files, setting up an ubuntu ftp server is simple.
- Instructions for installing Windows Fonts on Ubuntuthis is one of the basic steps when setting up, installing and using the ubuntu operating system. one of the most popular and most commonly used font sets is the microsoft standard suite, for example times new roman, arial, verdana ... but not available in ubuntu.
- 9 types of servers that can be hosted on Raspberry Piraspberry pi is a versatile tool. you can use it to light up leds, write work emails, stream movies to old tvs/monitors, or even host game servers.
- Deploy KMS activation on Windows Server 2008this section details the process of building and enabling the capabilities of a kms host on a specific server operating system. the operating system decides which kms host key can be installed on that host.
- Remote management on Windows Server 2012 with Remote Management Serviceremote management service (remote management service) is one of the most important parts related to windows server 2012 administration. server administration is done through windows management instrumentation (wmi). wmi instructions can be sent via the winrm 'remote management' network.
- How to configure DNS Server on Ubuntu Server 11.04dns server is a server with domain name resolution function. in this article, we will detail the steps to install and configure dns server on linux with ubuntu server version 11.04.
- What's new in Ubuntu 18.04? Should updatethe ubuntu 18.04 lts 'bionic beaver' update promises to bring a host of new features to linux computers. if you're wondering what's new in ubuntu 18.04? should i update ubuntu 18.04 or not? the answer will be given to you in tipsmake's article below