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?
Beau Henderson
Ay chance cPanel include the last version (2.0.28) in easyapache?
You will probably have to wait till php 4.3.9.Originally Posted by manokiss
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
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
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
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
Just run easy apache first with those modules, installing those modules on every server will cover 99.99% of you customers php needs.
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
Originally Posted by AbeFroman
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.
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
Thank for reply
After i start build Apache same U but have error:
PHP Code:[COLOR=Red][B]configure: error: libjpeg.(a|so) not 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]configure: error: libjpeg.(a|so) not 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.
do
ls /home | grep php
paste results here
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.
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.Originally Posted by haze
![]()