Author |
|
yangshaoxing
Joined: 08 Jul 2010 Posts: 23
|
Posted: Tue 06 Mar '12 7:28 Post subject: Apache2.4+php5.4 error |
|
|
Steffen wrote: | The modules php5apache2_4.dll handlers for Apache 2.4 with PHP version 5.4, 5.3 and 5.2 now available.
Works only with Win32 Apache 2.4.1+.
Steffen |
apache2.4+php5.4 error
when i start my apache2.4,it said "httpd:Syntax error on line 123 of c:\apache24\modules\php5apache2_4.dll into server" and exit;
but it run well with php5.3.8
my system is windows xp sp2 |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 06 Mar '12 8:07 Post subject: |
|
|
You say ...run well with php5.3.8... is that with Apache 2.4.1 ?
Sure you use the .dll and PHP 5.4 TS, double check ?
What are are PHP lines in your http.conf ?
Steffen
btw. We do not support XP SP2, SP3 is the minimum. |
|
Back to top |
|
yangshaoxing
Joined: 08 Jul 2010 Posts: 23
|
Posted: Wed 07 Mar '12 7:04 Post subject: |
|
|
yes.it run well with php5.3.8
here are some pictures.
[img]r:/112.gif[/img]
[img]r:/113.gif[/img][/quote] |
|
Back to top |
|
yangshaoxing
Joined: 08 Jul 2010 Posts: 23
|
Posted: Wed 07 Mar '12 7:04 Post subject: |
|
|
my system is windows xp sp3,how can i paste pictures in it? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 07 Mar '12 18:19 Post subject: |
|
|
yangshaoxing wrote: | how can i paste pictures in it? |
Well you tried your localharddisc (r:/112.gif). That will not work. Use an image hoster like http://imageshack.us/ and than put the url to that picture between the img BB-tags |
|
Back to top |
|
yangshaoxing
Joined: 08 Jul 2010 Posts: 23
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Thu 08 Mar '12 11:50 Post subject: |
|
|
Looks like you are running php 5.3.8 and the handler is build against 5.3.10.
No problem, no API changes in 5.3.10 over 5.3.8.
Steffen |
|
Back to top |
|
yangshaoxing
Joined: 08 Jul 2010 Posts: 23
|
Posted: Fri 09 Mar '12 7:00 Post subject: |
|
|
Steffen wrote: | Looks like you are running php 5.3.8 and the handler is build against 5.3.10.
No problem, no API changes in 5.3.10 over 5.3.8.
Steffen |
but why apache2.4.1+php5.4 error? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Fri 09 Mar '12 8:25 Post subject: |
|
|
Any in the php log, apache log or windows even viewer ?
Be sure:
- you using the correct handler from php5apache2_4.dll-php-5.4-win32.zip
- Using 5.4 TS
- you have no 5.3 extensions in /ext
Steffen |
|
Back to top |
|
yangshaoxing
Joined: 08 Jul 2010 Posts: 23
|
Posted: Tue 13 Mar '12 7:28 Post subject: |
|
|
Steffen wrote: | Any in the php log, apache log or windows even viewer ?
Be sure:
- you using the correct handler from php5apache2_4.dll-php-5.4-win32.zip
- Using 5.4 TS
- you have no 5.3 extensions in /ext
Steffen |
there is nothing message in log or even viewer
the error message in window like 'httpd: Syntax error on line 172 of C:/Apache24/conf/httpd.conf: Cannot load C:/Apache24/modules/php5apache2_4.dll into server: The specified procedure could not be found.'
btw. if i add a ";" before "extension" in php.ini,the error resume. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 13 Mar '12 11:59 Post subject: |
|
|
The error you get is: Cannot load C:/Apache24/modules/php5apache2_4.dll
The dll should not be copied to the Apache modules folder, but to your PHP folder.
From the ReadMe:
# Install:
- Copy php5apache2_4.dll to your php folder (eg. c:/php)
# Add to your httpd.conf
LoadModule php5_module "c:/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
Steffen |
|
Back to top |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
Posted: Mon 02 Apr '12 21:47 Post subject: |
|
|
Steffen wrote: | The error you get is: Cannot load C:/Apache24/modules/php5apache2_4.dll
The dll should not be copied to the Apache modules folder, but to your PHP folder.
From the ReadMe:
# Install:
- Copy php5apache2_4.dll to your php folder (eg. c:/php)
# Add to your httpd.conf
LoadModule php5_module "c:/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
Steffen |
Call me a lamebrain, but is this just for Windows 7 or should it work on Windows XP SP3? I have spent way too many hours on this upgrade.
I'd like to have:
Windows XP (32) (new install) w / SP3
Apache 2.4.1
PHP 5.4
Is this even possible? |
|
Back to top |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
Posted: Mon 02 Apr '12 22:10 Post subject: |
|
|
BTW: I am getting the exact same error message ...
"C:/Apache24/conf/httpd.conf: Cannot load C:/php/php5apache2_4.dll into server: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
If someone could just tell me what versions of each I have to use, I'd do that instead. Thanks in advance |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 02 Apr '12 22:24 Post subject: |
|
|
Yep should work on XP.
Any in the php log, apache log or windows event viewer ?
Be sure:
- you using the correct handler from php5apache2_4.dll-php-5.4-win32.zip
- Using 5.4 TS
Steffen |
|
Back to top |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
Posted: Mon 02 Apr '12 23:21 Post subject: |
|
|
Steffen wrote: | Yep should work on XP.
Any in the php log, apache log or windows event viewer ?
Be sure:
- you using the correct handler from php5apache2_4.dll-php-5.4-win32.zip
- Using 5.4 TS
Steffen |
Yes I installed php-5.4.0-Win32-VC9-x86.zip and php5apache2_4.dll-php-5.4-win32.zip
I'm not getting anything in the php log
Windows events:
Generate Activation Context failed for C:\php\php5apache2_4.dll. Reference error message: The operation completed successfully.
Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The referenced assembly is not installed on your system.
The Apache2.4 service terminated with service-specific error 1 (0x1).
I did install the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) from http://www.microsoft.com/download/en/details.aspx?id=8328
Does this include Dependent Assembly Microsoft.VC90.CRT? |
|
Back to top |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Tue 03 Apr '12 6:54 Post subject: |
|
|
Yes, you need VC9 runtime to run php, it is clearly stated on the php.net windows download page.
Steffen |
|
Back to top |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
Posted: Tue 03 Apr '12 15:04 Post subject: |
|
|
I installed it and the other errors stopped but I am still getting ...
The Apache2.4 service terminated with service-specific error 1 (0x1).
... and Apache fails to load |
|
Back to top |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
Posted: Tue 03 Apr '12 15:11 Post subject: |
|
|
and I still get ...
"C:/Apache24/conf/httpd.conf: Cannot load C:/php/php5apache2_4.dll into server: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
Has anyone been successful running Apache 2.4.1 and PHP 5.4 on a Windows XP machine? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 03 Apr '12 18:49 Post subject: |
|
|
What is now in the php log, apache log or windows event viewer ?
Steffen |
|
Back to top |
|