Hi everybody
I'm using Ubuntu 12.04
I installed nginx and php-fpm for my php applications
I config my virtual host and it can run.
But when encouter php error, I view on all log files, but I can't view log
My configuration is below:
My virtual host named i.vn
PHP Code:
server {
listen 80;
server_name i.vn;
root /home/quydo/htdocs/istore;
index index.php index.html;
error_log /var/log/nginx/istore_error.log error;
access_log /var/log/nginx/istore.access.log;
#access_log off;
location ~ \.php {
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/quydo/htdocs/istore$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED /home/quydo/htdocs/istore$fastcgi_path_info;
}
location / {
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
}
I edit /etc/php5/fpm/php.ini
log_errors = On
error_log = /var/log/php_errors.log
I edit /etc/php5/fpm/pool.d/www.conf
php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/fpm-php.
www.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 32M
When i run my site with error php code, example
echo $a
echo $this->function()
with $a and function() are not declare.
Then I try to:
tail -f /var/log/nginx/istore_error.log - no more line
tail -f /var/log/php_errors - no more line
No logs save into that files
Can you tell me problem
Thank you very much