php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51450 Extensions are not loaded
Submitted: 2010-03-31 22:24 UTC Modified: 2010-03-31 22:27 UTC
From: mariusads at helpedia dot com Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.3.2 OS: Windows 2008 Web Edition
Private report: No CVE-ID: None
 [2010-03-31 22:24 UTC] mariusads at helpedia dot com
Description:
------------
Windows 2008 Web Edition 64 bit
Apache 2.2.15 fresh install
PHP 5.3.2

Apache installed in "C:\apache"
PHP installed in "C:\php"

PHP loaded in Apache using:

LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php

PHP.ini in C:\Windows

extension_dir = "c:\php\ext"
extensions php_mysql, php_mbstring and a few others uncommented.

When Apache service is started, PHP is loaded successfully but no extension is loaded (using SysInternals' Process Explorer - replaces FileMon.exe) I can see the c:\php\ext folder is not even touched. 
C:\Windows\php.ini is read and reported by phpinfo().

I downloaded the 5.3.2 release some time ago when it had the php5apache2_2.dll in it, now i see the latest release no longer has it. 

Is there some problem with Apache 2.2 that prevents PHP from loading extensions?

Expected result:
----------------
Extensions should be loaded?

Actual result:
--------------
Extensions are not loaded

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-31 22:27 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-03-31 22:27 UTC] pajoye@php.net
Fetch the thread safe version of PHP, not the NTS.

Reading the error log will certainly tell you why the extensions are not loaded.
 [2010-03-31 22:48 UTC] mariusads at helpedia dot com
Thread safe version is even worse.

Installed the thread safe version, copied php.ini-production to C:\Windows\php.ini, loaded the page with phpinfo() call and Apache sends it as text file (i can read the code) even though php is loaded correctly, as it appears in the Apache log:

[Wed Mar 31 22:38:41 2010] [notice] Apache/2.2.15 (Win32) PHP/5.3.2 configured -- resuming normal operations

If I remove the php.ini from Windows and just restart the Apache service, the script is executed correctly.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 16:01:28 2024 UTC