PHP5-gd

From Server Knowledge Base
Revision as of 12:25, 15 January 2013 by Rootadminacc (talk | contribs) (Created page with "Put this in the httpdocs or public_html directory to see if GD Library is installed. <pre><?php $array = gd_info(); foreach($array as $key => $value){ if ($value == 1){ $...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Put this in the httpdocs or public_html directory to see if GD Library is installed.

<?php
 $array = gd_info();
 foreach($array as $key => $value){
 if ($value == 1){
 $value = "yes";
 } elseif ($value == ""){
 $value = "no";
 }
 echo "<b><i>$key:</i></b> $value\n<br />\n";
 }
?>

For Ubuntu you can normally just do apt-get install php5-gd via SSH.

To install it on CentOS 6 with WHM/cPanel you can enable it via WHM > Software > EasyApache - PHP Encryption and Image Manipulation

Alternatively log into your server via SSH. Then you will want to do:

yum install php-gd.x86_64 gd.x86_64 gd-devel.x86_64