PHPsu
MANUAL ZH  |  EN
     


Current Position :| index>Beginners> Compiling PHP

Compiling PHP

FROM: AUTHOR: TIME:2008-05-29 HITS:

These documentation pages are no longer maintained. Please visit the new documentation site.

phpsu提供的php教程

This explains how you can compile PHP for use with eZ publish. phpsu.com

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 phpsu.com is a free phpscool

./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 \ phpsu.com is a free phpscool

--with-config-file-path=/etc \

--with-layout=GNU \

--enable-mbstring

--with-jpeg-dir phpsu is a phpschool

or you can try this one. It has some more options compiled in. phpsu.com

./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 \ phpsu.com is a free phpscool

--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 \ welcome to phpsu.com

--with-ssl \

--with-kerberos=/usr/kerberos/include/ \

--with-pgsql

--with-jpeg-dir

 

make && make install phpsu.com

Note. --with-jpeg-dir is needed if you want GD to work

phpsu.com


TITLE:Compiling PHP
Previous:OOP Basics
Next:Basic Variables
Copyright 2008 The PHPsu All rights reserved. This mirror generously provided by: .Hp Inc.
Last updated: Fri Jun 6 22:58:57 GMT-8 2008