Forum Moderators: phranque
If you intend to do production work, I'd suggest you use Apache 1.3.something... Apache 2.0 is not yet ready for non-experimental use. I seem to recall problems with PHP specifically, and you might want to ask around, or try a site search.
I suspect that you'll get better advice on Monday, when there are more people here.
Jim
To check, open up a command prompt and enter:
netstat -an
You are looking for something listening on port 80 - a sign that there's a server running.
This could also be a firewall issue, so it may be worth turning off the MS firewall and any third-party firewall before installing. Paranoia suggests not being on the internet when you do this!
If you decide to stick with Apache 2, feel free to sticky me while this is fresh in my mind, although jdMorgan has a valid point about sticking with 1.3. If you sign up for PHP hosting somewhere it's likely to be on 1.3, and there are many reasons to have your dev environment as close as possible to your live one.
There was an issue with having spaces in the file directory when using Apache 2x and PHP as of a few months ago. I would suggest not installing it in Program Files for obvious reasons. I could be out of date and am open to correction :)
I've got all my server apps and addons top level of C in a folder called server. All the servers config files are top level of the D drive so to aloow for easier backups.
ject
If so, typing in 'http://localhost' in your web browser should bring up an Apache holding page.
If you chose something other than 'localhost' you'll need to add it to your hosts file.
If you go into C:\windows\system32\drivers\etc, open up 'hosts' in Notepad, add another line in the style of the localhost entry but using the name you specified for Apache.
Nothing happens? no error page or nothing no?
Have you looked in services and applications yet to see if it is running as a service?
Right click on My Computer>Manage>Services and Applications>services...
This shows a listing of all ther service that are running on XP. Somewhere in there if installed correctly should be the lovely Apache 2.
You can right click on it to see its properties to see how its set to start.
127.0.0.1 vs localhost
127.0.0.1 will *always* work (er.. assuming the server works at all). You should not have to put that in anywhere, since it is the local loop-back TCP/IP address and your machine should always know itself by that address.
localhost will *also* work if you have this in your httpd.conf
ServerName localhost
Steel,
what is your DocumentRoot set to? Look for a line like
DocumentRoot "C:/htdocs"
It should point to a directory that has files. Make sure that dir has files named index.html and index.htm that have *something* (anything) in them (like: "This is index.html").
Now try again. Anything happen?
Tom