RE: PHP Startup: Unable to initialize module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx]
Sent: Wednesday, March 30, 2011 11:33 AM
To: Sascha Meyer
Cc: Curtis Tammany; php-windows@xxxxxxxxxxxxx
Subject: Re:  PHP Startup: Unable to initialize module



On Wed, Mar 30, 2011 at 8:27 PM, Sascha Meyer <harlequin2@xxxxxx> 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

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux