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: Cannot load php5apache2_4.dll into server
Author
treinentom



Joined: 08 May 2013
Posts: 3

PostPosted: Wed 08 May '13 10:58    Post subject: Cannot load php5apache2_4.dll into server Reply with quote

Beste,

Ik heb een probleem met de installatie van Apache 2.4.4 met PHP 5.4.14 Thread Safe support. Ik heb de Win32 Apache versie hier van Apache Lounge gehaald en de VC9 x86 Thread Safe PHP 5.4.14 van windows.php.net.

De fout die ik krijg als ik httpd run via cmd is de volgende:
httpd: Syntax error on line 529 of C:/Apache24/conf/httpd.conf: Cannot load C:/PHP/ext/php5apache2_4.dll into server: Kan opgegeven module niet vinden.

Dit is vreemd, want het bestand staat weldegelijk in die directory.

Ik heb aan httpd.conf de volgende regels toegevoegd:
Code:
#
LoadModule php5_module "C:/PHP/ext/php5apache2_4.dll"
AddHandler application/x-httpd-php .php

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


En bij php.ini de extension_dir naar "C:/PHP/ext" verwezen. En toegevoegd
Code:
[APACHE]
extension=php5apache2_4.dll


Ik draai Windows 7 HP 64-bits.

Alvast bedankt voor de hulp!
Back to top
Steffen
Moderator


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

PostPosted: Wed 08 May '13 11:05    Post subject: Reply with quote

In the download from windows.php.net the php5apache2_4.dll is not located in the php/ext dir.

So use:

LoadModule php5_module "C:/PHP/php5apache2_4.dll

and remove in php.ini the lines:
[APACHE]
extension=php5apache2_4.dll


Steffen
Back to top
treinentom



Joined: 08 May 2013
Posts: 3

PostPosted: Wed 08 May '13 11:09    Post subject: Reply with quote

I copied the php5apache2_4.dll into php/ext and removed the [apache] tag. Still no changes:(
Back to top
Steffen
Moderator


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

PostPosted: Wed 08 May '13 11:57    Post subject: Reply with quote

treinentom wrote:
I copied the php5apache2_4.dll into php/ext

Do not copy php5apache2_4.dll to the extension dir, leave it in the php dir and use:

LoadModule php5_module "C:/PHP/php5apache2_4.dll


Steffen
Back to top
treinentom



Joined: 08 May 2013
Posts: 3

PostPosted: Wed 08 May '13 12:50    Post subject: Reply with quote

Thank you very much! This worked for me!
Back to top
Eiolon



Joined: 06 Jun 2013
Posts: 2
Location: AZ

PostPosted: Thu 06 Jun '13 22:24    Post subject: Reply with quote

I am having the same problem.

Running:

Windows Server 2008 R2 64-bit
Apache 2.4.4 32-bit from Apache Lounge
PHP 5.4.16 VC9 x86

Apache works fine until I add the following lines at the end of the httpd config file:

LoadModule php5_module "C:/PHP/php5apache2_4.dll"
AddHandler application/x-httpd-php .php

PHPIniDir "C:/PHP"

The module is located in the path.

I have the Microsoft VS2010 Redistributable x86 installed.

I have C:\PHP; added to the environmental variables in Windows.

Error that occurs when starting the service:

Cannot load C:/PHP/php5apache2_4.dll into server: The application has failed to start because its side-by-side configuration is incorrect.
Back to top
Steffen
Moderator


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

PostPosted: Thu 06 Jun '13 22:51    Post subject: Reply with quote

And did you installed the VC9 Redistributable, see left pane at windows.php.net ?

Steffen
Back to top
Eiolon



Joined: 06 Jun 2013
Posts: 2
Location: AZ

PostPosted: Thu 06 Jun '13 23:33    Post subject: Reply with quote

Oh, my bad! I thought I was only supposed to install Visual C++ Redistributable for Visual Studio 2010 SP1 that I did with Apache. I would have thought it would contain what 2008 had as well. All is well now Smile
Back to top


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