Jump to content


Photo

*SOLVED* Installing GD


  • Please log in to reply
2 replies to this topic

#1 sanfly

sanfly
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationNew Zealand

Posted 01 July 2006 - 08:33 PM

Hi

I just installed php/mysql/apache on my brand new windows machine, and it appears that GD is not installed.  I have downloaded the install file from the site, but have no idea how to install it. 

Can anyone help me out?

Cheers
If you're not part of the solution, you're part of the precipitate

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 02 July 2006 - 09:45 AM

You need to enable the gd extension. You can do this by editting the php.ini file. Find and open you php.ini file and find the following line:
;extension=php_gd2.dll
Now remove the semi-colon from the stat of the line.

Now you'll need to setup the extension_dir directive. You'll need to scroll up a bit an ffind the following line:
extension_dir = "./"
Change ./ to the actuall location of the PHP extension folder. BY defualt it will be C:\php\ext for PHP5 or C:\php\extension for PHP4.

Once you setup the extension_dir and removed the semi-colon save your php.in iand restart yout Apache server. If you have setup the extension_dir correctly GD should be now be available.

Also Did you use the PHP installer? If you did download the zipped binaries package instead and extract the contents to where you have installed PHP to. As the installer doesn't have that many extensions/files.

#3 sanfly

sanfly
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationNew Zealand

Posted 02 July 2006 - 06:35 PM

Activating it in the php.ini file did the trick, I didnt realise it was already included!

Thanks for the help :)


If you're not part of the solution, you're part of the precipitate




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users