How to 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.

Instructions

    • 1

      Open the Command Prompt on Ubuntu by clicking "Applications," selecting "Accessories" and choosing "Terminal."

    • 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.

    • 3

      Type "sudo a2enmod userdir" then "sudo /etc/init.d/apache2 restart" to create the user directories.

    • 4

      Type "cd" to go to the main folder.

    • 5

      Type "mkdir public_html" [sic] to create a folder for pages for people to view over the Internet.

    • 6

      Close the Command Prompt.

Tips & Warnings

  • Use OpenOffice or NVU to create web pages, then save them to the Public_html files.

  • Many ISPs have policies against people using their computers as web servers. Contact your ISP to ensure that it is OK to set one up.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured