Closed amitrahav closed 5 years ago
We don't have an FPM image so that's likely why FPM logs aren't showing up.
Php must run with fpm for wp.
בתאריך יום ד׳, 12 ביוני 2019 ב-19:26 מאת Derek Sifford < notifications@github.com>:
We don't have an FPM image so that's likely why FPM logs aren't showing up.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/visiblevc/wordpress-starter/issues/157?email_source=notifications&email_token=AALSPJYASCOH2WZ3N277K43P2EPS3A5CNFSM4HXHO3L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXRAELQ#issuecomment-501350958, or mute the thread https://github.com/notifications/unsubscribe-auth/AALSPJ3TDLXLLETZIZQ5PYLP2EPS3ANCNFSM4HXHO3LQ .
--
עמית רהב // מחוז צפון
נייד: 054-9732632 פקס: 153-549732639 מייל: amit.r.89@gmail.com
אתר: noal.org.il http://www.noal.org.il/ פייסבוק: @noal4u https://www.facebook.com/noal4u/
[image: חתימה דקה יותר מוקטן] http://www.noal.org.il/
Php must run with fpm for wp.
That's not true. You can see this just by looking at the official WordPress images on Dockerhub: https://hub.docker.com/_/wordpress/
solve it by those steps:
display_errors = on
track_errors = true
log_errors = on
- './logs.ini:/usr/local/etc/php/conf.d/'
into wordpress image volumes at docker-compose.ymlerror_reporting(E_ALL);
into wp-config.php or some other environmental configuration could help and creating empty php-error.log on data folder (should be ignore on real live projects).
then php-fpm error logs will appear on this file.
See also:
The environment variables WP_DEBUG
, WP_DEBUG_DISPLAY
, and WP_DEBUG_LOG
listed in the README.
Setting WP_DEBUG_LOG
to /logs.ini
likely does what you're describing. But this is not PHP-FPM logs.
Additionally, if you add ini_set('error_reporting', E_ALL );
to EXTRA_PHP
, this will enable all errors to be reported (if not enabled already by wordpress).
It should also be mentioned that, unless you explicitly installed PHP-FPM yourself, PHP-FPM is not provided or supported by us in the image.
Overview
Is there a way to watch fpm logs local? docker logs showing only proxy logs at the moment.