logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache2.4+php5.4 error Page Previous  1, 2
Author
Cerebus



Joined: 02 Apr 2012
Posts: 8

PostPosted: Tue 03 Apr '12 20:22    Post subject: Reply with quote

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: 3057
Location: Hilversum, NL, EU

PostPosted: Tue 03 Apr '12 20:40    Post subject: Reply with quote

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

PostPosted: Tue 03 Apr '12 21:21    Post subject: Reply with quote

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

PostPosted: Fri 24 Aug '12 15:40    Post subject: Reply with quote

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: 3057
Location: Hilversum, NL, EU

PostPosted: Fri 24 Aug '12 15:49    Post subject: Reply with quote

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

PostPosted: Fri 24 Aug '12 16:19    Post subject: Reply with quote

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. Sad

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: 3057
Location: Hilversum, NL, EU

PostPosted: Fri 24 Aug '12 19:10    Post subject: Reply with quote

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

PostPosted: Mon 03 Sep '12 14:49    Post subject: Reply with quote

Working now! I had mistakenly downloaded the non Thread-safe version. Silly me ! Very Happy
Thanks Steffen!
Back to top
doctordog



Joined: 17 Nov 2012
Posts: 3
Location: Belarus

PostPosted: Sun 18 Nov '12 16:43    Post subject: This dont help me . My system is Win 7 64 bit and I got the. Reply with quote

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: 3057
Location: Hilversum, NL, EU

PostPosted: Sun 18 Nov '12 17:00    Post subject: Reply with quote

Looks like one of the versions do not match.

You are running Apache Win64 ?

Look here for what is possible: http://www.apachelounge.com/viewtopic.php?t=4481
Back to top
doctordog



Joined: 17 Nov 2012
Posts: 3
Location: Belarus

PostPosted: Mon 19 Nov '12 6:32    Post subject: Yes Reply with quote

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

PostPosted: Mon 19 Nov '12 6:34    Post subject: Yes Reply with quote

Can I compiled php and apache ? How can I make it ?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 679

PostPosted: Mon 19 Nov '12 12:17    Post subject: Reply with quote

Apachelounge does not have .msi downloads.

Please give the complete error message and not "bla bla .. ".
Back to top


Reply to topic   Topic: Apache2.4+php5.4 error View previous topic :: View next topic
Post new topic   Forum Index -> Other Software Page Previous  1, 2