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: Apache not loading php5 module
Author
johnthegreat



Joined: 22 Oct 2012
Posts: 1
Location: Idaho

PostPosted: Mon 22 Oct '12 20:46    Post subject: Apache not loading php5 module Reply with quote

Hi,

I have a question about setting up Apache 2.4 with PHP 5.4.8. I've been off and on trying to set this up for months now.
I haven't found an easy to use guide about which version of what to use (VC9, etc); I'm still using Apache 2.2 with PHP 5.3.5 on my development and production servers (VC6 versions); I would like to use the latest technology, so I'm working on setting it all up. But now I'm running into a problem.

I unzipped the "httpd-2.4.3-win32.zip" file from this site to C:\WebStuff\Apache 2.4\ rather than C:\Apache24. I downloaded "php-5.4.8-Win32-VC9-x86.zip" from windows.php.net and extracted it to C:\WebStuff\PHP 5.4.8. I also downloaded "php5apache2_4.dll-php-5.4-win32.zip" from this site and took the php5apache2_4.dll file and put it here: C:\WebStuff\php5apache2_4.dll

I have done a Google search but only found answers to this problem for Apache 2.2, which is not applicable to me.

I added to the httpd.conf file as instructed:
LoadModule php5_module "C:/WebStuff/php5apache2_4.dll"

And when I try to run httpd.exe from command line (to make sure it is working), I get this:

Code:

C:\WebStuff\Apache 2.4\bin>"C:\WebStuff\Apache 2.4\bin\httpd.exe"
httpd.exe: Syntax error on line 172 of C:/WebStuff/Apache 2.4/conf/httpd.conf: C
annot load C:/WebStuff/php5apache2_4.dll into server: The specified module could
 not be found.

C:\WebStuff\Apache 2.4\bin>


I'm really confused. Could someone help me out on this? If there's any more information I can provide that will help someone help me to solve this problem, let me know...

Running on Windows 7.

Thanks!
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3049
Location: Hilversum, NL, EU

PostPosted: Mon 22 Oct '12 20:56    Post subject: Reply with quote

Quite some posts here with your issue.

You say that you extracted PHP to C:\WebStuff\PHP 5.4.8, but you put the php5apache2_4.dll file in C:\WebStuff\php5apache2_4.dll

php5apache2_4.dll needs to be in the php dir.

Steffen
Back to top


Reply to topic   Topic: Apache not loading php5 module View previous topic :: View next topic
Post new topic   Forum Index -> Other Software