ez.no / exponential / documentation / obsolete / installation / manual / compiling php
This explains how you can compile PHP for use with Exponential.
The following example assumes you are running php (tested on 4.3.1/4.3.2/4.3.3), Apache 1, mysql 3 or 4 and openssl on a RedHat system (Tested on RH 7.3).
Ensure you have all your -devel libraries or else ./configure or make will fail
./configure --with-apxs=/usr/sbin/apxs \ --with-mysql=shared,/usr \ --with-ttf \ --with-gd -enable-gd-native-ttf \ --enable-trans-sid \ --enable-inline-optimization \ --includedir=/usr \ --with-zlib=/usr \ --with-layout=GNU \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --with-ssl \ --with-kerberos=/usr/kerberos/include/ \ --with-pgsql \ --with-xml \ --with-dom \ --with-config-file-path=/etc \ --with-layout=GNU \ --enable-mbstring --with-jpeg-dir
or you can try this one. It has some more options compiled in.
./configure --prefix=/usr/share \ --datadir=/usr/share/php \ --with-apxs=/usr/sbin/apxs \ --bindir=/usr/bin \ --libdir=/usr/share \ --includedir=/usr/include \ --with-_lib=lib \ --with-config-file-path=/etc \ --with-exec-dir=/usr/lib/php/bin \ --with-mysql \ --disable-debug \ --enable-bcmath \ --enable-calendar \ --enable-ftp \ --enable-inline-optimization \ --enable-magic-quotes \ --enable-mbstr-enc-trans \ --enable-mbstring \ --enable-track-vars \ --enable-trans-sid \ --with-bz2 \ --with-ftp \ --with-xml \ --with-dom \ --with-curl \ --with-zlib-dir=yes \ --with-mcrypt \ --with-xpm-dir \ --with-gd \ --with-jpeg-dir=/usr \ --with-tiff-dir \ --with-png-dir \ --with-freetype-dir \ --with-ttf \ --with-xpm-dir \ --enable-gd-native-ttf \ --with-ssl \ --with-kerberos=/usr/kerberos/include/ \ --with-pgsql --with-jpeg-dir make && make install
Note. --with-jpeg-dir is needed if you want GD to work
Log in or create a user account to comment.
Comments