Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up an Apache server with php, mysql and others all on windows

Status
Not open for further replies.

neuromancerzero

IS-IT--Management
Dec 18, 2005
7
US
Ok. I want to set up a server on windows xp. I have apache installed and its connected with my domainname. What is the folder i put stuff into for the website?
 
It goes in the folder specified as "DocumentRoot" in your httpd.conf file.
 
Ok. My friend tells me she can't access the site. Its theofficialnowhere.com I don't know whats wrong with it. If you could help. I would be so grateful.
 
The first problem is that 192.168.1.18 is your private IP address. You need to change the DNS server A record for this domain to be your public IP address.
 
do i want the default gateway? not the subnet mask. I know that. when i type ipconfig in the command prompt i get my IP adress, the subnet mask, and the default gateway. Well, i'm gonna try the defautl gateway. here we go.
 
Yes - your dns "A" record needs to resolve to your public ip address. I ran dig on that domain before reading smah's reply so I'll just add my 2 cents. Your public ip cannot be dynamic. That means it can't change all the time or your dns records (domain name) will point to the wrong ip. You will need to get a static ip from your isp or use a pointer service such as dyndns or dns2go. These services give you a script that will keep their dns servers up to date with your current ip address.
 
Yes, that's why I said 'first problem'. Neuromancerzero, if your web server is behind a router device, the link that RhythmAce gave you should be the same as the WAN IP address of the router which can be found within the administration functions of the router. Besides, you'll have to get in there anyway to set up port forwarding to have TCP port 80 forwarded [from the WAN IP address] to the internal address (192.168.1.18) of the web server.
 
BTW, for the sake of clarity, that 'Yes' was refferring to RhythmAce's discussion of static & dynamic public IP addresses.
 
Neuromancerzero, I check your dns records tonite and I see that you made a change but you are still using a private ip address. This type of address is not valid outside of your local network. You cannot use anything that starts with 192.168.*.* or the subnet mask 255.255.255.0. Please do as smah says and use the same ip that you used for the wan ip of your router. If you did not enter the number yourself and have it set to get the ip from a DHCP server, then you have a dynamic ip and need to use a pointer service.

 
1. Verify that your web server is working. Visit " (not " from your computer or, better yet, another computer on your home LAN.

2. Using a browser, visit " That will show you the public IP address that the Internet can see.

2a. Configure your DNS pointer service to use your public IP address with your domain name.

3. Configure your router to forward port 80 to your PC. There's probably a setting called something like "applications" or "forwarding".

4. Test from the Internet. Be aware that some ISPs block web traffic to their customers, so there might be more work to do.

Any address beginning with "192.168" cannot be seen on the Internet. That's one of the designated private ranges.
 
Ok. I have a DynDNS account and want to use a pointer with the server. Will this work?
 
What service do i set up with it. The web hop? the Dynamic dns? Do i need to transfer my account to them. I would rather not. I am with godaddy. Do they have a service like this?
 
I like for Dynamic DNS- it has a lot of versatility in its interface.

I registered the domain through GoDaddy and then pointed the nameservers to the ones provided by afraid.org.

Then, I downloaded a tool from the site that keeps my IP address updated, installed it and it works flawlessly.
 
If i use this tool, do i still need to make a hole in my firewall which will send port 80 to the computer? I'm not at home, but i'm pretty sure that the firewall is a cisco.
 
yes, you still need to open up your firewall for whatever ports are being used by your server(s). This simply keeps your IP address up to date.

*Note: sometimes, ISPs block port 80 (and FTP(21)) from access because they don't like people running servers. If you open your firewall all the way, have the right IP and an external user still can't hit the site, try changing to another port. --The nice thing about afraid.org also, is that their domain forwarding also allows for port access (i.e. for just this type of problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top