Bug #79014 [Com]: PHP-FPM & Primary script unknown | no more PHP Render

From: Date: Mon, 14 Sep 2020 19:48:45 +0000
Subject: Bug #79014 [Com]: PHP-FPM & Primary script unknown | no more PHP Render
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229009@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79014&edit=1 ID: 79014 Comment by: support at lunaria dot co dot uk Reported by: sainthyoga2003 at gmail dot com Summary: PHP-FPM & Primary script unknown | no more PHP Render Status: Closed Type: Bug Package: FPM related Operating System: openSUSE Tumbleweed PHP Version: 7.4.0 Assigned To: bukka Block user comment: N Private report: N New Comment: PHP 7.4.10 (FPM), apache 2.4, cPanel 90.0.8 CentOS 7.8 I'm still seeing this bug in my system error log. [Mon Sep 14 20:36:15.115925 2020] [proxy_fcgi:error] [pid 26994] [client 94.195.123.222:59049] AH01071: Got error 'Primary script unknown' Steps to reproduce: Any HTTP request to diverecorder.co.uk that doesn't result in a 200. Have checked .htaccess rules, all okay Checked /opt/cpanel/ea-php74/root/etc/php-fpm.d Can't find ""ProtectHome=true" in config. Previous Comments: ------------------------------------------------------------------------ [2020-02-23 19:16:31] bukka@php.net @nikic yeah just dropped it. Hopefully it's the last fix for systemd changes... ------------------------------------------------------------------------ [2020-02-23 19:15:10] bukka@php.net Automatic comment on behalf of bukka Revision: http://git.php.net/?p=php-src.git;a=commit;h=578a8113ebade39e68489c974cd6c16b2aecbf2e Log: Fix bug #79014 (PHP-FPM & Primary script unknown) ------------------------------------------------------------------------ [2020-02-23 19:14:27] bukka@php.net Automatic comment on behalf of bukka Revision: http://git.php.net/?p=php-src.git;a=commit;h=578a8113ebade39e68489c974cd6c16b2aecbf2e Log: Fix bug #79014 (PHP-FPM & Primary script unknown) ------------------------------------------------------------------------ [2020-02-14 13:17:47] nikic@php.net systemd service changes strike again! @bukka: Do you think we should drop the ProtectHome option from the default? ------------------------------------------------------------------------ [2020-02-14 13:12:27] demo dot knyang at gmail dot com I had the similar problem. OS: 4.19.102-1-MANJARO PHP Version: 7.4.2 Nginx Version: 1.16.1 Service Manager: Systemd 242 Nginx error log: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream. While, all was running ok with php 7.2.26. Finally, I found that the problem was caused by systemd php-fpm.service configuration. My project is located in $HOME directory. And in php-fpm.service for php 7.4.2, there is one line "ProtectHome=true". Change this option to false took effects. It works for me, for reference only. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=79014 -- Edit this bug report at https://bugs.php.net/bug.php?id=79014&edit=1

« previous php.bugs (#229009) next »