11

Does the GD2 extension come with PHP by default? If yes, since what version does it happen? Is it enabled by default?

thanks (:

Grzegorz Oledzki
  • 23,614
  • 16
  • 68
  • 106
Hugo Mota
  • 11,200
  • 9
  • 42
  • 60

3 Answers3

5

GD isn't compiled with PHP by default but is included with many binary distributions of PHP.

Full details/instructions are here: http://www.php.net/manual/en/image.setup.php

James C
  • 14,047
  • 1
  • 34
  • 43
5

On windows system, it is generally delivered but not installed. You can enable it by decommenting the section in the php.ini file.

On Linux systems (Debian & Ubuntu), on a default installation, it is activated. Rather than doing it in command line as suggests : Atticus, give it a try with a php info!

<?php 
    phpinfo();
?>

If GD is installed, you'll see it on that page. ;)

i.am.michiel
  • 10,281
  • 7
  • 50
  • 86
1

Hmm I think i had to install mine on my server

do you have access to your server or is it a shared server?

If so -- check if php5-gd is installed

Atticus
  • 6,585
  • 10
  • 35
  • 57
  • my doubt is merely informative. i need the info for a paperwork and i couldn't find it objetively in the manual :( – Hugo Mota May 09 '11 at 13:13
  • you can install php5-gd with the following command. If it doesn't exist, it will download. If it exists, it will not download again. "sudo yum install php5-gd" – coolcool1994 Aug 10 '13 at 16:52