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

redirect php-fpm log to stdout/stderr #121

Closed
mathieuruellan opened this issue Aug 24, 2016 · 0 comments
Closed

redirect php-fpm log to stdout/stderr #121

mathieuruellan opened this issue Aug 24, 2016 · 0 comments
Assignees

Comments

@mathieuruellan
Copy link
Contributor

I'm using AWS/ECS and docker with a log drivers, to redirect to a syslog .

The php process should write to stdout/stderr and not in a log file inside the container (which should be readonly).

I didn't try, but something like this could do the job.

[program:php-fpm]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=/usr/sbin/php5-fpm -c /etc/php5/fpm

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