The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GD lib not wroking in PHP?

Discussion in 'General Discussion' started by antoshka, Oct 29, 2003.

  1. antoshka

    antoshka Member

    Joined:
    Oct 27, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    i run cPanel 8.5.4-R7. it seems that GD lib module is not installed for PHP. is there a way to install it?

    thank you.
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear antoshka,

    You have to download the GD library. You can download it from the URL:
    http://www.boutell.com/gd/ and recompile the php with it. For recompilation use the steps as:

    Step1:
    Download php and GD.
    Step2:
    With in php directory run the command
    ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml
    --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysql --with-pear --enable-sockets --enable-track-vars
    --enable-versioning --with-zlib --with-imap --with-gd

    put GD in the current path otherwise specify the path.
    Step3:
    Run commands

    make
    make install
    Step4:
    Run the command for http restart:

    service httpd stop
    service httpd start
    This will complete the php-GD recompilation.

    Regards,
     
Loading...

Share This Page