Author |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
Posted: Tue 03 Apr '12 20:22 Post subject: |
|
|
Event Viewer:
The Apache2.4 service terminated with service-specific error 1 (0x1).
Apache Log:
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.
PHP log:
nothing |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3115 Location: Hilversum, NL, EU
|
Posted: Tue 03 Apr '12 20:40 Post subject: |
|
|
Please post a snippet (not the whole) httpd.conf relating to PHP.
What do you get when you run PHP in a DOS box ?
Steffen |
|
Back to top |
|
Cerebus
Joined: 02 Apr 2012 Posts: 8
|
Posted: Tue 03 Apr '12 21:21 Post subject: |
|
|
IT WORKS!
Your last question about running PHP in DOS made me think I may have done something wrong in the php.ini file, so I deleted the entire php directory, and recreated it from the zipfile ... and BANG! It all works!
Thanks for all your help .. now all I have to do is get MySql running .. wicked awesome cool! |
|
Back to top |
|
rishu2000

Joined: 24 Aug 2012 Posts: 3 Location: India
|
Posted: Fri 24 Aug '12 15:40 Post subject: |
|
|
Trying to install php 5.4.6 with apache 2.4.3 on my windows system. Still getting '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. like error with no luck.
I copied the .dll in the php folder as instructed and appended the conf file.
# configure the path to php.ini
PHPIniDir "C:/php"
what does the above line mean? Do we have to append it in the conf file too?? or something else? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3115 Location: Hilversum, NL, EU
|
Posted: Fri 24 Aug '12 15:49 Post subject: |
|
|
You wrote: Cannot load C:/Apache24/modules/php5apache2_4.dll
php5apache2_4.dll has to be in the php folder and not in the apache modules folder.
From the readme: Code: | - 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" |
|
|
Back to top |
|
rishu2000

Joined: 24 Aug 2012 Posts: 3 Location: India
|
Posted: Fri 24 Aug '12 16:19 Post subject: |
|
|
Thanks for the reply Steffen!
I copied the dll to c:/php.. But the error remains the same just with a change in the path.
httpd: Syntax error on line 523 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found.
Am I missing something? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3115 Location: Hilversum, NL, EU
|
Posted: Fri 24 Aug '12 19:10 Post subject: |
|
|
Should work.
Check list:
- Use Apache 2.4.x from Apache Lounge
- Download Thread Safe (TS) version of php 5.4.x from http://windows.php.net/download/
- Be sure you installed for php the Visual Studio 2008 (VC9) run-time, see left column at http://windows.php.net/download/
- Download php5apache2_4.dll-php-5.4-win32.zip from Apache Lounge and use the correct version in the zip
- Follow the instructions in the Readme in the php5apache2_4.dll zip
- First try to run without php extensions ! |
|
Back to top |
|
rishu2000

Joined: 24 Aug 2012 Posts: 3 Location: India
|
Posted: Mon 03 Sep '12 14:49 Post subject: |
|
|
Working now! I had mistakenly downloaded the non Thread-safe version. Silly me !
Thanks Steffen! |
|
Back to top |
|
doctordog
Joined: 17 Nov 2012 Posts: 3 Location: Belarus
|
Posted: Sun 18 Nov '12 16:43 Post subject: This dont help me . My system is Win 7 64 bit and I got the. |
|
|
This dont help me . My system is Win 7 64 bit and I got the error like this "the procedure cannot be load" Can anybody help me? I re read this forum but it couldn't resolve my error
thanx |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3115 Location: Hilversum, NL, EU
|
|
Back to top |
|
doctordog
Joined: 17 Nov 2012 Posts: 3 Location: Belarus
|
Posted: Mon 19 Nov '12 6:32 Post subject: Yes |
|
|
Yeah, I am running Apache2.4, that installed from msi downloaded from Apachelounge. It installed by default in Program files/Apache group/Apache2.4/ (or "Apache Foundation" directory). But 32bit and 64bit php dont connected correctly to Apache server. Once in command prompt I get "...procedure could not be loaded...", and in the second way the error changed and it was "... bla bla blaa possible 64bit php bla bla bla...". Do u hav any ideas?? |
|
Back to top |
|
doctordog
Joined: 17 Nov 2012 Posts: 3 Location: Belarus
|
Posted: Mon 19 Nov '12 6:34 Post subject: Yes |
|
|
Can I compiled php and apache ? How can I make it ? |
|
Back to top |
|
admin Site Admin

Joined: 15 Oct 2005 Posts: 701
|
Posted: Mon 19 Nov '12 12:17 Post subject: |
|
|
Apachelounge does not have .msi downloads.
Please give the complete error message and not "bla bla .. ". |
|
Back to top |
|