In most cases it is to create a local test/development environment. Not everyone has the resources (money, space) for a full-blown web server, and it is bad practice to do your development on your live server (unless you have a separate web site/DB setup for testing- but even then, buggy code could still bring down your server while testing).
ok!, i've already have a small site on the free hosts and i'm using that for tests, so pls tell me what next?
Wait, did you mean that you want to load Apache onto a PC and use that for a production server? Can you give some more details about what you want to accomplish?
That's generally not a good idea. Yes, you can do it, but it's not a very stable platform.
There's a reason that people generally use a server instead of a PC for their web servers. In a nutshell, PCs are not designed for multiple users and long-term uptime. There's also the memory/hard drives/network throughput.
More specific pros/cons are probably better discussed in the Hardware Forum [webmasterworld.com].
What's next is usually opening a hosting account and moving your domain to that host. A server on your PC is fine for testing but when you're ready for prime time you will need a host due to the limitations mentioned, also because most ISPs won't let you abuse their resources.
|That's generally not a good idea. Yes, you can do it, but it's not a very stable platform. |
You can use VMware Workstation to install Linux for a test server. But setting a web server, even just to get one site online will incur a learning curve that you may or may not survive. The installation of Webmin can help a lot but again there is still a learning curve.
Unless you have this experience it will be much easier to simply get cheap shared hosting for your test site... cheap as chips these days.
It may be more useful to explain in English, without reference to server technology,
(1) what you want to do
(2) what (if anything) you're currently doing
Oddly enough, this is the same answer you'd get if you posted in this subforum with a question about how to, for example, word a RewriteRule. First figure out what you want to do. Then find the best way to make it happen.
Thanks to you all for ur replies, i've now realized that what next is to get a vps or even a dedicated server.