V
V
Vladimir Pal2013-01-26 14:05:38
PHP
Vladimir Pal, 2013-01-26 14:05:38

Php5-fpm not showing logs?

Hello everyone, I'm trying to run bitrix on php5-fpm and nginx.
Explain how and where php generates the error log?
I get a 500 error, the nginx error logs are empty, the access log with a 500 response.
Nothing in the php-fpm logs either.
nginx config:

upstream site {server unix:/var/run/php5-site.sock;}<br><br>
server {<br>
  listen   80;<br>
  server_name  site.ru;<br><br>
  access_log  /var/log/nginx/site.access.log;<br>
  error_log  /var/log/nginx/site.error.log;<br><br>
  root   /var/www/site/;<br>
  index index.php;<br><br>
        location ~ \.php$ {<br>
                fastcgi_pass  site;<br>
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
                include fastcgi_params;<br>
        }<br>
}<br>

php-fpm, pool.d/site.conf:
[newjourn]<br>
listen = /var/run/php5-site.sock<br>
listen.mode = 0666<br>
user = site<br>
group = site<br>
chdir = /var/www/site<br>
php_admin_value[error_log] = /var/log/php5-fpm.log<br>
php_admin_flag[log_errors] = on<br>
catch_workers_output = yes<br><br>

Added to the php-fpm config
php_admin_value[error_reporting] = E_ALL & ~E_NOTICE
Now everything displays

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VBart, 2013-01-26
@chegivara

bugs.php.net/bug.php?id=61045

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question