首页 > 代码库 > nginx+php5+fastcgi

nginx+php5+fastcgi

1. nginx安装

  准备:pcre-8.36.tar.gz  nginx-1.7.9.tar.gz

 

  tar -xzvf pcre-8.36.tar.gz

  tar -xzvf nginx-1.7.9.tar.gz

  cd nginx-1.7.9

  ./configure --prefix=/home/username/server --with-pcre=/home/username/software/pcre-8.36

  make && make install

2. php安装

  准备:php-5.6.4.tar.gz

 

  tar -xzvf php-5.6.4.tar.gz

  cd php-5.6.4

  ./configure --prefix=/home/username/server

  make && make install

 

nginx+php5+fastcgi