php + gd on apache

Discussion in 'PHP' started by 0xpf, Jul 29, 2007.

  1. #1
    I am struggling with getting GD working with PHP and Apache. PHP+GD works 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.

    php.ini configuration seems to be right, since, as mentioned earlier, php with gd is working fine.

    Any help is appreciated.

    Thanks
     
    0xpf, Jul 29, 2007 IP