Skip to content

Instantly share code, notes, and snippets.

@chinthakagodawita
Created December 13, 2012 06:37
Show Gist options
  • Save chinthakagodawita/78f2ef5ff6bd0268c245 to your computer and use it in GitHub Desktop.
Save chinthakagodawita/78f2ef5ff6bd0268c245 to your computer and use it in GitHub Desktop.
# 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