Page 1 of 1

GDLib and .htaccess Problem

Posted: Tue Jan 23, 2007 8:54 pm
by stifler
Hey guys,

I posted a while ago problems with my GDlib and my .htaccess.

I had to take out the line
DirectoryIndex /index.php
to get s9y working. So far.

Then I tried the picture upload. I get
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /home/httpd/htdocs/woerle.de/net/include/functions_images.inc.php on line 1244
So I thought I dont have the right version of the GDLib. I contacted my provider and he told me that GDLib is installed with the version 2.0.28 together with php5.

He said perhaps I should parse the .php files with .htaccess or change the .php into .php5.

When I call a phpinfo() on the server I get php Version 4.x with an GDLib 1.x and when I rename the file into info.php5 I get php Version 5.0.3 including the new GDLib.

Can anybody help me here?

---------UPDATE---------
I edited the .htaccess and added
php5-cgi .php
Now php5 is working with the proper GDLib. Just in case somebody is interested.

Posted: Wed Jan 24, 2007 10:28 pm
by judebert
Do you know if this is a general solution for all Apache servers, or if it depends on the webhoster's configuration? It it'll work for all Apache servers, I'd like to add it to the Expert.

Posted: Thu Jan 25, 2007 9:10 am
by mastaYoda
No, this is just working if the webhoster provides such an solution. To go into details: this is the case, when PHP 4 is configured to server .php and .php4-files and PHP 5 is configured to server .php5 files. If it is that way you can change your settings so that apache will also serve .php-files with the PHP-interpreter.