Update PHP?

FarCry

Verified User
Joined
Jun 6, 2003
Messages
280
Location
Perth, Australia
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.
 
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
 
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 :)
 
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
 
LOL @ apache.sh it overwrote my httpd.conf :eek: luckey i had backups :)

ill try that php.sh...


... worked like a champ :) thanks
 
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
 
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
 
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
 
Back
Top