Path

ez.no / exponential / documentation / obsolete / installation / manual / compiling php


Compiling PHP

This explains how you can compile PHP for use with Exponential.

Options

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

Comments

Log in or create a user account to comment.

Contents

Obsolete

Installation
    Extensions
    Installers
    Manual
       Getting the latest Exponential source
       Installing ImageMagick without root a...
       Compiling PHP
       Webserver build on Linux
       Linux/Unix
       Windows
    Uninstall
    Wizard
Upgrade


Created

22/04/2003
1:07:06 pm
by Karsten Jennissen

Last updated

30/09/2003
2:26:59 pm
by Tony Wood

Authors

Karsten Jennissen
Tony Wood
B�rd Farstad
Bj�rn Dieding@xrow.de



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.