我已将Engine X和
PHP 5.3.3从源代码安装到CentOS 5.5服务器上.我认为安装过程中一切顺利,Engine X确实提供静态文件.
当尝试访问基本的PHP文件时,它将PHP代码作为纯文本提供.
2010/09/23 20:49:35 [error] 3331#0: *6 connect() Failed (111: Connection refused) while connecting to upstream,client: my.local.ip,server: the_server,request: "GET / HTTP/1.1",upstream: "fastcgi://127.0.0.1:9000",host: "the.servers.ip"
我的配置文件是:
server { listen *:80; location ~ \.PHP$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /var/www/default$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; include /usr/local/Nginx/conf/fastcgi_params; } }