собственно сабж, (два дня ужо кружу... .;,.,:%№")
проблема в том что nginx 0.6.7 пишет ошибки php в stderr, а нужно на экран (stdout)
менял в php.ini
display_errors = On
; Default Value: On
; Development Value: On
; Production Value: Off
display_startup_errors = On
; Default Value: Off
; Development Value: On
; Production Value: Off
error_reporting = E_ALL
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; html_errors
; Default Value: On
; Development Value: On
; Production value: Off
log_errors = On
; Default Value: Off
; Development Value: On
; Production Value: On
root@www /# find / -name "php.ini"
/etc/php5/cli/php.ini
/etc/php5/cgi/php.ini
Соответсвенно после каждой попытки :
/etc/init.d/php-fastcgi restart
/etc/init.d/nginx restart
Поможииитее аааа....
/etc/nginx/sites-available/default
server {
listen 80;
server_name www.*******.com *******.com;
root /var/www/*******;
index index.php;
include /etc/nginx/include/php;
fastcgi_intercept_errors on;
try_files $uri $uri/ /index.php?$query_string;
location /index.php {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/nginx/php-fastcgi.sock;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/nginx/php-fastcgi.sock;
}
location ^~ /wa-data/protected/ {
#return 403;
#X-Accel-Redirect
internal;
}
location ~* ^/wa-(log|config|cache|system)/ {
return 403;
}
location ~* ^/wa-data/public/contacts/photo/[0-9]+/ {
root /var/www/posuda;
access_log off;
expires 30d;
error_page 404 = @contacts_thumb;
}
location @contacts_thumb {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/nginx/php-fastcgi.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/contacts/photo/thumb.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/contacts/photo/thumb.php;
}
# photos app
location ~* ^/wa-data/public/photos/[0-9]+/ {
access_log off;
expires 30d;
error_page 404 = @photos_thumb;
}
location @photos_thumb {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/nginx/php-fastcgi.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/photos/thumb.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/photos/thumb.php;
}
# end photos app
# shop app
location ~* ^/wa-data/public/shop/products/[0-9]+/ {
access_log off;
expires 30d;
error_page 404 = @shop_thumb;
}
location @shop_thumb {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/nginx/php-fastcgi.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/shop/products/thumb.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/shop/products/thumb.php;
}
# end shop app
location ~* ^.+\.(jpg|jpeg|gif|png|js|css)$ {
access_log off;
expires 30d;
}
}
phpinfo:
PHP Version 5.3.3-7+squeeze18
System Linux www 2.6.32-23-pve #1 SMP Tue Aug 6 07:04:06 CEST 2013 i686
Build Date Dec 12 2013 11:11:02
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /etc/php5/cgi/php.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d
Additional .ini files parsed /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini, /etc/php5/cgi/conf.d/xcache.ini
PHP API 20090626
....
display_errors Off Off // тут ничего не меняется ...
display_startup_errors Off Off //и тут...
PHP 5.3.3-7+squeeze18 with Suhosin-Patch (cli) (built: Dec 12 2013 11:11:12)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo