[SOLVED] Apache 2.2.3, PHP 5.1.6, Win XP Pro SP2 Install
Posted: Fri Oct 27, 2006 1:49 pm
Hi.
And there was me thinking only noobs got stuck on getting a web server up and running...
I installed Apache with the Windows installer. Apache works fine on it's own, but when I installed PHP (manually) and came to starting the Apache service again, I get "The requested operation has failed!". When I go to Apache's test configuration DOS window thing, it says something along the lines of "Error on line xx of httpd.conf. Cannot load D:/PHP/php5apache2.dll into the server: the specified module cannot be found.". Obviously php5apache2.dll is actually in that folder. To be on the safe side, I copy/pasted it into as many useful folders as I could think of too, D:/WINDOWS, D:/WINDOWS/system, D:/WINDOWS/system32, D:/Program Files/Apache Software Foundation/Apache2.2/bin. I also did the same with php5ts.dll and php.ini.
I've done the environmental variables thing, with both the PATH and PHPRC variables - adding D:\PHP to both - and restarted after each one.
I've added this to my httpd.conf:
I've tried deleting and re-typing the LoadModule line, I've tried it without quotes, I've tried it with backslashes, I've tried changing it to point at the WINDOWS folder, WINDOWS/system, WINDOWS/system32, all with backslashes and forwardslashes. I've done the same with the PHPIniDir line.
and changed this:
Not that my php.ini should matter content wise with regards to this error but I have uncommented 3 extensions, curl, mbstring and mysql.
I've searched the web about this, many, many people have exactly the same problem, but that doesn't put me off, as when I last installed the web server I found just as many people having the same problem I had before, but I got around it. Many people on forums I've seen recommend using an older version of Apache, but that shouldn't be necessary...?
Any help much appreciated, and I am open to noob suggestions, I've probably missed something very easy.
Ta.
Edit: Just found this a few threads down:
Edit: Yep, that was it. Uninstalled Apache 2.2.3 via Add/Remova Programs, then deleted the Apache Software Foundation folder to save confusion. Then I installed Apache 2.0.59 with the Windows installer, modified the httpd.conf like I did before, restarted, and voila.
It really should be documented on the PHP website that it doesn't work on the latest version of Apache.
And there was me thinking only noobs got stuck on getting a web server up and running...
I installed Apache with the Windows installer. Apache works fine on it's own, but when I installed PHP (manually) and came to starting the Apache service again, I get "The requested operation has failed!". When I go to Apache's test configuration DOS window thing, it says something along the lines of "Error on line xx of httpd.conf. Cannot load D:/PHP/php5apache2.dll into the server: the specified module cannot be found.". Obviously php5apache2.dll is actually in that folder. To be on the safe side, I copy/pasted it into as many useful folders as I could think of too, D:/WINDOWS, D:/WINDOWS/system, D:/WINDOWS/system32, D:/Program Files/Apache Software Foundation/Apache2.2/bin. I also did the same with php5ts.dll and php.ini.
I've done the environmental variables thing, with both the PATH and PHPRC variables - adding D:\PHP to both - and restarted after each one.
I've added this to my httpd.conf:
Code: Select all
# PHP Stuff
LoadModule php5_module "D:/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/PHP"and changed this:
Code: Select all
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>I've searched the web about this, many, many people have exactly the same problem, but that doesn't put me off, as when I last installed the web server I found just as many people having the same problem I had before, but I got around it. Many people on forums I've seen recommend using an older version of Apache, but that shouldn't be necessary...?
Any help much appreciated, and I am open to noob suggestions, I've probably missed something very easy.
Ta.
Edit: Just found this a few threads down:
I'll get Apache 2.0 and see what happens.feyd wrote:php5apache2.dll is not built for Apache 2.2, but 2.0 last I checked.
Edit: Yep, that was it. Uninstalled Apache 2.2.3 via Add/Remova Programs, then deleted the Apache Software Foundation folder to save confusion. Then I installed Apache 2.0.59 with the Windows installer, modified the httpd.conf like I did before, restarted, and voila.
It really should be documented on the PHP website that it doesn't work on the latest version of Apache.