skip to Main Content

No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/run/php/php5.6-fpm.sock (*) failed – Apache

I have such virtual host settings <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html <FilesMatch .php$> SetHandler "proxy:unix:/var/run/php/php5.6-fpm.sock|fcgi://localhost/" </FilesMatch> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> phpinfo() shows that my site has a version of php 5.6. All right! Now I am trying…

VIEW QUESTION

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
Back To Top
Search