Jump to content

Archived

This topic is now archived and is closed to further replies.

weenoid

How exactly do I install the GD library?

Recommended Posts


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.

Share this post


Link to post
Share on other sites
[!--quoteo(post=359747:date=Mar 29 2006, 12:57 PM:name=weenoid)--][div class=\'quotetop\']QUOTE(weenoid @ Mar 29 2006, 12:57 PM) [snapback]359747[/snapback][/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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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:
[code]<?php

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

?>[/code]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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
my php.ini path is at c:\windows........but i cant see there is a php.ini file inside the folder...how?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.