Centos中编译安装PHP
安装各种第三方包
yum install bison flex libxml2-devel openssl-devel bzip2-devel libcurl-devel libjpeg-devel libpng-devel freetype-devel t1lib-devel libic[......]
yum install bison flex libxml2-devel openssl-devel bzip2-devel libcurl-devel libjpeg-devel libpng-devel freetype-devel t1lib-devel libic[......]
Nginx使用fastcgi形式来运行php,下面是一个最简单的配置方法。
nginx.conf中默认存在一段fastcgi的配置,取消注释,修改下网站目录即可:
location ~ \.php$ { root 网站目录;[......]