Page 1 of 1

How to set up Win2003server+Apache2+PHP5+MySQL5?

Posted: Fri Mar 16, 2007 2:50 am
by donnytjan
I wanna set up a domain name in my computer with the following OS/applz:
1. Win2003server
2. Apache2
3. PHP5
4. MySQL5.

The things I've done are:
1. successfully installed 1+2+3+4 packages
2. 2+3+4 has been configured correctly
3. I've edit c:\winnt\system32\drivers\etc\hosts to be:

#127.0.0.1 localhost
202.xxx.xxx.xxx http://www.mydomain-name.xxx
202.xxx.xxx.xxx mydomain-name.xxx

4. virtualhost directive in httpd.conf has been configured correctly.
5. I can go directly from my browser to:mydomain-name.xxx or http://www.mydomain-name.xxx
6. My IP address has been registered in my DNS server.

But, I still can not access it from another computers connected over the inet.
Can somebody help please?
How to bind correctly in this server?

Posted: Fri Mar 16, 2007 3:26 am
by Chris Corbyn
Well editing your etc/hosts file won't do anything for other computers. That file is purely for local name mappings.

You just need to make sure the relevant ports are open to run your services (i.e. not firewalled) then wherever you bought the domain name from, set the A records to be the same as your IP address. This *won't* work if your IP is not static. You need something like dyndns for that.