I have installed MySQL, Apache, and PHP according to the directions in Kevin Yank’s book - Build Your Own Database Driven Web Site Using PHP & MySQL. The status bar of the Apache Service Monitor window does not show the version of PHP that I’ve got.
Apache has a neat little option: an error log. In it, I found the following two messages:
httpd.exe: Syntax error on line 492 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP/php5apache2_2.dll into server: The specified module could not be found.
[Fri Mar 30 14:11:15 2012] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.
With this, can you tell me how to correct my problem?
It CAN find php, however it can’t LOAD php. You are using Apache on Windows, which version of PHP did you download from php.net? There are a few that aren’t compatible with Apache. http://windows.php.net/download/
See the note in the left hand column, “If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP”
I am loading everything on a laptop that I’m using to go back and forth to a college class. Specifically, I downloaded the PHP folder directly to the C: drive as Kevin Yank’s book suggests. I thought that it should go into the Program Files folder of the C: drive, but that’s not what his book said to do. I clicked on the PHP folder, and some of the files say php5 (php5.dll, php5apache2_2.dll, php5apache2.dll, and so on), and underneath they say 126.96.36.199, so I guess I have version 5.2. I clicked on the Zip link and extracted the files, but I’m not sure about Thread Safe. There was a newer version of PHP on their site, but that is not what Kevin’s book said to use, so I went for the version he suggested.
Apache Software Foundation folder is in Program Files folder of C: drive. It’s version 2.2.
You do NOT want to install anything in a WAMP setup (Windows, Apache, MySQL, PHP with PHPMyAdmin) except MySQL in the Program Files directory. To do so would bring on immense headaches with the “protection” Windows affords that directory (you’ll have to put-up with editing the Windows\system32\drivers\etc\hosts file as an administrator). Best to UNinstall everything and start over again … and, yes, I learned this the hard way when converting to Win7.