需要预装的软件包:
mysql
apt-get install libxml2
apt-get install libxml2-dev
apt-get install zlib1g-dev
(默认启用sqlite3,在src的ext下含sqlite代码,不必事先下载安装sqlite3)
编译:
./configure --enable-fpm --with-mysql --prefix=/opt/(--with-fpm-user=nginx --with-fpm-group=nginx)
make
make test
make install
配置:
默认date.timezone = “Asia/Shanghai”
cgi.fix_pathinfo=0
配置user = nobody
group = nogroup
ps -ef|grepkill …
配置nginx:
location ~ \. fastcgi_pass 127.0.0.1:9000;
fastcgi_index index. include fastcgi_params;
}
# cat /usr/share/nginx/www/