LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   LINUX PHP GD configuration (https://www.linuxquestions.org/questions/linux-general-1/linux-php-gd-configuration-677794/)

SomnathG 10-20-2008 08:29 AM

LINUX PHP GD configuration
 
Dear All,

I am using Red Hat linux and have installed PHP 4.4.7 version. Now I want to add GD library with that installed PHP. How can I do that? How can I check that GD library is not installed. Please let me know. It's very urgent.

Thank You

BlueC 10-20-2008 11:07 AM

Quote:

Originally Posted by SomnathG (Post 3316493)
Dear All,

I am using Red Hat linux and have installed PHP 4.4.7 version. Now I want to add GD library with that installed PHP. How can I do that? How can I check that GD library is not installed. Please let me know. It's very urgent.

Thank You

What version of RH Linux? If you're using RHEL 5 then just "yum install php-gd".

If you're using some ancient version of old RedHat like RedHat 9 then, err, you shouldn't be because it is EOL and unsupported.

As an aside, PHP 4.x is also EOL as of 2008-08-08 so you really shouldn't be using that in a production environment either.

trickykid 10-20-2008 11:40 AM

Create yourself a php info script to view from your server:

Code:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

Or you can run php -m to display all modules loaded, which gd is usually loaded as.

As for the older version of PHP, well, Red Hat is behind in the times, they'll use what was stable at the time. PHP 4.x was recently decommissioned for use, I'm sure Red Hat will come up to speed sooner or later.

But yeah, Red Hat should have available the php-gd package, which usually gets loaded by default if you install php, even in RHEL 4 versions.

SomnathG 10-21-2008 03:43 AM

Red Hat Linux 9
 
Quote:

Originally Posted by trickykid (Post 3316636)
Create yourself a php info script to view from your server:

Code:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

Or you can run php -m to display all modules loaded, which gd is usually loaded as.

As for the older version of PHP, well, Red Hat is behind in the times, they'll use what was stable at the time. PHP 4.x was recently decommissioned for use, I'm sure Red Hat will come up to speed sooner or later.

But yeah, Red Hat should have available the php-gd package, which usually gets loaded by default if you install php, even in RHEL 4 versions.

I have been installed red hat linux 9, and installed PHP 4.4.7. Which version of gd should I install for gif, jpeg and png and How I will be able to do so? Please let me know.

BlueC 10-22-2008 12:31 PM

Quote:

Originally Posted by SomnathG (Post 3317330)
I have been installed red hat linux 9, and installed PHP 4.4.7. Which version of gd should I install for gif, jpeg and png and How I will be able to do so? Please let me know.

RedHat Linux 9 doesn't exist any more. It has been EOL for over 4 years! Why are you using it?

If you want a free version of RedHat-like Linux suitable for a server then use CentOS 5.x - using that you won't have any problems installing php-gd

trickykid 10-22-2008 12:40 PM

Quote:

Originally Posted by SomnathG (Post 3317330)
I have been installed red hat linux 9, and installed PHP 4.4.7. Which version of gd should I install for gif, jpeg and png and How I will be able to do so? Please let me know.

So why are you posting the same question in multiple threads?

http://www.linuxquestions.org/questi...dation-678316/

Did you not read my replies? If not, go read them again, they're pretty clear with the actions you need to take to move forward with a solution for yourself.


All times are GMT -5. The time now is 09:13 PM.