LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-18-2012, 07:19 AM   #1
ubungu
LQ Newbie
 
Registered: Jun 2012
Location: /home/ubungu
Posts: 27

Rep: Reputation: Disabled
Unhappy nginx + php-fpm not save log


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx + php-fpm and nginx modules fantasygoat Linux - Server 0 06-09-2011 12:21 PM
Nginx experts help me-problem when using Nginx php-fpm !!! HuMan-BiEnG Linux - Server 2 04-17-2011 02:30 PM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 06:39 PM
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-14-2010 11:42 PM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration