php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50149 Enabling dynamic extensions make Apache 2.2.14 crash at startup
Submitted: 2009-11-11 11:04 UTC Modified: 2009-11-25 06:48 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: msabatier dot perso at gmail dot com Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.2.11 OS: win32 only - Windows 7
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
8 + 49 = ?
Subscribe to this entry?

 
 [2009-11-11 11:04 UTC] msabatier dot perso at gmail dot com
Description:
------------
I installed PHP 5.2.11 via the installer on a Windows 7 with Apache 2.2.14. I chose to install 3 extensions MySQL, GD2 and XSL.

After editing http.conf to enable PHP, everything runs OK. Only prolem found is that PHP errors are not appended to the Apache error log.

Then I go to the php.ini and enable any of the 3 extensions I installed. Then try to restart Apache. Apache process start fails without giving any error log.

I then uninstall PHP 5.2.11, install 5.2.9 and repeat the same process. Everything runs fine this time.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-11 11:43 UTC] pajoye@php.net
You are certainly either missing a DLL or using the wrong DLL (libmysql certainly).

Be sure to have the PHP directory (where the DLL are) first in your PATH.

No issue here but configuration problem.
 [2009-11-11 12:43 UTC] msabatier dot perso at gmail dot com
The problem occurs even if I don't activate the php_mysql extension, so no link to any missing libmysql DLL. Just enabling the php_gd2.dll triggers the problem.

Plus I don't have the issue with 5.2.9 following exactly the same install problem. So this is not a configuration problem.
 [2009-11-11 13:39 UTC] pajoye@php.net
tr in CLI, that may give you more details:

> cd c:\php
> php -d extension_dir=ext -d extension=php_gd2.dll -m
 [2009-11-12 21:00 UTC] msabatier dot perso at gmail dot com
I tried what you asked. Uninstalled PHP 5.2.9, suppressed the PHP dir and reinstalled 5.2.11.
I got the same issue again.

Issuing
cd c:\php
php -d extension_dir=ext -d extension=php_gd2.dll -m
Gives me a crash of php (the process stops working) without any message.

Interestingly, if I don't remove the PHP dir after uninstalling PHP 5.2.9, then after installing PHP 5.2.11 everything is working.
 [2009-11-12 21:19 UTC] pajoye@php.net
pls run:

php -i | find "php.ini"

and paste the result here please, as well as the content of the PATH variable in the cmd line.

echo %PATH%
 [2009-11-12 22:44 UTC] msabatier dot perso at gmail dot com
C:\Program Files\PHP>php -i | find "php.ini"
Configuration File (php.ini) Path => C:\Windows
Loaded Configuration File => C:\Program Files\PHP\php.ini

C:\Program Files\PHP>echo %PATH%
C:\Program Files\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:
\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.
ACE\Core-Static;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\TortoiseSV
N\bin
 [2009-11-12 22:46 UTC] msabatier dot perso at gmail dot com
Just to be more specific regarding my previous answer I ran the php -i command without activating any extension in php.ini, otherwise PHP crashes before giving any output.
 [2009-11-24 13:17 UTC] marco at prodacom dot nl
had the same problem on different pc's. Always with this version 5.2.11. 

Solved the problem with adding the EXT dirictory also to the %PATH% statement from Windows. With the Installer only the PHP diriecty wil be added to the %PATH% not the EXT.

By adding the EXT my problem was on several pc's over.
 [2009-11-25 06:48 UTC] pajoye@php.net
Configuration issue, the ext should be added to the PATH.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC