Installing Apache Web Server - Ubuntu 14.04
So you have a version of Ubuntu running on an unused computer somewhere. Why not turn it into a fully functional web server! Why pay to host your site somewhere? YOU can be the Server Administrator! Brush up on your Linux skills, because we are going to install Apache Webserver.
* * * * *
At the command line, type:
Some things to keep in mind:
- Apache stores your web files in the /var/www directory.
- Apache is defaulted to port 80, if for some reason your ISP blocks this port I recommend changing to port 8080. To do this you need to open the ports.conf file located in /etc/apache2/ directory.
To edit this file I would use:
While in the file look for "Listen 80" simply change this to "Listen 8080". Lastly find "VirtualHost *:80" and change the 80 to 8080.
Now this is an important step. You need to restart Apache after you save the changes.
Now that the port has changed, open a browser and type: http://localhost:8080.
* * * * *
Now set up FTP to upload files.
Edit vsftp.conf file:
Change the following:
To exit nano, press ctrl+x, Y to save, press enter when it displays the file name. Restart ftp:
Log into FTP using the servers IP address with a FTP program such as FileZilla. Logging into the FTP site will go to the user folder on the system. Create a shortcut in the user folder to direct to /var/www:
Take ownership of the webroot:
Good luck and thanks for reading!