Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: PHP 5.2 not working with Apache 2.4 |
|
Author |
|
Adeptus
Joined: 23 Jul 2020 Posts: 2
|
Posted: Fri 24 Jul '20 3:08 Post subject: PHP 5.2 not working with Apache 2.4 |
|
|
I'm having trouble getting PHP 5.2 running under Apache 2.4.
I have downloaded php-5.2.17-Win32-VC6-x86.zip from windows.php.net, and php5apache2_4.dll-php-5.2-win32.zip from Apache Lounge. Apache 2.4 (httpd-2.4.43-win32-VC15) also from Apache Lounge.
I can run Apache with PHP disabled, and I can run PHP directly from the commandline, but I can't get them to work together.
Error in the event log is:
Quote: | The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 585 of C:/Program Files (x86)/Apache Group/Apache24/conf/httpd.conf: Cannot load C:\\Program Files (x86)\\Apache Group\\Apache24\\PHP 5.2.17\\php5apache2_4.dll into server: The Apache service named is not a valid Win32 application. . |
|
|
Back to top |
|
Adeptus
Joined: 23 Jul 2020 Posts: 2
|
Posted: Fri 24 Jul '20 9:23 Post subject: |
|
|
I thought I'd try falling back to Apache 2.2, since it natively supports PHP 5.2.
Still no luck. Different error:
Quote: | Faulting application name: httpd.exe, version: 2.2.34.0, time stamp: 0x59673d73
Faulting module name: php5ts.dll, version: 5.2.17.17, time stamp: 0x4d25fb49
Exception code: 0xc0000005
Fault offset: 0x000f424c
Faulting process id: 0x1d00
Faulting application start time: 0x01d66189370d68b8
Faulting application path: C:\Program Files (x86)\Apache Group\Apache22\bin\httpd.exe
Faulting module path: C:\Program Files (x86)\php-5.2.17\php5ts.dll
Report Id: b230c5ff-d046-4518-9ad3-d7953c27d4bb
Faulting package full name:
Faulting package-relative application ID: |
Again, Apache runs if I comment out PHPIniDir and LoadModule php5_module from httpd.conf.
Does this imply that there's a problem in the PHP configuration? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 24 Jul '20 11:28 Post subject: |
|
|
That old version of PHP does not run as a module inside the newer of Apache. It could, but the compiler version if different, so it doesn't. However you can run that PHP version with mod_fcgid. See https://www.apachelounge.com/viewtopic.php?t=2394
if you still have a question please ask again. |
|
Back to top |
|
|
|
|
|
|