[Windows] php-cgi.exe can't find extension [message #179749] |
Mon, 03 December 2012 13:49 |
Gilles Ganault
Messages: 27 Registered: September 2010
Karma: 0
|
Junior Member |
|
|
Hello
I have the following minimalist PHP 5.4.8 setup for Windows:
php-cgi.exe
php.ini
php5.dll
php_gd2.dll
dummy.php
Here's the two lines I edited in php.ini:
//extension_dir = ".\"
extension_dir = "./"
....
extension=php_gd2.dll
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 [message #179751 is a reply to message #179749] |
Mon, 03 December 2012 16:03 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 12/3/2012 8:49 AM, Gilles wrote:
> Hello
>
> I have the following minimalist PHP 5.4.8 setup for Windows:
>
> php-cgi.exe
> php.ini
> php5.dll
> php_gd2.dll
> dummy.php
>
> Here's the two lines I edited in php.ini:
>
> //extension_dir = ".\"
> extension_dir = "./"
> ...
> extension=php_gd2.dll
>
> 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.
>
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.
jstucklex(at)attglobal(dot)net
==================
|
|
|
|