Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
Why do you want to set that up on Ubuntu Desktop? –  Li Lo Aug 14 '10 at 14:25
3  
Before you even attempt this, make sure you're not violating your telephone company's terms of service by doing so. –  David Thomas Aug 14 '10 at 16:15
add comment

3 Answers

up vote 5 down vote accepted

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.
share|improve this answer
    
thanks for the help. I have 50MB - down and 2MB - up is that good enough? How much traffic could that potentially handle? –  myusuf3 Aug 14 '10 at 15:11
3  
@garbage: Wow. WhatI would give for 50MB/s downstream! –  Nathan Osman Aug 15 '10 at 4:24
    
I have a similar connection 50MB down and 1.5Mb. I can't give you a precise figure on how much it can handle, I have run test websites on it but that has only ever been for 1 or 2 people to look at. Hosting a bigger site would really depends on your site, the number of simultaneous users on it and what else your using the connection for at the time. –  Mark Davidson Aug 15 '10 at 9:02
    
@george its nice when downloading :) @Mark Thanks! –  myusuf3 Aug 15 '10 at 18:14
    
2MB up is not sufficient; you would need a higher upper bandwidth limit. Don't forget you'll be sharing that 2MB with other machines on the network, and other programs on your server. –  Burhan Khalid Dec 8 '11 at 5:59
add comment

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.

share|improve this answer
    
With dyndns I don't believe you need a static IP. –  Erigami Aug 15 '10 at 4:27
add comment

If you are doing this for the experience or fun of it, rock on.

If you are doing this because you want to have a reliable website, don't bother. Homes make lousy datacenters for the same reason that website hosting costs money: ensuring the power stays up, the net stays up, the server and the applications are up is capital and labor intensive which is most efficiently amortized across a server farm.

Some routers support a "roaming" DNS server like http://www.dyndns.com/ which allows you to maintain a static name even though your ISP may shuttle your IP address around dynamically, but the caveat of "this may irritate your ISP" does apply.

(disclosure: I have a free DynDNS account for no really good reason, it works on the odd times I've tried it, I don't use it for anything important, my ISP is very liberal and I have no connection to DynDNS aside from that.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.