Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    BANNED
    Join Date
    Feb 2002
    Posts
    656

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

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

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    1,558
    Beau Henderson

  3. #3
    Member manokiss's Avatar
    Join Date
    Mar 2002
    Posts
    519

    Default

    Ay chance cPanel include the last version (2.0.28) in easyapache?

  4. #4
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Quote Originally Posted by manokiss
    Ay chance cPanel include the last version (2.0.28) in easyapache?
    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."
    Beau Henderson

  5. #5
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    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. #6
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    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. #7
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    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.
    Beau Henderson

  8. #8
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    Just run easy apache first with those modules, installing those modules on every server will cover 99.99% of you customers php needs.

  9. #9
    Member
    Join Date
    Jan 2004
    Posts
    252

    Default

    Maybe they dont need every module? for example my phpinfo: http://64.21.102.144/phpinfo.php
    Rack911.com - Competent Server Administration
    Server Security - Administration - Managed Servers - Optimization - High Traffic Clusters

  10. #10
    Registered User
    Join Date
    Oct 2003
    Posts
    4

    Default

    Quote Originally Posted by AbeFroman
    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

    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
    Last edited by lechuong; 09-21-2004 at 04:48 AM.

  11. #11
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    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. #12
    Registered User
    Join Date
    Oct 2003
    Posts
    4

    Default

    Thank for reply


    After i start build Apache same U but have error:

    PHP Code:
    [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:

    ./ catcuong/ installd/ php-4.3.8/
    ../ choban/ latest quota.user*
    aquota.user* .cpan/ lost+found/
    bestspac/ cpapachebuild/
    root@new [/home]#


    Help me... thanks!
    Last edited by lechuong; 09-22-2004 at 03:23 AM.

  13. #13
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    do
    ls /home | grep php

    paste results here

  14. #14
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    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. #15
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    Quote Originally Posted by haze
    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."
    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.

Similar Threads & Tags
Similar threads

  1. PHP Warning: PHP Startup: Unable to load dynamic library no-debug-non-zts
    By jdilegge in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 12-04-2011, 09:26 AM
  2. GD library and PHP 5 issue?
    By jackbwa in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-20-2010, 07:39 PM
  3. How to install php gd library?
    By maizer in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-17-2009, 12:06 AM
  4. PHP GD Library
    By ronaldoo in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-22-2009, 05:05 PM
  5. PHP GD Library
    By AnthonyCaesar in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-22-2005, 08:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube