Jump to content


Photo

How exactly do I install the GD library?


  • Please log in to reply
8 replies to this topic

#1 weenoid

weenoid
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 29 March 2006 - 05:45 PM


Hey, question's in the title really. I have already downloaded a zip file containing the files, but I have no idea what to do with it. I've never installed any PHP packages and i've been searching the internet and I can't find any tutorials on how to do it. Any help is very much appreciated :). Thanks.

#2 complex05

complex05
  • Members
  • PipPipPip
  • Advanced Member
  • 124 posts

Posted 29 March 2006 - 05:49 PM

There should be a readme file in the zip file you downloaded....

#3 weenoid

weenoid
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 29 March 2006 - 05:57 PM

Nope, nothing of the sort.

#4 lead2gold

lead2gold
  • Members
  • PipPipPip
  • Advanced Member
  • 164 posts
  • LocationOttawa, On

Posted 29 March 2006 - 06:06 PM

[!--quoteo(post=359747:date=Mar 29 2006, 12:57 PM:name=weenoid)--][div class=\'quotetop\']QUOTE(weenoid @ Mar 29 2006, 12:57 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Nope, nothing of the sort.
[/quote]

GD comes built into PHP (the newer versions of it)
you just have to enable it's extension in your php.ini. Then restart Apache.

the line looks something like:
;extension=php_gd2.dll

change it to:
extension=php_gd2.dll


#5 weenoid

weenoid
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 29 March 2006 - 06:07 PM


Hey, ok sounds simple enough. Erm.... how do I get to the php.ini file? :P Thanks.

#6 wildteen88

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

Posted 29 March 2006 - 06:13 PM

Are you're on a shared hosting or are on you installed PHP/Apache on your PC?

If you're on a shared hosting account then you wont be able to modify the php.ini, however you could ask your host to enable it for you.

However if you have installed it localy then you can eidt your php.ini file. in order to find out where your php.ini is located run the following script on your server:
<?php

//make sure you remove the . between the p and the h before running this script!
p.hpinfo();

?>
When you run that it should a lot of info about PHP and your server. Look for the line [ir]Configuration File (php.ini) Path[/i] which should be located about 5 or so lines from the to. Next to that should be the full path to your PHP.ini file.

Hope that helps.

#7 weenoid

weenoid
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 29 March 2006 - 06:16 PM


Hey, ok i've got the location:

/usr/local/lib/php.ini

How do I get to that folder though? Would logging in to FTP as the root user work? Thanks.

#8 wildteen88

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

Posted 29 March 2006 - 06:18 PM

If your on VDS then I think you might be able to access it and edit. In order find where it is use the code that I provided above in my previous post

#9 lanny

lanny
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 22 April 2006 - 04:54 PM

my php.ini path is at c:\windows........but i cant see there is a php.ini file inside the folder...how?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users