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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
donnytjan
Forum Newbie
Posts: 2
Joined: Fri Mar 16, 2007 1:07 am
Contact:

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

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply