On 12:50, Wed 04 Feb 09, Chris Bennett wrote: > L. V. Lammert wrote: >>> > Can someone point me in the right direction to determine what packages >>> >> are required for 'GD2' support, php5, OBSD 4.3? The SilverStripe >>> CMS is >>> >> asking for 'GD2', but they don't provide enough information to >>> isolate >>> >> the required packages. >>> >>> php5-gd >> >> Found the problem!! >> >> php5-gd-5.2.5-no_x11 installs: >> /var/www/lib/php/modules/gd.so >> >> HOWEVER gd.so MUST BE INSTALLED IN: >> /usr/local/lib/php/modules >> >> >> in order for libphp5.so to find it when Apache loads! >> > I tried this but I am still getting errors relating to GD using PHP5 > I also copied it into the chroot, but made no difference. > > PHP Warning: imagesx(): supplied argument is not a valid Image resource > in /var/www/htdocs/users/webmail/plugins/twc_weather/twc_support.php on > line 631 > [Wed Feb 4 12:20:01 2009] [error] PHP Warning: imagesy(): supplied > argument is not a valid Image resource in > /var/www/htdocs/users/webmail/plugins/twc_weather/twc_support.php on > line 632 > [Wed Feb 4 12:20:01 2009] [error] PHP Warning: imagepng(): supplied > argument is not a valid Image resource in > /var/www/htdocs/users/webmail/plugins/twc_weather/twc_support.php on > line 644 > [Wed Feb 4 12:20:02 2009] [error] PHP Warning: imagecreatefromgif() > [<a href='function.imagecreatefromgif'>function.imagecreatefromgif</a>]: > URL file-access is disabled in the server configuration in > /var/www/htdocs/users/webmail/plugins/twc_weather/twc_support.php on > line 629
Did you actually read this error log ? you are feeding imagecreatefromgif a location over http/ftp/whatever that is not local files and the default php.ini does not allow that. There's a setting named allow_url_fopen that you can enable. -- Michiel van Baak [email protected] http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD "Why is it drug addicts and computer aficionados are both called users?"

