1.下载apr,apr-util,pcre,httpd,php源码包

2.安装apr

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

2.安装apr-util

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config

3.安装pcre

./configure --prefix=/usr/local/pcre --with-apr=/usr/local/apr/bin/apr-1-config

4.安装httpd

./configure --prefix=/usr/local/httpd --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --with-pcre=/usr/local/pcre/bin/pcre-config

5.安装php

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --enable-soap --enable-opcache --enable-ftp --with-zlib --with-mcrypt --with-gd --enable-sigchild --with-iconv --enable-gd-native-ttf --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-mbstring --with-curl=/usr/local/curl --with-pdo-mysql=/usr/local/mysql

Post Navigation