Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2004, 04:53 PM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-13-2004, 08:36 PM
Registered User
 
Join Date: Dec 2001
Posts: 1,558
haze is on a distinguished road
http://au.php.net/gd

http://www.boutell.com/gd/

RTFM
__________________
Beau Henderson
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-13-2004, 08:48 PM
manokiss's Avatar
Registered User
 
Join Date: Mar 2002
Posts: 461
manokiss
Ay chance cPanel include the last version (2.0.28) in easyapache?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-13-2004, 08:53 PM
Registered User
 
Join Date: Dec 2001
Posts: 1,558
haze is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-19-2004, 10:03 PM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-19-2004, 10:05 PM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 09-20-2004, 12:09 AM
Registered User
 
Join Date: Dec 2001
Posts: 1,558
haze is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 09-20-2004, 11:08 AM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
Just run easy apache first with those modules, installing those modules on every server will cover 99.99% of you customers php needs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-20-2004, 09:39 PM
Registered User
 
Join Date: Jan 2004
Posts: 239
StevenC is an unknown quantity at this point
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 09-21-2004, 04:32 AM
Registered User
 
Join Date: Oct 2003
Posts: 4
lechuong
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 09-21-2004, 10:33 AM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 09-22-2004, 03:15 AM
Registered User
 
Join Date: Oct 2003
Posts: 4
lechuong
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:

Quote:
./ 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 09-22-2004, 09:14 AM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
do
ls /home | grep php

paste results here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 09-22-2004, 11:18 AM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 09-23-2004, 11:19 AM
Registered User
 
Join Date: Oct 2003
Posts: 1,020
SarcNBit is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:33 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc