skip to Main Content

Why browser show Server API for info.html as Apache 2.0 Handler but info.php as FPM/FastCGI?

Environment:centos7+php7.2. I build FPM/FastCGI as the tutorial say. build FPM/FastCGI Show my important configuration in /etc/httpd/conf.d/php.conf. <IfModule mod_php7.c> <FilesMatch .(php|phar)$> SetHandler "proxy:fcgi://127.0.0.1:9000" </FilesMatch> <FilesMatch ".+.html$"> SetHandler application/x-httpd-php </FilesMatch> php_value session.save_handler "files" php_value session.save_path "/var/lib/php/session" php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache" </IfModule> Assign the…

VIEW QUESTION

Failed to parse address on mysqli_connect – CPanel

Background: Converted from EasyApache3 -> EasyApache4 (Cpanel). Went from mpm-prefork/php5.5/dso to mpm-worker/php71fpm/fastcgi. The error message is: Failed to parse address &quot;127.0.0.1:3306:3306&quot; in /home/user/conndb/conndb.php on line 2 The code is: <?php $con = mysqli_connect('127.0.0.1:3306','user','password','database'); ?> I had done a previous test…

VIEW QUESTION
Back To Top
Search