发布时间:2015-03-16 14:42:30
第一步先运行命令关闭nginxsudo kill `cat /usr/local/nginx/logs/nginx.pid`第二步vi /etc/init.d/nginx输入以下内容#!/bin/sh## nginx - this script starts and stops the nginx daemin## chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse \# &nb......【阅读全文】
发布时间:2015-03-16 14:42:22
1. 更改php.ini首先php.ini的配置中把;cgi.fix_pathinfo=0 改为cgi.fix_pathinfo=12. 在nginx/conf/nginx.conf 找到: fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; 改为: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;......【阅读全文】
发布时间:2015-03-16 14:42:16
#使用哪个用户启动nginx 前面是用户,后面是用户组user www www;#nginx工作的进程数量worker_processes 2;# [ debug | info | notice | warn | error | crit ] 日志的位置error_log /var/htdocs/logs/nginx_error.log crit;#进程号保存文件pid /usr/local/nginx/nginx.pid;#每个进程可以打开的最大文件字节数worker_rlimit_nofile 51200;ev......【阅读全文】
发布时间:2015-03-16 14:42:12
什么是CGI CGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。 CGI可以用任何一种语言编写,只要这种语言具有标准输入、输出和环境变量。如php,perl,tcl等 什么是FastCGI FastCGI像是一个常驻(long-live)型的CGI,它可以一直执行着,只要激活后,不会每次都要花费时间去fork一次(这是CGI最为人诟病的fork-and-execute 模式)。它还支持分布式的运算, 即 FastCGI 程序可以在网站服务器以外的主机上执行并且接受来......【阅读全文】
发布时间:2015-03-16 14:42:08
下载autoconf的2.13版本,高版本不行tar zxvf autoconf-2.13cd autoconf-2.13./configure --prefix=/usr/local/autoconf-2.13make && make install# export PHP_AUTOCONF=/usr/local/autoconf-2.13/bin/autoconf# export PHP_AUTOHEADER=/usr/local/autoconf-2.13/bin/autoheader然后再运行:./buildconf --force重建configure文件这样可以不改......【阅读全文】