Skip to content
Snippets Groups Projects
Verified Commit 17561f86 authored by Manuel Herrmann's avatar Manuel Herrmann
Browse files

php error reporting to syslog (issue #53)

parent 121b4405
No related branches found
No related tags found
No related merge requests found
web:
image: richarvey/nginx-php-fpm
build: docker
dockerfile: DockerfileNginx
links:
- db
ports:
......
FROM richarvey/nginx-php-fpm
ADD run-web.sh /
RUN chmod 755 /run-web.sh
CMD ["/run-web.sh"]
File mode changed from 100644 to 100755
#!/bin/bash
sed -ri '
/^php_flag\[display_errors\]/ d
$ a php_flag[display_errors] = on
' /usr/local/etc/php-fpm.conf
sed -ri '
/^;?error_log/ c error_log = syslog
/^;?syslog.facility/ c syslog.facility = daemon
/^;?syslog.ident/ c syslog.ident = php-fpm
/^;?log_level/ c log_level = notice
' /usr/local/etc/php-fpm.d/*.conf
tee /usr/local/etc/php/conf.d/zzz-registration-system.ini << END
[PHP]
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = On
log_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
track_errors = On
html_errors = On
END
exec /start.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment