View Full Version : Update PHP?
FarCry
06-26-2003, 12:11 PM
I think Mark is ignoring me.. so im posting it here :)
I need to update php, or at least recompile it so i have socket functions and GD... so the thing is, how?
i know how to compile php, i just dont know where or how on a DA machine, nothing seems to work.
DirectAdmin Support
06-26-2003, 01:33 PM
You have a few options.. our apache build script is available, still 0.9 beta, but it's been well tested:
mkdir /usr/local/directadmin/customapache
cd /usr/local/directadmin/customapache
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build all
(you can just type ./build to see a list of everything.. you can type ./build php to just to php)
OR.... php.sh in the script directory will build the old 4.3.0 version of php, but you'd have to edit it to add the --with-gd and all things like that.
John
l0rdphi1
06-26-2003, 02:44 PM
It's yelling at me saying "You do not have libjpeg installed. GD will fail." Is there something I'm doing wrong? I followed your steps exactly :)
DirectAdmin Support
06-26-2003, 04:22 PM
I'm going to take a wild guess and say that you probably don't have libjpeg installed ;)
GD is a graphics librarys that uses lower level graphics libraries to do whatever it does. If they don't exist, it won't work (someone correct me if I'm wrong on that)
The build script checks for /usr/lib/libjpeg.so and /usr/lib/libpng.so before it tries to make gd.. so until I add libjpeg/libpng to the build script, you'll have to install it yourself.
John
FarCry
06-26-2003, 04:35 PM
LOL @ apache.sh it overwrote my httpd.conf :eek: luckey i had backups :)
ill try that php.sh...
... worked like a champ :) thanks
DirectAdmin Support
06-26-2003, 05:38 PM
o, ya.. don't run apache.sh :)
That'll clobber everything, although I think it makes a backup.
php.sh will compile and install the default "dry" php install using the old 4.3.0 version
John
l0rdphi1
06-26-2003, 05:50 PM
Thanks John :)
I'll give it a go next time I've got some free time.
FarCry
06-27-2003, 12:26 AM
libraries you might look to look into:
libpng http://www.libpng.org
libtiff http://www.libtiff.org
libjpg http://www.ijg.org
zlib http://www.gzip.org/zlib
my config line:
./configure --with-mysql --with-apxs --with-xml --with-kerberos --with-pear --with-gettext --enable-calendar --with-gd --with-gd-dir=/usr/gd --with-jpeg --with-zlib --with-zlib-dir=/usr/local/zlib-1.1.4 --with-tiff-dir=/usr/local/tiff-v3.5.5 --with-jpeg-dir=/usr/local/jpeg-6b --with-png-dir=/usr/local/libpng-1.2.5 --enable-ftp --enable-sockets
DirectAdmin Support
07-03-2003, 01:34 AM
Hi guys,
I've added libjpeg, libpng and libz to the customapache build program.
If you already have it, just run
./build update
./build all
to get the latest stuff. If you want the newest configure.php file, remove your current one before running ./build update.
If you don't have it, run the script as instructed above.
John
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.