Forum Moderators: coopster

Message Too Old, No Replies

php + GD on Apache

         

0xwebmw

5:39 pm on Jul 29, 2007 (gmt 0)

10+ Year Member



Hello,

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

joelgreen

2:16 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



Maybe there are few php.ini files on your system? Not sure if that makes any sense as i'm windows user :(

coopster

12:58 am on Aug 8, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, 0xwebmw.

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.