i was trying lately to use thecodingmachine/php:7.1-v3-fpm-node10 image as my fpm container for local development and was surprised by this error message:
php-fpm_1 | [24-Sep-2020 20:05:32] ALERT: [pool www] user has not been defined
php-fpm_1 | [24-Sep-2020 20:05:32] ALERT: [pool www] user has not been defined
php-fpm_1 | [24-Sep-2020 20:05:32] ERROR: failed to post process the configuration
php-fpm_1 | [24-Sep-2020 20:05:32] ERROR: failed to post process the configuration
php-fpm_1 | [24-Sep-2020 20:05:32] ERROR: FPM initialization failed
php-fpm_1 | [24-Sep-2020 20:05:32] ERROR: FPM initialization failed
When i looked into /etc/php/7.1/fpm/pool.d/www.conf
i have discovered that the line with user = www-data
is still commented, although i have absolutely no idea why. The same image worked ok a week ago.
Can anyone please help me with this ?
I believe i have figured out what the error was. I had containers built without enabled WSL 2 within my Docker for Windows so when I have switched to WSL2 the containers weren't rebuilt. After pruning containers and rebuilding them it works OK.