|
|||
|
__________________
Beau Henderson |
|
|||
|
Quote:
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 |
|
|||
|
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 |
|
|||
|
Quote:
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:
I make same for u but can not found folder /home/cpphpbuild/php-4.3.8 Follow all info: Quote:
Help me... thanks! Last edited by lechuong; 09-22-2004 at 03:23 AM. |
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|