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

From: Date: Fri, 14 Feb 2020 13:17:47 +0000
Subject: Bug #79014 [Opn]: PHP-FPM & Primary script unknown | no more PHP Render
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225579@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 Updated by: nikic@php.net Reported by: sainthyoga2003 at gmail dot com Summary: PHP-FPM & Primary script unknown | no more PHP Render Status: Open Type: Bug Package: *General Issues Operating System: openSUSE Tumbleweed PHP Version: 7.4.0 -Assigned To: +Assigned To: bukka Block user comment: N Private report: N New Comment: systemd service changes strike again! @bukka: Do you think we should drop the ProtectHome option from the default? Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2020-02-10 00:19:27] sainthyoga2003 at gmail dot com Updated to 7.4.2 in openSUSE Tumbleweed latest release, the same problem. I think because this issue, in AWS the main PHP version is the 7.3.11 What's news about it? ------------------------------------------------------------------------ [2020-01-02 11:13:26] counterstrikec4 at gmail dot com I also show this bug when using the following bundle: Apache (mpm event) and php-fpm (UDS unix socket). Settings under which I see a problem: cgi pathino fix value "1". For more information, apache settings for php are configured correctly and everything is fine in the .htacces file too. The problem is that when accessing non-existent php files, apache processes correctly and responds with a 404 error, but php fpm still tries to process a non-existent php file and responds with a primary script unknown error. I also observed a problem using php unix socket in apache, namely when using only unix socket in php with cgi path info value 0 set, php did not correctly handle script file name or script file path. These are very important issues for using php fpm unix socket in apache. ------------------------------------------------------------------------ [2019-12-23 10:43:26] cmb@php.net Feedback has been given. ------------------------------------------------------------------------ [2019-12-21 22:03:39] sainthyoga2003 at gmail dot com I don't think so. If the previous version was working, why should fail when upgrade? My current php7 handler for apache is: <IfModule mod_php7.c> <FilesMatch "\.ph(p[345]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.php[345]?s$"> SetHandler application/x-httpd-php-source </FilesMatch> #DirectoryIndex index.php4 #DirectoryIndex index.php5 DirectoryIndex index.php </IfModule> <IfModule mod_proxy_fcgi.c> <FilesMatch "\.ph(p[345]?|tml)$"> SetHandler "proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/" </FilesMatch> <FilesMatch "\.php[345]?s$"> SetHandler application/x-httpd-php-source </FilesMatch> DirectoryIndex index.php #DirectoryIndex index.php4 #DirectoryIndex index.php5 </IfModule> I have just made a rollback to get the PHP 7.3.11 what is working. ------------------------------------------------------------------------ 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 (#225579) next »