Setting Up a Web Server in Ubuntu!

Have you ever just wanted a nice web server for perhaps hosting a blog, or even hosting a full time website, you can do it easilly with a) An PC (can be old) b) An Internet Connection (obviously) c) A Router the supports DMZ-Plus (I’ll go into further detail about this later) d) A Copy of Ubuntu.

Step 1: Install Ubuntu (If you haven’t already) on the PC of yours. Any version after 6.10 will do.

Step 2: Open up a terminal and run the following commands:

sudo apt-get install apache2
sudo apt-get install php5

Step 3: I am assuming you have some sort of website that you have planned to put on this website, so with that said move your index.html and the other pages to the /var/www folder. In the terminal you can run this command:

sudo mv index.html /var/www

Step 4: As mentioned earlier, I said I would explain a little bit of DMZ Plus. Basically, It’s a way for your router to forward its ports to a computer of your choosing. That said, it depends on your router how to set this up. If you are unsure check the support documents that came with your router. Enable DMZ-Plus on your router.

Step 5: To access your website on the World Wide Web. You will have to know your IP. If you don’t know just check whatsmyip.org.

That’s it. I will post soon about using No-IP and accessing your website from a subdomain instead of an IP address, I think your friends would find it much easier to remember. :)

One Response to “Setting Up a Web Server in Ubuntu!”

  1. Gurgu Says:

    Thanks


Leave a Reply