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: VC14 :: Cannot load php7apache2_4.dll into server
Author
spencer



Joined: 27 May 2013
Posts: 8
Location: Boulder, CO

PostPosted: Mon 15 Jun '15 23:04    Post subject: VC14 :: Cannot load php7apache2_4.dll into server Reply with quote

Hello, everyone. So, I grabbed a copy of the Windows 64-bit Thread Safe binary files and I'm trying to load it into my 64-bit httpd that I downloaded from here with the following configuration:

Code:
LoadModule php7_module "c:/php7/php7apache2_4.dll"
<FilesMatch \.php$>
      SetHandler application/x-httpd-php
</FilesMatch>

# configure the path to php.ini
PHPIniDir "C:/php7"


httpd tells me Cannot load c:/php7/php7apache2_4.dll into server: The specified module could not be found. I swear that that really is the location of that file. My previous PHP5 configuration was exactly what is above, except it was in a folder just called php and using the php5apache2_4.dll module.

Can anyone think of any reason why httpd says it can't find that file? Is there a chance it can indeed find it but is having problems loading it? Thank you for any help you can offer.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Mon 15 Jun '15 23:32    Post subject: Reply with quote

Are you sure you are using x64 for both Apache and PHP? Mixing x86 and x64 will not work.

If so, try copying all the DLL's that come with the PHP build to the bin-directory of Apache. Apache looks in its bin-directory, PHP in the directory with php.exe. This is confusing sometimes.

The Windows event viewer (run eventvwr.msc) might give you a clue what dll cannot be found by Apache. It does not have to be php7apache2_4.dll it self, bat can also be a DLL that is needed by php7apache2_4.dll.
Back to top
spencer



Joined: 27 May 2013
Posts: 8
Location: Boulder, CO

PostPosted: Tue 16 Jun '15 1:56    Post subject: Needed VC14-compiled httpd Reply with quote

Thank you, Jan-E, for the assistance. I confirmed that I was definitely using both 64-bit httpd and php, but it turned out I had the older VC11-compiled httpd, and I see that the PHP site says that this is a VC14-compiled PHP.

So, I installed the new C++ Redistributable packages, especially the 64-bit one, replaced my VC11 httpd with the new one, and now it runs PHP 7 just fine.

Actually, I see that I can use VC11 PHP and VC14 httpd without issue, too. I think the real problem was not having the latest Visual C++ Redistributable package.

Thanks a lot!
Back to top
jimski



Joined: 18 Jan 2014
Posts: 196
Location: USSA

PostPosted: Sun 21 Jun '15 21:26    Post subject: Reply with quote

For those of you who encounter a similar problem with php7 module, please keep in mind that there was a bug related to "missing php7_module"

https://bugs.php.net/bug.php?id=69801
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Mon 22 Jun '15 3:47    Post subject: Reply with quote

php7apache2_4.dll has been really missing exactly one day in the php7.0.0alpha1 ts builds at http://windows.php.net/qa/

However, this topic is about the misleading Windows-error 'The specified module could not be found' when php7apache2_4.dll is fysically present, but something is wrong with the x86/x64 or VC11/VC14 match.
Back to top
jimski



Joined: 18 Jan 2014
Posts: 196
Location: USSA

PostPosted: Mon 22 Jun '15 14:26    Post subject: Reply with quote

Jan-E wrote:
php7apache2_4.dll has been really missing exactly one day...

This may have very well been just one day but those that downloaded this version were pulling their hair out trying to figure out why the hell is not working.

Don't ask me how I know about it.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Mon 22 Jun '15 14:39    Post subject: Reply with quote

jimski wrote:
Jan-E wrote:
php7apache2_4.dll has been really missing exactly one day...

This may have very well been just one day but those that downloaded this version were pulling their hair out trying to figure out why the hell is not working.

Don't ask me how I know about it.

They pointed in the Apache confs to a file that just was not there and were wondering why it did not work? Oh, babe.
Back to top


Reply to topic   Topic: VC14 :: Cannot load php7apache2_4.dll into server View previous topic :: View next topic
Post new topic   Forum Index -> Other Software