installing GD

  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 18, 2004
  • Posts: 486
  • Loc: Toronto
  • Status: Offline

Post October 30th, 2005, 12:45 pm

can someone please explain to me how to install the GD extension into php 4.

How do I do it?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 30th, 2005, 12:45 pm

  • Funny_Fuzz
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Jan 18, 2005
  • Posts: 1517
  • Status: Offline

Post October 30th, 2005, 9:06 pm

I was also wondering the same thing :lol:
THE BEST THINGS IN LIFE ARE FREE...
JOIN THE MEDIASHARK COMMUNITY TODAY!
  • BooGiE_MaN
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 05, 2005
  • Posts: 387
  • Loc: Cape Town, South Africa
  • Status: Offline

Post October 31st, 2005, 11:54 am

I am also watching this topic - The manual they give you is TERRIBLE
I have no idea where to start!

Simply Links Directory
  • meman
  • Web Master
  • Web Master
  • User avatar
  • Joined: Aug 03, 2004
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap
  • Status: Offline

Post October 31st, 2005, 5:15 pm

lol lots of people looking for this, i am to!

The best advice i could find was just an instruction to
apt-get install php4-gd
but that didn't work.

Someone told me to install apache2, so i might give that a go.
GodBeGone - Atheist Blog
  • Funny_Fuzz
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Jan 18, 2005
  • Posts: 1517
  • Status: Offline

Post October 31st, 2005, 5:32 pm

I don't think installing apache2 will help. GD is like an add-on mod.
THE BEST THINGS IN LIFE ARE FREE...
JOIN THE MEDIASHARK COMMUNITY TODAY!
  • john551
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Sep 17, 2005
  • Posts: 41
  • Status: Offline

Post October 31st, 2005, 11:29 pm

Open php.in file.

scroll down more than half way and you will find a list of extensions starting with a semicolon. The extension for GD you will find is

;extension=php_gd2.dll

Now remove the semicolon at the start of the above line and save the php.ini file.

Restart your webserver. Thats it. GD is ready.

You can check the installation by running the
phpinfo() function.
  • Funny_Fuzz
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Jan 18, 2005
  • Posts: 1517
  • Status: Offline

Post November 1st, 2005, 1:02 am

yea, but when you download it, where to you extract the files to?
If you're using EasyPHP, which file is the settings? PHP.INI-DISC or PHP.INI-RECOMMENDED?
And, I've done all that, tried both of the settings but it won't display it in my PHPINFO page!
THE BEST THINGS IN LIFE ARE FREE...
JOIN THE MEDIASHARK COMMUNITY TODAY!
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 18, 2004
  • Posts: 486
  • Loc: Toronto
  • Status: Offline

Post November 16th, 2005, 6:34 pm

too bad that explanation is only for the windows php version.

for windows, like he said. Uncomment the gd2 extension.

Then where you have your php directory (if you dont know check in your php ini)

there will be a folder called extensions and add it into there (if its not there already)

I use for production wamp5. It comes with all the extensions and all you gotta do is uncheck the ones you want... It works perfect.


However

Installing extensions for unix I dont know. I have cpanel and you can build apache with the extensions that you want, It works however I have another server that does not have apache, and I would like to figure out how to install it...
  • Funny_Fuzz
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Jan 18, 2005
  • Posts: 1517
  • Status: Offline

Post November 18th, 2005, 9:28 pm

Ah well. I'll be watching this topic for more replies :D
THE BEST THINGS IN LIFE ARE FREE...
JOIN THE MEDIASHARK COMMUNITY TODAY!
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Aug 07, 2004
  • Posts: 1853
  • Status: Offline

Post November 19th, 2005, 1:13 am

I was always under the impression that PHP under Unix-like operating systems needed to be compiled specially for GD support. At least http://www.php.net/manual/en/ref.image.php says that is the case.

At http://www.php.net/manual/en/install.unix.php is a slew of instructions that describes how to compile and install PHP on unix systems. This might seem scary and might cause you to learn things, and it might not even work the first time :o.

The apt-get instruction mentioned above applies only if you have the 'Advanced Packaging Tool' on your system, which might not be true. (Whether or not it is there depends on what distribution/operating system you are running -- the APT was originally developed for Debian.)
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post November 21st, 2005, 12:25 am

If you're on an RPM based system, you can just get the php-gd rpm, or "yum install php-gd" - I'm pretty sure you can also "apt-get install php-gd" on apt systems.

Outside of those, I'm thinking it's be best to follow the directions at the links Sam provided above.
http://www.disabo.com
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 18, 2004
  • Posts: 486
  • Loc: Toronto
  • Status: Offline

Post November 27th, 2005, 2:22 am

after having read a book on LAMP, and having understood how to install php. It all makes clear sence now


Also. For those of you who are using cpanel/whm. In WHM just scroll down to the bottom and click on update apache. Then check off GD library and it will install with ease.
  • Funny_Fuzz
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Jan 18, 2005
  • Posts: 1517
  • Status: Offline

Post November 27th, 2005, 3:49 am

What about for cPanel users? There is no "Update Apache" link anywhere
THE BEST THINGS IN LIFE ARE FREE...
JOIN THE MEDIASHARK COMMUNITY TODAY!
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 18, 2004
  • Posts: 486
  • Loc: Toronto
  • Status: Offline

Post November 27th, 2005, 7:54 pm

its not in CPanel for accounts, its in the whm

if you have your own dedicated host and/or you have a root login to your webhost manager then its there on the big list to the left

http://www.yourdomain.com/whm
  • ScienceOfSpock
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Jul 06, 2004
  • Posts: 1890
  • Loc: Las Vegas
  • Status: Offline

Post November 27th, 2005, 11:08 pm

on linux you can try adding:
PHP Code: [ Select ]
 
<?php
 
dl ( "php_gd2.so" );
 
?>
 
 
  1.  
  2. <?php
  3.  
  4. dl ( "php_gd2.so" );
  5.  
  6. ?>
  7.  
  8.  

to your scripts.
It's worked for me in a few instances where GD is compiled as a seperate module
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 27th, 2005, 11:08 pm

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: webspace and 125 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.