30
Apr

Create own server?

Author: admin

Hey,

I'm currently building a website in php with a mysql database. When im finished i would like to publish it on the internet, however there are no free providers out there who support a mysql database. I do have an old pc at home, is there any way i can set that one up to be a server? And how do you get your own adress (like www.mAx_KingFreAk.com should take you to my old pc)? How does it all work?

Thanks in advance!


Answer:
Add as much memory as you can get away with and turn that old PC into a “LAMP” server (Linux/Apache/MySQL/PHP/etc). Go on the web and download an installer CD of one of the popular Linux distributions. There's plenty of help online for anything you might want to do with a Linux server.

Once you’ve that going you can configure your router to forward incoming traffic directly to your new server (normally, uninvited data is refused at the router). A small complicating factor will be that the IP address you give the server on your LAN will be different from the public IP address everyone else sees your server at. Don't worry about it much but remember that fact.

Now to make your router findable. If you're paying for a static IP address, you can register your own domain name (GoDaddy.com, etc.) and point it at that IP address.

If you don't have a static IP address, you'll need to sign up for a Dynamic DNS account (DynDNS.com) and rig your router or server to periodically notify DynDNS what your current IP address is because it's changing all the time. Your router will be findable at “yourname.dyndns.org”, whatever it happens to translate to. Then you can point your registered domain name at the DynDNS name, which in turn points to your current IP address. A tiny convoluted but it can be made to work.

I'm all for setting up a home server as a hobby and encourage you to do so. But if you shop hard enough and don't need much you can find some minimal web hosting that does do MySQL for just a few dollars a month, and it'll have a faster connection to the Internet than you can get at home.


Answer:
It's a pain in the butt to try and do it…

You need to open port 80 on your computer

You need to open port 80 on your router

For a custom domain name you need to pay for it

For a domain name leached off of another one (ex. www.NAME.homeip.net) there are sites that provide this. www.dyndns.com i think is one (or google DynDNS)

That site will let you forward your ip to it

You need a static ip, you can do this by never shutting the server pc off and having it aquire an ip outside your router's normal range (192.168.1.11 for example as opposed to 192.168.1.100-199)

You need software to publish to the internet through apache or windows ISS

its a pain in the butt…if its for personal gain you can try to google guides but if you are doing it for a profit…just pay 5-10$ and have someone host it for you

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

This entry was posted on Wednesday, April 30th, 2008 at 2:29 pm and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment