»

Install Mod-FastCGI and PHP5-FPM on Ubuntu

Log — Tags: , , , , — Posted by Starck on August 22, 2013

Installation

Configuration

edit /etc/apache2/mods-enabled/fastcgi.conf:

Restart Apache2 and PHP5-FPM

— Updated 2014-01-09 (Ubuntu 13.10)–

mkdir /var/www/cgi-bin

touch /var/www/cgi-bin/php5.fcgi

chown -R www-data:www-data /var/www/cgi-bin

edit /etc/apache2/mods-enabled/fastcgi.conf:

Virtual host setting example :

References

Continue Reading

Nginx with Apache + FastCGI + PHP-FPM

  • Pingback: Nginx with Apache + FastCGI + PHP-FPM » Starck Lin()

  • dreisterKerl

    I installed mod-fastcgi with php5-fpm on apache2 like this and it works great!
    Can you just tell me what to do to force apache2 to parse html files as php in this setup?

    Thanks very much!

  • zmaxlin

    Do you want this?

    fastcgi.conf:
    AddType application/x-httpd-fastphp5 .html

    It will let apache2 pass .html files to php5-fpm

(c) 2024 Starck Lin | powered by WordPress