Forum Moderators: coopster
I am struggling with getting GD working with PHP and Apache. PHP+GD seems to work fine. If I run test php script from command line and redirect to a png file, I can load the image on a browser.
The problem is, I can't get it to work with Apache. When I do a phpinfo(), GD is NOT loaded.
My apache config is:
LoadModule php5_module modules/libphp5.so
AddHandler php5-script php
I tried setting PHPIniDir, LD_LIBRARY_PATH etc, but somehow Apache refuses to load GD. It does work with other php scripts.
Any help is appreciated.
Thanks
You may want to start over again and make certain that you have all the necessary libraries loaded, etc. The PHP manual page on Image Functions [php.net] is a good starting point.