nginx+php+mysql环境搭建,以及discuz和ibosOA系统运行环境
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
#fastcgi_param REDIRECT_STATUS 200;
二、nginx配置
在nginx中配置如下
server {
listen 80;
server_name ;
root //var/www/html/OA/upload;
index index.html index.htm index.php;
location ~ .*\.php
{
root /var/www/html/OA/upload;
include fcgi.conf; //引入上面配置的fcgi的配置文件 fastcgi_pass 127.0.0.1:3344;
fastcgi_index index.php;
}
}
最后启动php和nginx服务,netstat –nltp看一下端口是否启动,然后在浏览器中输入就可以安装ibos了,自此ibos环境搭建完毕,回家擦汗去!