Think about the running cost of your server. If you intend to operate the server commercially it does not make economic sense to run your own server on your own premises. A basic x86 PC is about 300VA thus 0.3kVA * 24 * 365 = 2628kVA/hr (units) @ 10p = £262.80. This is a fair few pints of beer for 24/7/365 web server! Obviously less power will save you money.
Ideally you'll need a Static IP on your (assume) ADSL. This is about £5 a month [BT]. I know you can get it cheaper but needed to point this out. Also you upload speed will be limited, probably to 512kbps. More than 10 users and it'll be less than dial up speed for your users!
A basic virtual host is about £40 a year.
From your post I can assume you "just want to know" rather than "i need to know".
Irrespective of which operating system you choose to learn "how to" on, it's not easy. Then again if it was easy, we'd all be doing it!
Knowledge of TCP/IP v4 & v6, HTML, XML, CSS, PHP, A Records, MX records, ASP, Cookies, JScript, VBScript, .NET, Linux, Apache, Exim, MySQL, Firewall (IPTables), Network Routing, Nodes, HTTP, NTP, UDP, HTTPS, Network Ports, Perl, java, virtual machines, concurrency, transactions, ad nausuem...basically any software technology of the last 25 years, will be helpful but not essential!
Simply put you need a domain name (DNS provider), hosting and a website.
Lesson One - Domain name & DNS
All of these require an address where anyone in the world (unless your country, internet-service provider, network provider, etc. decides you are not allowed to see it) knows where it is.
Your domain name is your unique verbose address. There is a type of web service, called DNS, that resolves domain names to actual zero-and-one "physical" addresses. This can be likened to the postcode and your address. Every UK "address" has been given a unique code which can be looked up to find the Actual address.
Self-hosting is what you are proposing to do. I would strongly advise that you at least use a domain name provider to register your domain name and for them to hold the DNS A records for your domain name. This costs about £10 per year. There are loads of domain name providers. If you get pretty serious you could get what's called a Static IP address. I would also research Dynamic DNS providers as well which can save you money. There are good and bad, the good and bad depend who you speak to. Find one that works for you. I use Easily
but you don't have to.
Lesson Two - Hosting
Hosting (Having) a website can be:
on a hosted server;
on a virtual hosted server;
You are proposing to be self-hosting. This means you need to build a webserver (the whole point of your post). Minimum is:
1 - Any x86 PC with two network cards (I prefer one network, one ASDL(?) (oh yes) trust no-one!)
2 - I would suggest you buy Red Hat Linux 9 Bible (Christopher Negus) ISBN 0-7645-3938-8 (or whichever flavour he wrote about last!
). Best £33.95 I've ever put on expenses. (IGL - Best 1p you'll ever spend on Amazon
N.B. Other booksites are available!)
Lesson Three - Website
Where do you start? Gosh. You could do it in a text editor:
However I feel the best "learning tool" is (get ready to cringe) MS Visual Web Developer 20xx Express. It's free and it just works for "simple" websites, HTML/CSS based anyway. You don't need to use MS technologies.
Then learn about client side scripting (JScript/VBScript).
Then learn about server-side PHP\ASP scripting.
Either learn by server to website (1-2-3) or website to server (3-2-1).
My suggested learning path for you is:
Learn about websites - Registering a domain name; HTML\CSS on a virtual hosted server; PHP on a virtual hosted server.
Set up your server - (The book I mentioned will give you a lot of this knowledge or be a good initial reference to spring board from.) Setting up a "locked down" minimum Linux installation; Mounting and ISO Package installations of Linux deamons: dhdcp, iptables, squid, apache;
DNS - Dynamic DNS & DNS A Records.
Once you've grasped the "basics" above, the world's your oyster, literally!
Ian Lowson MIET
Do or do not, there is no try!
05 December 2011 at
09:04 PM by