|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-12-21 21:21 UTC] sainthyoga2003 at gmail dot com
Description: ------------ Actually I don't know if is related to Apache2 or to FPM. All was running ok with PHP 7.3.11. This happened once I updated PHP to 7.4.0 If I try to run phpinfo from localhost: http://localhost/index.php I get a blank page. Now if I try to run ANY other script from the web, I get the error 'Primary script unknown'. Test script: --------------- <?php phpinfo(); Expected result: ---------------- Web page with my PHP information. Via CLI it works. Actual result: -------------- Blank page for localhost/index.php File not found for localhost/whatever/whatever.php, localhost/whatever.php Error loged as Primary script unknown PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
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.