I'm going nuts here. I'm trying to install PHP 4.2.3 and Apache 2 on Win XP Pro, but I can't get it to work, and I don't understand where the problem is. I got apache up and running without any problems, but when I try to add PHP to it, I can't get the web server started. I get the error message: "The requested operation has failed!" in a popup, but nothing more, not even in the logs.
I'm sure someone out there must have successfully got this combination running:
* Windows XP Professional
* Apache 2.0.43
* PHP 4.2.3
Help, please...
Here are my installation notes from my fourth attempt, using a couple of hints I found on various sites:
I installed apache2 (2.0.43 Win32) using the file:
apache_2.0.43-win32-x86-no_ssl.msi
It's installed in C:\util\Apache2
I tested it, and it's running just fine!
I stopped it and installed PHP 4.2.3 using the file:
php-4.2.3-Win32.zip
It's installed in C:\PHP
I copied the two files
C:\PHP\sapi\php4apache.dll
C:\PHP\sapi\php4apache2.dll
to
C:\util\Apache2\modules
I added three lines to C:\util\Apache2\conf\httpd.conf
LoadModule php4_module modules/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
I renamed php.ini-recommended to php.ini and changed
session.save_path = /tmp
to
session.save_path = C:\WINDOWS\Temp
I've tried both to leave php.ini in C:\PHP and to move it to C:\WINDOWS
When I try to start apache, I get the an error message in a popup:
The requested operation has failed!
That's it! I don't know what's going wrong, and there's been nothing added to apache's logs since it was stopped before the attempt at installing PHP.
I would be very happy for any hint on what I should do!
Thanks,
Nojd
I'm sure someone out there must have successfully got this combination running:
* Windows XP Professional
* Apache 2.0.43
* PHP 4.2.3
Help, please...
Here are my installation notes from my fourth attempt, using a couple of hints I found on various sites:
I installed apache2 (2.0.43 Win32) using the file:
apache_2.0.43-win32-x86-no_ssl.msi
It's installed in C:\util\Apache2
I tested it, and it's running just fine!
I stopped it and installed PHP 4.2.3 using the file:
php-4.2.3-Win32.zip
It's installed in C:\PHP
I copied the two files
C:\PHP\sapi\php4apache.dll
C:\PHP\sapi\php4apache2.dll
to
C:\util\Apache2\modules
I added three lines to C:\util\Apache2\conf\httpd.conf
LoadModule php4_module modules/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
I renamed php.ini-recommended to php.ini and changed
session.save_path = /tmp
to
session.save_path = C:\WINDOWS\Temp
I've tried both to leave php.ini in C:\PHP and to move it to C:\WINDOWS
When I try to start apache, I get the an error message in a popup:
The requested operation has failed!
That's it! I don't know what's going wrong, and there's been nothing added to apache's logs since it was stopped before the attempt at installing PHP.
I would be very happy for any hint on what I should do!
Thanks,
Nojd