installing GD

  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

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

How do I do it?
  • Funny_Fuzz
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1517

Post 3+ Months Ago

I was also wondering the same thing :lol:
  • BooGiE_MaN
  • Proficient
  • Proficient
  • User avatar
  • Posts: 387
  • Loc: Cape Town, South Africa

Post 3+ Months Ago

I am also watching this topic - The manual they give you is TERRIBLE
I have no idea where to start!
  • meman
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap

Post 3+ Months Ago

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.
  • Funny_Fuzz
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1517

Post 3+ Months Ago

I don't think installing apache2 will help. GD is like an add-on mod.
  • john551
  • Beginner
  • Beginner
  • john551
  • Posts: 41

Post 3+ Months Ago

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
  • Posts: 1517

Post 3+ Months Ago

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!
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

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
  • Posts: 1517

Post 3+ Months Ago

Ah well. I'll be watching this topic for more replies :D
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1852

Post 3+ Months Ago

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
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

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.
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

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
  • Posts: 1517

Post 3+ Months Ago

What about for cPanel users? There is no "Update Apache" link anywhere
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

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
  • Posts: 1893
  • Loc: Las Vegas

Post 3+ Months Ago

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
  • meman
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap

Post 3+ Months Ago

I tried apt-get install php4-gd again on linux the other day, and it worked this time for some strange reason.
I dont know why it didnt work last time i done it.
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

maybe they updated their version of it or something...

normally I would use YUM to update any of my software, although I am not sure whether it has updates for php as does the apt...
  • liyana_0206
  • Born
  • Born
  • liyana_0206
  • Posts: 1

Post 3+ Months Ago

how can i find file php.ini?
i can't find that file in my server.

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: No registered users and 37 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.