Click to See Complete Forum and Search --> : Apache2 + PHP4 module issues
Intrepidus
08-11-2006, 10:44 AM
Doing a generic apache+php install. Fresh install on both.
Apache resides in C:\Server\Apache (Version 2.2)
PHP reside in C:\Server\php (Version 4.4.3)
httpd.conf shows:
LoadModule php4_module “C:/Server/php/php4apache2.dll”
The error is:
>>> httpd.exe: Syntax error on line 486 of C:/Server/Apache/conf/httpd.conf:
Invalid LoadModule path \x93C:/Server/php/php4apache2.dll\x94
Can anyone help?
tsinka
08-11-2006, 02:09 PM
The double quotes look suspicious. Use simple double quotes: "
Thomas
RS_SS350
08-13-2006, 05:13 AM
I am having the same problem, but may setup may be slightly different...
My installation is:
Apache resides in C:\Apache_Program\Apache2 (Version 2.2.3)
PHP resides in C:\php (Version 4.4.3)
httpd.conf shows:
LoadModule php4_module "C/php/php4apache2.dll"
with simple double quotes... it worked fine when I had php 4.39 and apache 2.0.52
BTW, this is running on windows as a service... when i try to start the service after adding the LoadModule line, I get this error:
"Windows could not start the Apache 2.2 on Local Computer. For more information, review the System Event Log. if this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1."
the event log does not yield any further info...
Any ideas?
Thanks!
tsinka
08-13-2006, 06:43 AM
Please check the apache error_log file in the logs file for any error messages.
Shouldn't that be C:/php/php4apache2.dll instead of C/php/php4apache2.dll ?
Did you copy the php4ts.dll file to the apache bin (or windows system32) directory ?
Thomas
RS_SS350
08-13-2006, 04:09 PM
sorry that was a typo.... the dll doesn't need to be in the system 32 folde rif you specify the directory in the apache httpd.conf...
I did some more research and it seems that the php4apache2.dll included in the file download available from PHP.net does not work with Apache 2.2.x...
If you go to www.apachelounge.com, they have a php module download that fixes the issue.. just follow the instructions in the read me file, and it works perfect now...
here's a direct link: http://www.apachelounge.com/download/mods/php4apache2.dll-php4.4.x.zip
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.