[Windows] php-cgi.exe can't find extension

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have the following minimalist PHP 5.4.8 setup for Windows:


Here's the two lines I edited in php.ini:

//extension_dir = ".\"
extension_dir = "./"

Still, when running "php-cgi.exe dummy.php" in a DOS box, PHP can't
locate the php_gd2.dll extension:
C:\Projects\Php\dummy>php-cgi.exe dummy.php
PHP Warning:  PHP Startup: Unable to load dynamic library
'./php_gd2.dll' - The specified module could not be found.
 in Unknown on line 0

Do I need to edit php.ini further, or am I missing some binaries?

Thank you.

Re: [Windows] php-cgi.exe can't find extension

On 12/3/2012 8:49 AM, Gilles wrote:
Quoted text here. Click to load it

Are you sure you're changing the right php.ini file?  What does
phpinfo() show you (both for the configuration file being used and the
loaded extensions)?

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: [Windows] php-cgi.exe can't find extension

On Mon, 03 Dec 2012 11:03:23 -0500, Jerry Stuckle
Quoted text here. Click to load it

The problem disappeared after using the thread-safe version of release
5.4.9 ("VC9 x86 Thread Safe (2012-Nov-21 21:22:38)")

Thank  you.

Site Timeline