GDLib and .htaccess Problem

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
stifler
Regular
Posts: 14
Joined: Tue Jan 09, 2007 8:57 pm
Location: bavaria, germany

GDLib and .htaccess Problem

Post 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.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
mastaYoda
Regular
Posts: 18
Joined: Wed Feb 08, 2006 12:13 pm
Contact:

Post 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.
Post Reply