By mc.edwards on
I have PHP 5.2/Drupal 5.1 running on local XP machine. I have copied php_gd2 to C:/../PHP/ext and amended php config file to include the extension. Still get the 'The GD library for PHP is missing or outdated' message on the status report. Not sure what I have to do to get it up and running. I've got no idea how to compile the GD library or with what compiler - I copied the DLL from a PHP 4.x.x download as it is no longer included in 5.2. What am I missing here?
Sorry if this is a pure PHP problem but all I know about PHP is how to spell it!
Mark
Comments
GD library / Multibyte string - Apache 2.0 - Php 4.4
Same problem:
Windows XP Pro
Apache 2.0
PHP 4.4 apache module
php_gd2.dll loaded in php.ini
php_imagick.dll loaded in php.ini
php_mbstring.dll loaded in php.ini
Drupal 5.1 working
In the status page I have:
- The GD library for PHP is missing or outdated (red backoground)
- Operations on Unicode strings are emulated on a best-effort basis (yellow background)
---
Using phpinfo() I found that php was searching php.ini in c:\windows and not in c:\php so php was ignoring my php configuration. Copying php.ini in c:\windows I solved this problem.
In the PHP install.txt you can also read:
PHP searches for php.ini in the following locations (in order):
* PHPIniDir directive (Apache 2 module only)
* HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath
* The PHPRC environment variable
* Directory of PHP (for CLI), or the web server's directory (for SAPI modules)
* Windows directory (C:\windows or C:\winnt)
Similar issue on a LAMP
Never mind, "extension=gd.so" was still commented in php.ini.
PHP Window APche GD library missing
Thankyouthankyouthankyou
You gave me the clue:
In windows, in apache httpd.conf, you MUST HAVE
no trailing slash, no backslashes, just exactly as above, else apache will not find your ini file
Also important note: The PHP Windows installer adds c:\php in the PATH variable but not c:\php\ext! Go to My Computer/Advanced/environemnt variables and edit PATH
gd library not installed after installation
"twohills - May 26, 2007 - 04:52
Thankyouthankyouthankyou
You gave me the clue:
In windows, in apache httpd.conf, you MUST HAVE
PHPIniDir "C:/php"
no trailing slash, no backslashes, just exactly as above, else apache will not find your ini file
Also important note: The PHP Windows installer adds c:\php in the PATH variable but not c:\php\ext! Go to My Computer/Advanced/environemnt variables and edit PATH
"
many thanks
yes solution
go to apache dir
and
find httpd.conf, file
then add PHPIniDir "C:/php" save
and restart apache
thanks again
GD library recognized by Drupal 5.x
This was an interesting related thread: http://drupal.org/node/134331
In Windows, with WAMP, all I had to do is go into php.ini and remove the ; in front of ;extension=php_gd2.dll.
-------------------------------------------------
AdAstra.ca - Optimze the Web. Optimze the World.
GD Library Not installed
Similar problem as above, however running on Red Hat Linux. The php.ini file does not use the extension=php_gd2.dll.
PHP 5.2.3
Red Hat EL 5
LAMP
installed GD library using "yum install php_gd" successfully. Restarted apache. But still getting the "red sneer" GD Library Not Installed. I have reconfigured PHP multiple times using --with-gd. Any ideas what to do in the Linux environment to fix this?