FastCGI

FastCGI is a language independent, scalable, open extension to CGI that provides high performance and persistence without the limitations of server specific APIs.

Install PHP per the instructions.

Compile Apache with --enable-proxy-fcgi

Enable the proxy_fcgi and proxy modules in /usr/local/apache/conf/httpd.conf:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so

Also add:

ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/var/run/php-fpm.pid|fcgi://localhost/usr/local/apache2/htdocs/"

Resource
High-performance PHP on apache httpd 2.4.x using mod_proxy_fcgi and php-fpm
Apache Module mod_proxy_fcgi

Recent Updates

  • 2 months 1 week ago
  • 2 months 1 week ago
  • 2 months 2 weeks ago
    php 8.x
  • 2 months 2 weeks ago
    10.6.7
  • 2 months 2 weeks ago
    Drop Centos 5/6 stuff