Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to redirect requests for .php files to PHP-FPM for all virtual hosts in Apache 2.4?
    primarykey
    data
    text
    <p>In <a href="http://httpd.apache.org/docs/2.2/" rel="nofollow">Apache 2.2</a> forward all request that point to phisical .php file to <a href="http://php-fpm.org/" rel="nofollow">PHP-FPM</a> is as follow:</p> <p>LoadModule <a href="http://www.fastcgi.com/" rel="nofollow">fastcgi_module</a> modules/mod_fastcgi.so</p> <pre><code>FastCGIExternalServer /usr/sbin/php-fpm -socket /usr/local/php/lib/php.sock -idle-timeout 900 AddHandler php-fastcgi .php Action php-fastcgi /usr/sbin/php-fpm.fcgi ScriptAlias /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm </code></pre> <p>But in <a href="http://httpd.apache.org/docs/2.4/" rel="nofollow">Apache 2.4</a> is different, I'm following the tutorial in <a href="http://wiki.apache.org/httpd/PHP-FPM" rel="nofollow">Apache Wiki</a> but I don't understand as enable PHP for all virtual host, not each one.</p> <p>I search in PHP documentation, there is not mention about install on Apache 2.4: </p> <ul> <li><a href="http://www.php.net/manual/en/install.unix.apache2.php" rel="nofollow">Install PHP on Apache 2.x on Unix systems</a></li> <li><a href="http://www.php.net/manual/en/install.fpm.install.php" rel="nofollow">PHP-FPM Install</a></li> <li><a href="http://php-fpm.org/wiki/Documentation" rel="nofollow">PHP-FPM Documentation</a></li> </ul> <p>Only for mention, the soluction thank to +Diemuzi was:</p> <pre><code>&lt;IfModule mod_fastcgi.c&gt; DirectoryIndex index.php index.shtml index.cgi index.html index.htm AddHandler php5-fcgi .php Action php5-fcgi /php5-fcgi Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/lib/php/php.sock -idle-timeout 900 -pass-header Authorization &lt;/IfModule&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload