<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-9" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Here's a few snippets from my
config that are definitely working:<br>
<br>
http {<br>
...<br>
index index.php;<br>
...<br>
server {<br>
...<br>
root /var/www/whatever/you/use<br>
location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; include
fastcgi_params; }<br>
...<br>
}<br>
}<br>
Make sure that your fastgi_params file contains this:<br>
<br>
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
<br>
without that line you will get the "no input specified" msg because an
incorrect or missing script name gets passed on to php.<br>
<br>
Chris :)<br>
<br>
<br>
</font><br>
Anıl Çetin wrote:
<blockquote cite="mid:48C2E8A6.10308@saog.net" type="cite">The problem
"3" is making default index "index.php". I did it by using rewrite;
<br>
<br>
location = / {
<br>
rewrite ^ /index.php;
<br>
}
<br>
<br>
must I use rewrite? When I do it like;
<br>
<br>
location / {
<br>
index index.php;
<br>
}
<br>
<br>
nginx does not pass "index.php" to fastcgi, rather than it looks in
its own root and of course says 404.
<br>
<br>
thanks.
<br>
<br>
<br>
Anıl Çetin yazmış:
<br>
<blockquote type="cite">Hi there,
<br>
<br>
I have two main problems about nginx(0.6.32)+fastcgi-php (4.4.9). I am
<br>
spawning php with spawn-fcgi thing and chrooting. nginx and fastcgi
<br>
processes are on different machines.
<br>
<br>
1) PHP is not logging error nor display them even it defined in php.ini
<br>
file which I am using while spawning php. php.ini directives below;
<br>
<br>
error_reporting = E_ALL & ~E_NOTICE
<br>
display_errors = On
<br>
log_errors = On
<br>
error_log = /php.errors
<br>
fastcgi.log = 1
<br>
<br>
But still I see a blank page and there is no php.errors file. "/ " path
<br>
is also owned by php-user so there are no permission problems about
that.
<br>
<br>
2) When an unexisted page requested from fastcgi-php, it says "no input
<br>
file specified". In nginx logs it shows 404 code but it doesnt shows
404
<br>
page, instead gives that message. How can I get rid of this message?
<br>
Some apache users found something with url-rewrite but I dont want to
<br>
use url-rewrite thing.
<br>
<br>
Thanks.
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
</blockquote>
</body>
</html>