The problem with PHP-FPM while using ALTLinux's NGINX

2019/03/02 21:56:26 [error] 14697#14697: *4 FastCGI sent in stderr: “PHP message: {“reqId”:“D2bAlSglwhlK6ZQOmWnH”,“level”:3,“time”:“2019-03-02T18:56:26+00:00”,“remoteAddr”:“127.0.0.1”,“user”:”–",“app”:“PHP”,“method”:“GET”,“url”:"/",“message”:“touch(): Unable to create file /var/www/nextcloud/config/config.php because Permission denied at /var/www/nextcloud/lib/private/Config.php#240”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36”,“version”:""}
PHP message: {“reqId”:“D2bAlSglwhlK6ZQOmWnH”,“level”:3,“time”:“2019-03-02T18:56:26+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/",“message”:“fopen(/var/www/nextcloud/config/config.php): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Config.php#241”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36”,“version”:""}
PHP message: {“reqId”:“D2bAlSglwhlK6ZQOmWnH”,“level”:3,“time”:“2019-03-02T18:56:26+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/",“message”:“chmod(): No such file or directory at /var/www/nextcloud/lib/private/Config.php#244”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36”,“version”:""}
PHP message: {“reqId”:“D2bAlSglwhlK6ZQOmWnH”,“level”:3,“time”:“2019-03-02T18:56:26+00:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/",“message”:{“Exception”:“OC\HintException”,“Message”:“Can’t write into config directory!”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Config.php",“line”:132,“function”:“writeData”,“class”:“OC\Config”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/lib/private/SystemConfig.php",“line”:100,“function”:“setValue”,“class”:“OC\Config”,“type”:"->",“args”:[“instanceid”,“ocqhrtt6jjj0”]},{“file”:"/var/www/nextcloud/lib/private/legacy/ut
2019/03/02 21:56:26 [error] 14697#14697: *4 FastCGI sent in stderr: “PHP message: {“reqId”:“D2bAlSglwhlK6ZQOmWnH”,“level”:3,“time”:“2019-03-02T18:56:26+00:00”,“remoteAddr”:“127.0.0.1”,“user”:”–",“app”:“PHP”,“method”:“GET”,“url”:"/",“message”:“chmod(): Operation not permitted at /var/www/nextcloud/lib/private/Log/File.php#141”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36”,“version”:""}" while reading upstream, client: 127.0.0.1, server: cloud.z, request: “GET / HTTP/2.0”, upstream: “fastcgi://127.0.0.1:9000”, host: “cloud.z”

What is the owner and group of

/var/www/nextcloud

? Is this user configured in

/etc/php/7.3/fpm/pool.d/www.conf

? The path and name of that file may be different on your system.

1 Like

It was mistake for /var/www/nextcloud owner and user in /etc/php/7.3/fpm/pool.d/www.conf

Thank’s so mach! Problem is solved.

2 Likes