Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installation problem: XP + apache2 + PHP4.2.3 1

Status
Not open for further replies.

Nojd

Programmer
Apr 16, 2002
5
SE
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 gave up and downloaded Apache 1.3.27 instead. Filename:
apache_1.3.27-win32-x86-no_src.msi
It's installed in C:\util\Apache

I made the same changes to this apache installation as I did for apache2, and it works! I suppose I'll just have to settle for the old apache, and that should be good enough, at least as long as I'm only using it for development.

I just realized that the other apache modules have the extension .so, but that the PHP modules have the extension .dll. It's the same for both apache versions though, so that's probably ok.
 
Hi

I don't know whether you have the problem solved or not.
You can use a program called Foxserv ( that will automatically install both programs for you.It will also install MySQL, but you don't have to use it if you do not want to. According the the docs it will wlso install on XP.

[wiggle]
 
Thank you!

I had "solved" it by using an older version of apache, but I tried the foxserv alternative just now, and it worked out great!

[2thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top