How Do You Install An Apache Web Server On Ubuntu?
When using Ubuntu, you can also set up your operating system to act as a web server. This allows other people to connect to your PC in order to view web pages on it. In order to use Ubuntu as a web server, however, you will need to download a program known as Apache onto your PC. Apache is a web-server program that allows computers to set up a folder containing web pages. Step 1 Open the Command Prompt on Ubuntu by clicking “Applications,” selecting “Accessories” and choosing “Terminal.” Step 2 Type “sudo apt-get install apache2”. Note that you may need to enter your password to prove you are an administrator. This command downloads Apache2 to the PC and installs it. Step 3 Type “sudo a2enmod userdir” then “sudo /etc/init.d/apache2 restart” to create the user directories. Step 4 Type “cd” to go to the main folder. Step 5 Type “mkdir public_html” [sic] to create a folder for pages for people to view over the Internet. Step 6 Close the Command Prompt.