I have installed apache , php and mysql in my fedora machine. My computer is not connected to internet directly! Its connected through LAN to a computer with internet connection. Is it possible in anyway to host a small website from my computer? I don't have a seperate IP for my computer. So I don't know what to do for domain. Thanks in advance
its not easy to create a site without static ip address some websites offer this by using a software on your pc it is not recommended Regards Alex
due to following reasons 1. when you are hosting a website you need a dedicated pc,means you cannot use cpu for other works 2. power failure ,pc at home more prune 3. security issues ,virus problems 4. operating system normally windows 5. dedicated fast internet line which is not available at home atleast 2 mbps 6. network down due to bad isp 7. home pc not able to handle much traffic Regards Alex
Get a cheap hosting account, it cost 2-5 USD per month, and that will save you a lot of hassles, troubles and security concerns. It will me so much easier, safer, better access for your visitors and will of course increas uptime. Also, you will still have your own internet connection for yourself, not having to share it with someone who's watching your site.
For small site this is possible. Also with one external dynamic ip and lot of computers inside. First you must make a port forwarding rule in your router or firewall. From outside to inside. For example 25.25.25.25(your external ip). You must forward ports 80 and 443 from outside to your local ip (for example 192.168.10.10) Check if that works here ping.eu/port-chk/ Create a DynDNS account and register a subdomain whatever.dyndns.com. Follow instructions from here http://www.dyndns.com/support/ Than you can register a real domain and create a DNS CNAME record that points to whatever.dyndns.org Peoples who watching you site will use up speed of your connection, when you watching some site your down speed will be used. That will be a good experience, but you must know what are you doing. I' m also agree with arguments of kmap.
Thank you nikb! But configuring portforwarding is confusing. And further the routers are not in my control. How to do this? If anyone can explain?
You must have one or another box received from your isp. For example modem combined with router or firewall. There are lot of types and brands. What do you have?
not easy on a wifi if possible at all. have a read of http://www.boutell.com/newfaq/creating/hostmyown.html it may help a bit... first helpful article i found in google that went into detail. and see if you can manage to do all that article says first. or http://www.dslwebserver.com/ http://www.diywebserver.com/ http://www.redhat.com/magazine/022aug06/features/webserver/ To be honest, reasonable shared hosting is MUCH cheaper than the cost of the electric charges for leaving your computer on all the time, and no worries about all the php, mysql etc updates... also expect your hard drive life to drop drastically
BAd ISP and Disconnection inbetween will trouble you a lot.. once your net gets disconnected and reboots with a new IP.. you will have to configure it all again...!
I guess you can be hassle free just find free web hosting which is more reliable and you will solve your problem..(just if you do not want to spend money)
Where do you live? Some ISPs will not allow you to (they can terminate your connection), se be careful. It you want to host it with a dynamic IP I would use http://freedns.afraid.org/, but with hosting as cheap as $2.5/month why bother using your bandwidth and leaving your computer on all the time?
You don't need to connect your server to the internet to do this. If all you want to do is practice setting up a server and running sites, do it all on your local network. When we're setting up new configurations or servers we do it all on our internal network. We have a small 30U rack in our office with a number of servers, routers, and switches, and we do all our test set-ups, testing of new configurations, and software tests on this network first. New hardware is connected to this rack for set-up too. I'm not saying you need anything so complicated, but you certainly don't need to connect your server to the internet to practice set-ups and configs and then connect to them from another PC to see if it all works.