I have been trying to get PHP-FPM to work with Apache 2.4, but mod_fastcgi does not work with 2.4. Is there any solution to this problem? I want to run it using an UNIX socket, but I cannot find any tutorial on this, they all use 127.0.0.1:9000
Php – Apache 2.4 + PHP-FPM + mod_fastcgi (Problems setting up PHP-FPM)
apache-2.4fastcgimod-fastcgiPHPphp-fpm
Related Topic
- PHP-FPM not working as global PHP handler on Apache, CentOS 6.4
- Setup apache and mod_fastcgi to work with php-fpm not working
- Replicating mod_fastcgi with ProxyPassMatch (PHP-FPM setup)
- Is PHP Option ‘cgi.fix_pathinfo’ Dangerous with Nginx + PHP-FPM?
- Apache 2.4 virtualhost_alias with php5-fpm and proxy_fcgi
Best Answer
I installed Apache 2.2 with mod_fastcgi and it works using UNIX sockets.
Snippet of configuration from my httpd.conf is:
PHP-FPM is listening on socket /var/www/example.com/php-fpm.sock.
PHP-FPM's configuration (inside a pool):
I did not succeed with mod_fcgi. Apache 2.4 now has mod_proxy_fcgi which I didn't tested. You need something with that can work with external FastCGI servers and don't manage the processes itself.