Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php logs are not displayed #43

Open
npf opened this issue Feb 7, 2016 · 3 comments
Open

php logs are not displayed #43

npf opened this issue Feb 7, 2016 · 3 comments
Assignees

Comments

@npf
Copy link
Contributor

npf commented Feb 7, 2016

nginx does not show php error logs.

according to
http://serverfault.com/questions/417102/nginx-not-logging-php-errors

setting catch_workers_output = true in /etc/php5/fpm/pool.d/www.conf
could solve the issue, but I just get 502 Bad Gateway

Also, can you recall in what using nginx is better than apache for oardocker ?

@npf
Copy link
Contributor Author

npf commented Feb 7, 2016

Also, before changing anything, the following errors up in nginx error.log

root@frontend /var/log/nginx
$ cat error.log 
2016/02/07 20:29:49 [notice] 181#181: using inherited sockets from "3:4;"
2016/02/07 20:29:49 [crit] 181#181: getsockname() of the inherited socket #4 failed (88: Socket  operation on non-socket)
2016/02/07 20:29:49 [alert] 181#181: close() built-in log failed (9: Bad file descriptor)
nginx: [alert] close() built-in log failed (9: Bad file descriptor)

@npf
Copy link
Contributor Author

npf commented Feb 7, 2016

Ooops, looks like there was no error to show.
There's something bizarre in the code which does not output errors...

@npf
Copy link
Contributor Author

npf commented Feb 7, 2016

Nevermind, I had a javascript error, which did not show up in nginx logs of course.

Before closing this issue, explanation about /var/log/nginx would be welcome however, as well a why nginx is better than apache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants