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.

How can I upgrade the php GD library from 2.0.23 to 2.0.28?

Discussion in 'General Discussion' started by AbeFroman, Sep 13, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    How can I upgrade the php GD library from 2.0.23 to 2.0.28?
     
  2. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
  3. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    Ay chance cPanel include the last version (2.0.28) in easyapache?
     
  4. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    You will probably have to wait till php 4.3.9.

    As taken from php.net/gd:
    GIF "Only supported in GD versions older than gd-1.6. Read-only GIF support is available with PHP 4.3.0 and the bundled GD-library. Write support is avaliable since PHP 4.3.9 and PHP 5.0.1."
     
  5. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    These 12 commands will install gd2.0.28 perfectly:
    wget http://www.boutell.com/gd/http/gd-2.0.28.tar.gz
    tar -xzvf gd-2.0.28.tar.gz
    cd gd-2.0.28
    ./configure --prefix=/usr/local
    make
    make install
    cd /home/cpphpbuild/php-4.3.8
    './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-ftp' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-zlib'
    make
    make install
    /etc/rc.d/init.d/httpd restart
    /etc/rc.d/init.d/httpd start
     
  6. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    Your php info file will read:
    gd
    GD Support enabled
    GD Version 2.0 or higher
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled

    "GIF Create Support enabled" means it GD 2.0.28
     
  7. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    I would first caution anyone thinking about doing the above, to first check out their phpinfo ./configure line and adjust these accordingly. Also, take into consideration additional steps or alterations to the above if you have phpsuexec set up, etc.

    You may also be able to upgrade gd without re-compiling php if you already have a previous version of GD compiled into php.
     
  8. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    Just run easy apache first with those modules, installing those modules on every server will cover 99.99% of you customers php needs.
     
  9. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
  10. lechuong

    lechuong Registered

    Joined:
    Oct 13, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1

    Great post!

    But i'ms sorry i can't install on my server because can't not found folder /home/cpphpbuild/php-4.3.8 then i'm can't execute command cd /home/cpphpbuild/php-4.3.8.

    Help me, plz!

    Thank bro
     
    #10 lechuong, Sep 21, 2004
    Last edited: Sep 21, 2004
  11. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    Compile apache using easyapache first, no suexec, use these modules
    ┌──────────────────────────────────────────────────────┐ │
    │ │[*] Php Module │ │
    │ │ (*) Version 4.3.8 │ │
    │ │ ( ) Version 5.0.0 (TESTING) │ │
    │ │ ( ) Version 5.0.1 (TESTING) │ │
    │ │ (*) Bc Math │ │
    │ │ (*) Calendar Support │ │
    │ │ (*) Curl │ │
    │ │ (*) Curl SSL Support │ │
    │ │ (*) Dom XSLT │ │
    │ │ ( ) Exif │ │
    │ │ ( ) Flash │ │
    │ │ (*) FTP │ │
    │ │ (*) GD │ │
    │ │ ( ) GetText │ │
    │ │ (*) Imap Module │ │
    │ │ ( ) Java (must already be installed, or install w│ │
    │ │ (*) Mb String │ │
    │ │ (*) Mcrypt │ │
    │ │ (*) Mhash │ │
    │ │ (*) Ming Support │ │
    │ │ (*) Magic Quotes │ │
    │ │ (*) Mysql Module │ │
    │ │ (*) Openssl Support │ │
    │ │ (*) Discard Path │ │
    │ │ ( ) PDFlib (requires license for commerical use; │ │
    │ │ (*) Pear │ │
    │ │ ( ) Postgresql (will break 7.2.x or earlier, plea│ │
    │ │ (*) Pspell Module │ │
    │ │ (*) Sablot XSLT [may cause problems with chili!as│ │
    │ │ ( ) SafeMode │ │
    │ │ (*) Sockets │ │
    │ │ ( ) Use System Mysql │ │
    │ │ (*) Track Vars │ │
    │ │ (*) Freetype Support │ │
    │ │ (*) Versioning │ │
    │ │ (*) WDDX │ │
    │ │ ( ) XML RPC │ │
    │ │ ( ) Zip │ │
    │ │ (*) Zlib │ │

    It will build the
    /home/cpphpbuild directory
     
  12. lechuong

    lechuong Registered

    Joined:
    Oct 13, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thank for reply :)


    After i start build Apache same U but have error:

    PHP:
    [COLOR=Red][B]configureerrorlibjpeg.(a|sonot found.[/B][/COLOR]

    make php-4.3.8...(clean)...Done 

    make php
    -4.3.8......Done 

    make php
    -4.3.8...(install)...Done 

    configure php
    -4.3.8...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-imap --with-kerberos --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --with-ming=../ming-0.2a --enable-magic-quotes --with-mysql --with-openssl --enable-discard-path --with-pear --with-pspell --enable-xslt --with-xslt-sablot --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --enable-wddx --with-xmlrpc --with-zlib).... . . . . . . . . . . . . . . . . . . . . Done 
    [COLOR=DimGray][B]configureerrorlibjpeg.(a|sonot found[/B].[/COLOR]


    I make same for u but can not found folder /home/cpphpbuild/php-4.3.8


    Follow all info:



    Help me... thanks!
     
    #12 lechuong, Sep 22, 2004
    Last edited: Sep 22, 2004
  13. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    do
    ls /home | grep php

    paste results here
     
  14. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    do
    locate php-4.3.8

    try to find the directoy where cpanel compiled php 4.3.8, you will want to compile for that same directory.
     
  15. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Wow, 4.3.9 has been out for more than 24 hours now and I do not see the expected half-dozen "unique" first day threads asking when it is going to be incorporated. Must be some real problems going on in the world. :D
     
  16. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Major problems, but that might not be so bad....
     
  17. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    Where are you seeing 4.3.9? I am running bleeding edge and apache only lets me do 4.3.8 or 5
     
  18. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    by apache i mean easyapache
     
  19. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    I am seeing it here. I am not suggesting that it is part of easyapache yet.
     
Loading...

Share This Page