PHP Startup: Unable to initialize module

PHP Startup: Unable to initialize module

am 30.03.2011 18:28:38 von Curtis Tammany

Hello-

I've finnally got PHP 5.3.6 running under Apache 2.2.17 (on Windows). PHP
came from windows.php.net.

I'm seeing these warnings in the PHP log:

[30-Mar-2011 12:09:59] PHP Warning: PHP Startup: bz2: Unable to initialize
module
Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[30-Mar-2011 12:10:02] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_curl.dll' - The specified procedure could not be
found.
in Unknown on line 0
[30-Mar-2011 12:10:02] PHP Warning: PHP Startup: gd: Unable to initialize
module
Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[30-Mar-2011 12:10:02] PHP Warning: PHP Startup: gettext: Unable to
initialize module
Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[30-Mar-2011 12:10:02] PHP Warning: PHP Startup: gmp: Unable to initialize
module
Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[30-Mar-2011 12:10:02] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_imap.dll' - The specified procedure could not be
found.
in Unknown on line 0
[30-Mar-2011 12:10:03] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_mbstring.dll' - The specified procedure could not
be found.
in Unknown on line 0
[30-Mar-2011 12:10:03] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_mysql.dll' - The specified procedure could not be
found.
in Unknown on line 0
[30-Mar-2011 12:10:04] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_mysqli.dll' - The specified procedure could not
be found.
in Unknown on line 0
[30-Mar-2011 12:10:04] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_openssl.dll' - The specified procedure could not
be found.
in Unknown on line 0
[30-Mar-2011 12:10:05] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_pdo_mysql.dll' - The specified procedure could
not be found.
in Unknown on line 0
[30-Mar-2011 12:10:05] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_pdo_odbc.dll' - The specified procedure could not
be found.
in Unknown on line 0
[30-Mar-2011 12:10:06] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_pdo_sqlite.dll' - The specified procedure could
not be found.
in Unknown on line 0
[30-Mar-2011 12:10:06] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_pgsql.dll' - The specified procedure could not be
found.
in Unknown on line 0
[30-Mar-2011 12:10:07] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_soap.dll' - The specified procedure could not be
found.
in Unknown on line 0
[30-Mar-2011 12:10:07] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_sockets.dll' - The specified procedure could not
be found.
in Unknown on line 0
[30-Mar-2011 12:10:07] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_sqlite3.dll' - The specified procedure could not
be found.
in Unknown on line 0
[30-Mar-2011 12:10:07] PHP Warning: PHP Startup: tidy: Unable to initialize
module
Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
[30-Mar-2011 12:10:08] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_xmlrpc.dll' - The specified procedure could not
be found.
in Unknown on line 0
[30-Mar-2011 12:10:08] PHP Warning: PHP Startup: Unable to load dynamic
library 'C:\PHP536\ext\php_exif.dll' - The specified module could not be
found.
in Unknown on line 0

All of the DLLs are in the ext folder and extension_dir is set correctly.
The VC9 redistributable is also installed.

What is going on??



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:03:38 von harlequin2

Hi Curtis,

Curtis wrote:
> I've finnally got PHP 5.3.6 running under Apache 2.2.17 (on Windows). PHP
> came from windows.php.net.
> ...
> All of the DLLs are in the ext folder and extension_dir is set correctly.
> The VC9 redistributable is also installed.
>
> What is going on??
Just have a look at the side bar on http://windows.php.net where it says
which version to use :-)
VC9 builds are for IIS, VC6 for Apache, so you need to match both the
compiler version and PHP version.

Regards,

Sascha

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:20:52 von Pierre Joye

hi,

Module compiled with module API=3D20090626, debug=3D0, thread-safety=3D1
PHP compiled with module API=3D20060613, debug=3D0, thread-safety=3D1

To me it looks like you are trying to load a php 5.3 extension using php 5.=
2.



On Wed, Mar 30, 2011 at 6:28 PM, Curtis Tammany wr=
ote:
> Hello-
>
> I've finnally got PHP 5.3.6 running under Apache 2.2.17 (on Windows). PHP
> came from windows.php.net.
>
> I'm seeing these warnings in the PHP log:
>
> [30-Mar-2011 12:09:59] PHP Warning: =A0PHP Startup: bz2: Unable to initia=
lize
> module
> Module compiled with module API=3D20090626, debug=3D0, thread-safety=3D1
> PHP =A0 =A0compiled with module API=3D20060613, debug=3D0, thread-safety=
=3D1

Cheers,
--=20
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:33:58 von Curtis Tammany

I had to upgrade to PHP 5.3.6 on a Windows environment.
That was ONLY available on windows.php.net as a VC9 version (downloaded the
Thread-safe installer)
All of the dlls in the ext folder came with PHP 5.3.6

I'm not mixing versions..


"Pierre Joye" wrote in message
news:AANLkTi=zkyY58WSghM9d=urMUPBTSsgfqk=20NyOUnF4@mail.gmai l.com...
hi,

Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1

To me it looks like you are trying to load a php 5.3 extension using php
5.2.



On Wed, Mar 30, 2011 at 6:28 PM, Curtis Tammany
wrote:
> Hello-
>
> I've finnally got PHP 5.3.6 running under Apache 2.2.17 (on Windows). PHP
> came from windows.php.net.
>
> I'm seeing these warnings in the PHP log:
>
> [30-Mar-2011 12:09:59] PHP Warning: PHP Startup: bz2: Unable to initialize
> module
> Module compiled with module API=20090626, debug=0, thread-safety=1
> PHP compiled with module API=20060613, debug=0, thread-safety=1

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:41:16 von Pierre Joye

sorry but you are. See the API versions.

On Wed, Mar 30, 2011 at 7:33 PM, Curtis Tammany wr=
ote:
> I had to upgrade to PHP 5.3.6 on a Windows environment.
> That was ONLY available on windows.php.net as a VC9 version (downloaded t=
he
> Thread-safe installer)
> All of the dlls in the ext folder came with PHP 5.3.6
>
> I'm not mixing versions..
>
>
> "Pierre Joye" wrote in message
> news:AANLkTi=3DzkyY58WSghM9d=3DurMUPBTSsgfqk=3D20NyOUnF4@mai l.gmail.com..=
..
> hi,
>
> Module compiled with module API=3D20090626, debug=3D0, thread-safety=3D1
> PHP =A0 =A0compiled with module API=3D20060613, debug=3D0, thread-safety=
=3D1
>
> To me it looks like you are trying to load a php 5.3 extension using php
> 5.2.
>
>
>
> On Wed, Mar 30, 2011 at 6:28 PM, Curtis Tammany
> wrote:
>> Hello-
>>
>> I've finnally got PHP 5.3.6 running under Apache 2.2.17 (on Windows). PH=
P
>> came from windows.php.net.
>>
>> I'm seeing these warnings in the PHP log:
>>
>> [30-Mar-2011 12:09:59] PHP Warning: PHP Startup: bz2: Unable to initiali=
ze
>> module
>> Module compiled with module API=3D20090626, debug=3D0, thread-safety=3D1
>> PHP compiled with module API=3D20060613, debug=3D0, thread-safety=3D1
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--=20
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:46:33 von Maciej Jaros

Dnia 30-03-2011 o 19:33:58 "Curtis Tammany" =

napisa=B3(a):

> I had to upgrade to PHP 5.3.6 on a Windows environment.
> That was ONLY available on windows.php.net as a VC9 version (downloade=
d =

> the
> Thread-safe installer)
> All of the dlls in the ext folder came with PHP 5.3.6
>
> I'm not mixing versions..
>

I think you might be suffering from Bug #54425.

Check your httpd.conf - PHPIniDir and LoadModule php5_module should only=
=

contain forward slashes.

You might also check Apache Lounge version of Apache if you are not =

already using it.

-- =

Maciej "Nux" Jaros

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:47:30 von Curtis Tammany

All of the files came from php-5.3.6-Win32-VC9-x86.msi

Check your package...

"Pierre Joye" wrote in message
news:AANLkTinJ=y4UJ3nRax=jx1UNophn6k2GCKLR4bc7vh_0@mail.gmai l.com...
sorry but you are. See the API versions.

On Wed, Mar 30, 2011 at 7:33 PM, Curtis Tammany
wrote:
> I had to upgrade to PHP 5.3.6 on a Windows environment.
> That was ONLY available on windows.php.net as a VC9 version (downloaded
> the
> Thread-safe installer)
> All of the dlls in the ext folder came with PHP 5.3.6
>
> I'm not mixing versions..
>
>
> "Pierre Joye" wrote in message
> news:AANLkTi=zkyY58WSghM9d=urMUPBTSsgfqk=20NyOUnF4@mail.gmai l.com...
> hi,
>
> Module compiled with module API=20090626, debug=0, thread-safety=1
> PHP compiled with module API=20060613, debug=0, thread-safety=1
>
> To me it looks like you are trying to load a php 5.3 extension using php
> 5.2.
>
>
>
> On Wed, Mar 30, 2011 at 6:28 PM, Curtis Tammany
> wrote:
>> Hello-
>>
>> I've finnally got PHP 5.3.6 running under Apache 2.2.17 (on Windows). PHP
>> came from windows.php.net.
>>
>> I'm seeing these warnings in the PHP log:
>>
>> [30-Mar-2011 12:09:59] PHP Warning: PHP Startup: bz2: Unable to
>> initialize
>> module
>> Module compiled with module API=20090626, debug=0, thread-safety=1
>> PHP compiled with module API=20060613, debug=0, thread-safety=1
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:51:33 von Pierre Joye

Again, that's simply not the case. We did check the packages. Double
check your config and be sure that a) you actually use 5.3.6 and b)
that you actually load 5.3's exts.

Cheers,

On Wed, Mar 30, 2011 at 7:47 PM, Curtis Tammany wrote:
> All of the files came from php-5.3.6-Win32-VC9-x86.msi
>
> Check your package...
>
> "Pierre Joye" wrote in message
> news:AANLkTinJ=y4UJ3nRax=jx1UNophn6k2GCKLR4bc7vh_0@mail.gmai l.com...
> sorry but you are. See the API versions.
>
> On Wed, Mar 30, 2011 at 7:33 PM, Curtis Tammany
> wrote:
>> I had to upgrade to PHP 5.3.6 on a Windows environment.
>> That was ONLY available on windows.php.net as a VC9 version (downloaded
>> the
>> Thread-safe installer)
>> All of the dlls in the ext folder came with PHP 5.3.6
>>
>> I'm not mixing versions..
>>
>>
>> "Pierre Joye" wrote in message
>> news:AANLkTi=zkyY58WSghM9d=urMUPBTSsgfqk=20NyOUnF4@mail.gmai l.com...
>> hi,
>>
>> Module compiled with module API=20090626, debug=0, thread-safety=1
>> PHP compiled with module API=20060613, debug=0, thread-safety=1
>>
>> To me it looks like you are trying to load a php 5.3 extension using php
>> 5.2.
>>
>>
>>
>> On Wed, Mar 30, 2011 at 6:28 PM, Curtis Tammany
>> wrote:
>>> Hello-
>>>
>>> I've finnally got PHP 5.3.6 running under Apache 2.2.17 (on Windows). PHP
>>> came from windows.php.net.
>>>
>>> I'm seeing these warnings in the PHP log:
>>>
>>> [30-Mar-2011 12:09:59] PHP Warning: PHP Startup: bz2: Unable to
>>> initialize
>>> module
>>> Module compiled with module API=20090626, debug=0, thread-safety=1
>>> PHP compiled with module API=20060613, debug=0, thread-safety=1
>>
>> Cheers,
>> --
>> Pierre
>>
>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 19:53:42 von Curtis Tammany

This is how it is in httpd.conf:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/PHP536/"
LoadModule php5_module "C:/PHP536/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
AddType application/x-httpd-php .php

I had to upgrade to Apache 2.2.17 as it was the only version compiled with
VC9...

Curtis

""Maciej Jaros"" wrote in message
news:op.vs53nvorbrpvre@nuxlap7.chello.pl...
Dnia 30-03-2011 o 19:33:58 "Curtis Tammany"
napisa³(a):

> I had to upgrade to PHP 5.3.6 on a Windows environment.
> That was ONLY available on windows.php.net as a VC9 version (downloaded
> the
> Thread-safe installer)
> All of the dlls in the ext folder came with PHP 5.3.6
>
> I'm not mixing versions..
>

I think you might be suffering from Bug #54425.

Check your httpd.conf - PHPIniDir and LoadModule php5_module should only
contain forward slashes.

You might also check Apache Lounge version of Apache if you are not
already using it.

--
Maciej "Nux" Jaros



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 20:01:35 von Pierre Joye

ok. Let me start it again from scratch.

[30-Mar-2011 12:09:59] PHP Warning: PHP Startup: bz2: Unable to initialize
module
Module compiled with module API=3D20090626, debug=3D0, thread-safety=3D1
PHP compiled with module API=3D20060613, debug=3D0, thread-safety=3D1

API=3D20060613 IS php 5.2, period. See:

http://lxr.php.net/search?q=3D20060613+&project=3DPHP_5_2&de fs=3D&refs=3D&p=
ath=3D&hist=3D

About how and why you have 5.2 on your system and why it gets loaded,
no idea. But that's the reason of this error message. The sooner you
will consider it as a valid error, the sooner you will solve this
rather simple thing.

Cheers,
On Wed, Mar 30, 2011 at 7:53 PM, Curtis Tammany wr=
ote:
> This is how it is in httpd.conf:
>
> #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
> PHPIniDir "C:/PHP536/"
> LoadModule php5_module "C:/PHP536/php5apache2_2.dll"
> #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
> AddType application/x-httpd-php .php
>
> I had to upgrade to Apache 2.2.17 as it was the only version compiled wit=
h
> VC9...
>
> Curtis
>
> ""Maciej Jaros"" wrote in message
> news:op.vs53nvorbrpvre@nuxlap7.chello.pl...
> Dnia 30-03-2011 o 19:33:58 "Curtis Tammany"
> napisał(a):
>
>> I had to upgrade to PHP 5.3.6 on a Windows environment.
>> That was ONLY available on windows.php.net as a VC9 version (downloaded
>> the
>> Thread-safe installer)
>> All of the dlls in the ext folder came with PHP 5.3.6
>>
>> I'm not mixing versions..
>>
>
> I think you might be suffering from Bug #54425.
>
> Check your httpd.conf - PHPIniDir and LoadModule php5_module should only
> contain forward slashes.
>
> You might also check Apache Lounge version of Apache if you are not
> already using it.
>
> --
> Maciej "Nux" Jaros
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--=20
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 20:27:20 von harlequin2

Could you check which php.ini is loaded via phpinfo()? I assume you have
a php.ini somewhere in your Windows directory pointing to the wrong
directory.

@Pierre: thanks for the internal info about how to identify 5.2 vs 5.3
extension, I didn't have a clue about how to interpret the module API
versions.

Cheers!

Am 30.03.2011 20:01, schrieb Pierre Joye:
> ok. Let me start it again from scratch.
>
> [30-Mar-2011 12:09:59] PHP Warning: PHP Startup: bz2: Unable to initialize
> module
> Module compiled with module API=20090626, debug=0, thread-safety=1
> PHP compiled with module API=20060613, debug=0, thread-safety=1
>
> API=20060613 IS php 5.2, period. See:
>
> http://lxr.php.net/search?q=20060613+&project=PHP_5_2&defs=& refs=&path=&hist=
>
> About how and why you have 5.2 on your system and why it gets loaded,
> no idea. But that's the reason of this error message. The sooner you
> will consider it as a valid error, the sooner you will solve this
> rather simple thing.
>
> Cheers,
> On Wed, Mar 30, 2011 at 7:53 PM, Curtis Tammany wrote:
>> This is how it is in httpd.conf:
>>
>> #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
>> PHPIniDir "C:/PHP536/"
>> LoadModule php5_module "C:/PHP536/php5apache2_2.dll"
>> #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
>> AddType application/x-httpd-php .php
>>
>> I had to upgrade to Apache 2.2.17 as it was the only version compiled with
>> VC9...
>>
>> Curtis
>>
>> ""Maciej Jaros"" wrote in message
>> news:op.vs53nvorbrpvre@nuxlap7.chello.pl...
>> Dnia 30-03-2011 o 19:33:58 "Curtis Tammany"
>> napisał(a):
>>
>>> I had to upgrade to PHP 5.3.6 on a Windows environment.
>>> That was ONLY available on windows.php.net as a VC9 version (downloaded
>>> the
>>> Thread-safe installer)
>>> All of the dlls in the ext folder came with PHP 5.3.6
>>>
>>> I'm not mixing versions..
>>>
>> I think you might be suffering from Bug #54425.
>>
>> Check your httpd.conf - PHPIniDir and LoadModule php5_module should only
>> contain forward slashes.
>>
>> You might also check Apache Lounge version of Apache if you are not
>> already using it.
>>
>> --
>> Maciej "Nux" Jaros
>>
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 20:32:51 von Pierre Joye

On Wed, Mar 30, 2011 at 8:27 PM, Sascha Meyer wrote:
> Could you check which php.ini is loaded via phpinfo()? I assume you have a
> php.ini somewhere in your Windows directory pointing to the wrong directory.

For what I see in the error, it is the other way 'round. 5.2 is loaded
and trying to load 5.3 extensions.

--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Startup: Unable to initialize module

am 30.03.2011 20:40:43 von harlequin2

Hi Pierre,
>> Could you check which php.ini is loaded via phpinfo()? I assume you have a
>> php.ini somewhere in your Windows directory pointing to the wrong directory.
> For what I see in the error, it is the other way 'round. 5.2 is loaded
> and trying to load 5.3 extensions.
right, httpd.conf points to the 5.3 bin, I somehow interpreted it in the
wrong way. I am still interested what phpinfo() gives us, I still think
that PATH or some other directives point to the wrong directory/files.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: PHP Startup: Unable to initialize module

am 31.03.2011 08:28:41 von Kris Craig

--90e6ba5bbac99159a2049fc167f6
Content-Type: text/plain; charset=ISO-8859-1

Have you checked your PATH? If you've installed a previous (i.e. 5.2.x)
version of PHP using the MSI installer earlier, then it's possible that the
install directory was never removed from your system PATH (the MSI installer
doesn't do this automatically as far as I know). It has been my experience
that this can lead to problems loading extensions from the correct location,
even if you specify the absolute path in php.ini.


I would recommend you remove any and all PHP installs from your global
system PATH, then add the path to your current 5.3.6 install.


If that doesn't work, I would suggest you run Process Monitor to get a
closer look at what exactly is happening when this error occurs (it's a free
download from Microsoft; just do a Google search for it if you don't already
have it). Add an "include" filter by process name for "php.exe", then clear
the display (if necessary) and make sure it's capturing events. Then try
reproducing your error again. This should tell you what's happening. If
you're not sure how to interpret the data, export it to CSV format and
upload to a webserver somewhere and post a link here, and I'd be happy to
take a look. =)



--Kris




-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Wednesday, March 30, 2011 11:33 AM
To: Sascha Meyer
Cc: Curtis Tammany; php-windows@lists.php.net
Subject: Re: [PHP-WIN] PHP Startup: Unable to initialize module



On Wed, Mar 30, 2011 at 8:27 PM, Sascha Meyer wrote:

> Could you check which php.ini is loaded via phpinfo()? I assume you have a

> php.ini somewhere in your Windows directory pointing to the wrong
directory.



For what I see in the error, it is the other way 'round. 5.2 is loaded

and trying to load 5.3 extensions.



--

Pierre



@pierrejoye | http://blog.thepimp.net | http://www.libgd.org



--

PHP Windows Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php

--90e6ba5bbac99159a2049fc167f6--

Re: PHP Startup: Unable to initialize module

am 31.03.2011 08:32:39 von Kris Craig

--bcaec51a8d56bc5563049fc175b2
Content-Type: text/plain; charset=ISO-8859-1

Oh and if you're running Apache as a service, then you will have to reboot
your computer after modifying the system PATH. Simply restarting the
service won't be enough. This is because all Windows services load system
variables (including PATH) when Windows first starts, and as far as I know
there's no way to force a reload except for a reboot. Just FYI.


--Kris


On Wed, Mar 30, 2011 at 11:28 PM, Kris Craig wrote:

> Have you checked your PATH? If you've installed a previous (i.e. 5.2.x)
> version of PHP using the MSI installer earlier, then it's possible that the
> install directory was never removed from your system PATH (the MSI installer
> doesn't do this automatically as far as I know). It has been my experience
> that this can lead to problems loading extensions from the correct location,
> even if you specify the absolute path in php.ini.
>
>
> I would recommend you remove any and all PHP installs from your global
> system PATH, then add the path to your current 5.3.6 install.
>
>
> If that doesn't work, I would suggest you run Process Monitor to get a
> closer look at what exactly is happening when this error occurs (it's a free
> download from Microsoft; just do a Google search for it if you don't already
> have it). Add an "include" filter by process name for "php.exe", then clear
> the display (if necessary) and make sure it's capturing events. Then try
> reproducing your error again. This should tell you what's happening. If
> you're not sure how to interpret the data, export it to CSV format and
> upload to a webserver somewhere and post a link here, and I'd be happy to
> take a look. =)
>
>
>
> --Kris
>
>
>
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Wednesday, March 30, 2011 11:33 AM
> To: Sascha Meyer
> Cc: Curtis Tammany; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] PHP Startup: Unable to initialize module
>
>
>
> On Wed, Mar 30, 2011 at 8:27 PM, Sascha Meyer wrote:
>
> > Could you check which php.ini is loaded via phpinfo()? I assume you have
> a
>
> > php.ini somewhere in your Windows directory pointing to the wrong
> directory.
>
>
>
> For what I see in the error, it is the other way 'round. 5.2 is loaded
>
> and trying to load 5.3 extensions.
>
>
>
> --
>
> Pierre
>
>
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
>
>
> --
>
> PHP Windows Mailing List (http://www.php.net/)
>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>

--bcaec51a8d56bc5563049fc175b2--