Created
December 13, 2012 06:37
-
-
Save chinthakagodawita/78f2ef5ff6bd0268c245 to your computer and use it in GitHub Desktop.
Apache2 PHP5-FPM conf file mirror Modified from http://howto.biapy.com/en/debian-gnu-linux/servers/php/install-php-fpm-on-debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PHP-FPM configuration | |
<IfModule mod_fastcgi.c> | |
Alias /php5.fastcgi /var/lib/apache2/fastcgi/php5.fastcgi | |
AddHandler php-script .php | |
FastCGIExternalServer /var/lib/apache2/fastcgi/php5.fastcgi -socket /var/run/php-fpm-apache2.sock -idle-timeout 610 | |
Action php-script /php5.fastcgi virtual | |
# Forbid access to the fastcgi handler. | |
<Directory /var/lib/apache2/fastcgi> | |
<Files php5.fastcgi> | |
Order deny,allow | |
Allow from all | |
</Files> | |
</Directory> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment