How to setup a machine to host my websites to the world - with my own url?
I have been playing around with my blog, alot. I have couple of old computers laying around i want to put to use.
I was wondering if there is a way to setup a server, then will be linked to a url that i buy and server pages and maybe even install wordpress.
Any information on setting that up on Ubuntu 10.04 Desktop would be amazing.
Please and thank you.
Setting up a webserver on Ubuntu is very easy to do you can either use apt-get and install Apache, PHP and MySQL manuall or use tasksel to install the LAMP stack.
sudo tasksel install lamp-server
https://help.ubuntu.com/community/ApacheMySQLPHP
Once that's done you'll be able to setup your blog on the local machine and get it running.
You can follow the guide here for how to install wordpress under Ubuntu or follow this one for a generic guide on how to get installed.
--
Next steps
- Buy the domain (I get mine from 123-reg.co.uk)
- Point domain to your IP address
- If you have a static IP simply point the domain to that IP.
- If you don't have a static IP you'll need to use a service like dyndns to update the DNS records as your IP changes.
- Depending on your network setup you will then either need to use port forwarding to forward port 80 to your machine running apache or use NAT on your router to connect your public IP address to the IP of your machine.
--
Some other points
- You would be better using Ubuntu Server if possible on the machine as its more designed for the task and there is no need for a GUI on a web box.
- If your website / blog becomes popular you may find your internet connection is not capable of handling the load as most home internet connections do not have very good upload speed.
Wordpress is in the universe repository. You can install via apt-get or synaptic and all the dependencies will get pulled in. More documentation here.
To host a server, you need an ISP that gives you an external static IP address, which most do, but you usually have to ask for a static IP. Then it's a matter of getting a domain pointed to that address and opening a hole in your firewall.