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. :)

Ndiswrapper *Update*

If you look at my previous post on ndiswrapper, you may have had some errors and you probably found some spelling errors on my part, but anyway, here is the easiest way to install your wireless drivers on ubuntu.

1. Open up the Synaptic Package Manager System > Administration > Synaptic Package Man.

2. Go to Settings > Respitories This will open a Software Sources window

3. Check all of the boxes.

4. Close the window and press Refresh back at the Package Manager

5. Search ndiswrapper

6. You should come up with the following results:
ndisgtk
ndiswrapper-common
ndiswrapper-source
ndiswrapper-utils
ndiswrapper-utils-1.1
ndiswrapper-utils-1.8

7. Mark all for upgrade

8. Hit the apply button and wait for them to install

9. Restart your computer

10. Open the terminal and enter ndiswrapper -i inffile.inf

11. Plugin your wireless card

12. Configure by going to System > Administration > Networking

13. Enjoy your wireless!