Author |
|
treinentom
Joined: 08 May 2013 Posts: 3
|
Posted: Wed 08 May '13 10:58 Post subject: Cannot load php5apache2_4.dll into server |
|
|
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: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 08 May '13 11:05 Post subject: |
|
|
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
|
Posted: Wed 08 May '13 11:09 Post subject: |
|
|
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: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 08 May '13 11:57 Post subject: |
|
|
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
|
Posted: Wed 08 May '13 12:50 Post subject: |
|
|
Thank you very much! This worked for me! |
|
Back to top |
|
Eiolon
Joined: 06 Jun 2013 Posts: 2 Location: AZ
|
Posted: Thu 06 Jun '13 22:24 Post subject: |
|
|
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: 3092 Location: Hilversum, NL, EU
|
Posted: Thu 06 Jun '13 22:51 Post subject: |
|
|
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
|
Posted: Thu 06 Jun '13 23:33 Post subject: |
|
|
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 |
|
Back to top |
|