• Nginx

Blog Archives

nginx + php5-fpm doesn’t work properly. get a blank page

nginx visit php get a blank page

Env

ubuntu
nginx
php5-fpm

Problem?

when I visit phpinfo page, got a blank page

how?

1.

2.

./configure: error: the HTTP rewrite module requires the PCRE library.

环境: CentOS 6.2 64bit

nginx版本: 1.4.4

安装报错:

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using –without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using –with-pcre= option.

解决方案:

继续: make && make install
nginx安装完成

nginx支持PATH_INFO

nginx支持PATH_INFO

在低版本中nginx是不支持PATH_INFO模式的,这对国内的一些框架如ThinkPHP是致命的,所以尽快更新你的nginx版本。
目前的nginx的支持path_info模式,具体代码如下:

参考:http://wiki.nginx.org/NginxHttpFcgiModule#fastcgi_split_path_info

CentOS6.3 lnmp环境搭建

CentOS6.3 lnmp环境搭建

  • 系统环境: CentOS6.3 32位bit版本
  • 软件环境: Nginx-1.2.7 + MySQL-5.5.27 + PHP-5.4.11

1.安装相关扩展以及编译工具

(更多…)