In this chapter we have gone through all the knowledge required to set up a Linux web server from scratch, and explained in detail, step my step, the procedures and command involved. We have also provided the first rudiments of Linux system administration and filesystem management.
Despite the lengthy explanations in the previous sections, once you have some familiarity with Linux, and have an Ubuntu desktop linux installed on a machine, setting up a web server is actually a matter of a few minutes.
In this section we summarize, for quick reference, with no further explanations (please refer to previous sections), all the commands required to install the server software and configure the machine so that each user have access to an individual web folder with a dedicated address.
”andrea@ubuntu:~$ sudo apt-get update”
Installing OpenSSH Server
”andrea@ubuntu:~$ sudo apt-get install openssh-server”
”andrea@ubuntu:~$ sudo apt-get install tasksel”
Installing LAMP server
”andrea@ubuntu:~$ sudo apt-get install lamp-server”
Activate module userdir:
”andrea@ubuntu:~$ sudo a2enmod userdir”
Edit main Apache configuration file
”andrea@ubuntu:~$ sudo nano -w /etc/apache2/apache2.conf”
so as to add line:
Comment out a directive in the apache php configuration file:
”andrea@ubuntu:~$sudo nano -w /etc/apache2/mods-available/php5.conf”
Comment out (add # at the beginning of the line) all the lines from:
”andrea@ubuntu:~$ sudo service apache2 restart”
”andrea@ubuntu:~$ /etc/init.d/apache2 restart”
Done! If you have comments or issues or success reports (most welcome!), please share by posting below.
- 2-1: Installing Ubuntu Linux
- 2-2: The Linux Filesystem
- 2-3: Basic Linux Shell Commands
- 2-4: Installing and using Open SSH Server for remote connections
- 2-5: Installing a LAMP (Linux, Apache PHP, MySQL) Server
- 2-6: Apache Web Server Configuration
- 2-7: Setting up an Ubuntu Linux Web Server – Reference Summary