WebAug 8, 2024 · The $document_root within the php block needs to match the path of the files in the Docker container. Otherwise the path to the file passed to the fpm server running in Docker can’t find the file, hence the error “Primary script unknown”. In docker-compose.yml you map the directory /var/www/html to /docker/nextcloud/files. WebFeb 14, 2024 · I just installed a fresh Nextcloud installation using Docker-Compose, but unfortunately it doesn’t work ( FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream ). Maybe someone has an idea or a suggestion where the error is. i store all data under: /srv/services/nextcloud-data/
PHP Primary script unknown 解决方法总结 - 腾讯云开发者社区
WebAug 29, 2024 · The user rights seem to be okay: NGinx and PHP_FPM run under user www-data. Document-Root owner is www-data. FPM-Pool owner is www-data. Socket-file is there and writable. I already tried setting folder- and file-permissions to the weakest (chmod 777): No result. This is my server.conf, as you can see from commented lines, I tried a bunch … WebFeb 8, 2024 · If you're explicitly launching an interpreter (as php in.php) the script itself doesn't need to be executable. If you were trying to launch it directly (./in.php) it would, … tsp bad investment
Nginx+PHP-fpm 出现 Primary script unknown 错误解决 - 简书
WebJul 20, 2024 · My bad, it's a conflict with my nginx conf and php-fpm. I used the same service name for php-fpm in my both docker-compose and nginx conf on both websites. And when nginx tried to connect to php, he tried with php:9000 but he found two service on the same network. So I've used an alias for my network and I've changed my nginx conf. WebDec 30, 2016 · I've verified I am running the docker-compose up command from my codebase (the root of the Drupal installation) and everything is there--- but it seems like … WebJun 19, 2013 · The error message “primary script unknown” is almost always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param directive (or incorrect … phiphat phothi