Ok since The Ensim 3.1.1 patch installs PHP 4.2.2 with GD 1.6, and due to the popularity of the 4.2.2 w/ GD 2.0 (for Ensim 3.0) i have written this how to.
REQUIREMENTS:
- Note: The procedure below is ONLY for Ensim 3.1.1,
if you dont have 3.1.1, you can upgrade it fairly easily. Please check out this thread here - http://forum.rackshack.net/showthread.php?...&threadid=10359
Step One:
SSH to your box, and proceed to login as root.
mkdir php
cd php
wget http://us3.php.net/distributions/php-4.2.2.tar.gz
wget http://www.boutel.com/gd/http/gd-2.0.1.tar.gz
tar -zxvf gd-2.0.1.tar.gz
cd gd-2.0.1
pico Makefile
locate
INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include
and replace it with
INCLUDEDIRS=-I. -I/usr/local/include/freetype2 -I/usr/local/include
hit controll +X to exit, make sure you hit Y to save the file.
once out of pico, type
make
make install
this will install the shared GD library for later use. You will also need to make the libgd.a
make libgd.a
cd ../
tar -zxvf php-4.2.3.tar.gz
cd php-4.2.3
now we need to configure php. The configure below is the standard PHP configure taken directly from the Ensim 3.1.1 patch, so if you wish to add any additional components, i would suggest you do so before going any further.
./configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd=/home/admin/php/gd-2.0.1 --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext=shared --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pear --with-png --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-debugger --enable-exif --enable-ftp=shared --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem=shared --enable-sysvshm=shared --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --disable-experimental-zts --with-apxs=/usr/sbin/apxs
Configure may take some time... so you wany want to get out the beer and nuts
NOTE: I removed --with-pspell as it caused a wierd error. If anyone knows how to fix that, please let me know.
Once configure is completed, type
make
This will build all the components, should take 15 minutes or so.... more beer and nuts
finally, we need to run
make install
Once it is installed, a simple reboot of Apache and we are all done!
/sbin/service httpd restart
All done!
Please post any problems/errors you get below!