编译安装Apache+PHP
1.解压Apachetar zxvf httpd-2.4.18.tar.gz
把apr和apr-util包解压到Apache里的srclib目录里面
tar zxvf apr-1.4.6.tar.gz -C /home/software/httpd-2.4.18/srclib/
tar zxvf apr-util-1.5.2.tar.gz -C /home/software/httpd-2.4.18/srclib/
cd/home/software/httpd-2.4.18/srclib/
修改一下包名
mv apr-1.4.6 apr
mv apr-util-1.5.2 apr-util
安装apr
cd apr
./configure --prefix=/usr/local/apr
make
make install
安装apr-util
cd apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
安装pcre
tar zxvf pcre-8.38.tar.gz
cd pcre-8.38
./configure
make
make install
安装Apache
cd /home/software/httpd-2.4.18
./configure --prefix=/usr/local/apache --enable-so --enable-modules=most --enable-mods-shared=all --enable-proxy --enable-rewrite --with-mpm=worker --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make
make install
编译安装mod_fastcgi模块,并在httpd.conf中加载库文件
tar zxvf mod_fastcgi-2.4.6.tar.gz
cd mod_fastcgi-2.4.6
wget http://leeon.me/upload/other/byte-compile-against-apache24.diff
patch -p1
页:
[1]