安装APACHE PHP

来源:互联网 发布:oracle数据库导出数据 编辑:程序博客网 时间:2024/06/06 09:36

APACHE 下载地址:http://www.apache.org/mirrors/

PHP下载地址:http://www.apache.org/mirrors/

安装:sudo apt-get install flex

            sudo apt-get install bison

            sudo apt-get install libxml2 libxml3-dev

            sudo su

            %>gunzip httpd-2_X_XX.tar.gz
            %>tar xvf httpd-2_X_XX.tar
            %>gunzip php-XX.tar.gz
            %>tar xvf php-XX.tar
            %>cd httpd-2_X_XX
            %>./configure --enable-so --with-mpm=worker
            %>make

            %>make install

            %>cd ../php-X_XX
            %>./configure --with-apxs2=/usr/local/apache2/bin/apxs [other options]
            %>make
            %>make install