I have Apache 2.2 running under Windows in my new (well, relatively) laptop. Now, I am in the process of installing PHP 5, as an Apache module. for same reason: Off-line testing.
Last I tried installing PHP on Windows the install instructions were full of mistakes. I had similar problems the time before that as well, and those two attemps were separated by one or two years, so I'm guessing they don't care much about Windows users.
Googling gave me a site which has very detailed instructions on http://www.tanguay.info/wamp/installPhp5.php5, hopefully it'll help.
Effovex,
Thanks for finding that site. I just spend a couple of hours going through it, and I'm now running Apache and MySQL on my PC. :-)
Now I'll actually be able to test things at home before loading them to the live environment.
John
I've been using http://www.firepages.com.au/ for a number of years for my offline testing. It comes complete with Apache, PHP and MySQL, and it installs it all for you.
I found the cause! If anybody is using, or intend to use vhosts, the following story may be of interest:
I started with the question "Why 404?", and did some nosing around and found the cause. I was barking at the wrong tree! The cause is not PHP, but it is actually due to Apache and vhosts.
Let me explain:
I use vhosts for each site and do not use the main htdocs directory of Apache.
I had put the test.php file in the main htdocs directory, and was trying to call it up by httpd://localhost/test.php, Then getting the "404 Not Found" message.
But now comes the surprise:
I made sure that there was no index file in the main htdocs directory, and called up httpd://localhost.
Instead of getting the directory listing, I got the index page of the first registered vhost (in the order the vhosts were entered in to the httpd.conf file.)
I moved the test.php file to one of the vhosts, and everything is fine.
Solved one problem, uncovered another! And, I have no explanation to offer......
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)