編譯php的配置引數

2021-04-16 07:47:31 字數 1011 閱讀 5074

怕忘記, 記錄再此. 這個兩個伺服器上的設定, 都只是參考.

php 4.3.11

./configure --prefix=/home/raid/system/php

--with-mysql=/home/raid/system/mysql/

--with-apxs=/home/raid/system/apache/bin/apxs

--with-gd --with-zlib

--with-freetype-dir=/usr/

--with-png-dir=/usr/

--with-jpeg-dir=/usr/

--disable-posix

--enable-memory-limit

--enable-zend-multibyte

--with-iconv

--enable-inline-optimization

--enable-magic-quotes

--enable-ftp

php 4.4.0

./configure --prefix=/usr/local/php

--with-apxs=/usr/local/apache/bin/apxs

--with-iconv=/usr/local

--enable-mbstring

--with-gd

--with-jpeg-dir=/usr/local

--with-png-dir=/usr/local

--with-freetype-dir=/usr/local

--with-ttf --enable-gd-native-ttf

--with-zlib-dir=/usr

--with-dom=/usr/local

--with-mysql=/usr/local

--with-ldap=/usr/local

--with-curl=/usr/local

編譯php的配置引數

怕忘記,記錄再此.這個兩個伺服器上的設定,都只是參考.php 4.3.11 configure prefix home raid system php with mysql home raid system mysql with apxs home raid system apache bin ap...

常用的PHP編譯引數

configure prefix usr with apxs2 usr sbin apxs enable fastcgi with layout gnu with config file path etc with config file scan dir etc php.d disable ipv...

編譯配置php

一 安裝相關的依賴 yum y install gccgcc c bzip2 devel libjpeg devel libpng devel freetype devel libxml2 devel 二 解壓php安裝包php 5.6.29.tar.gz tar xzvf php 5.6.29.t...