php-fpm7 fails to start with default nextcloud.conf
When trying to start the php-fpm7 service, it'll fail if the file /etc/php7/php-fpm.d/nextcloud.conf
is installed from nextcloud-initscript
.
▶ sudo rc-service php-fpm7 start
* Checking /etc/php7/php-fpm.conf ...
[27-Jun-2020 16:11:33] ALERT: [pool nextcloud] user has not been defined
[27-Jun-2020 16:11:33] ERROR: failed to post process the configuration
[27-Jun-2020 16:11:33] ERROR: FPM initialization failed
* failed, please correct errors above [ !! ]
* ERROR: php-fpm7 failed to start
I fixed it locally by adding user = www-data
under the [nextcloud]
section in said file, but I'm not sure it's the best solution or right user
CC @larena as you are the maintainer of the nextcloud package