Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
Last active December 21, 2015 16:48
Show Gist options
  • Select an option

  • Save ryaan-anthony/6335626 to your computer and use it in GitHub Desktop.

Select an option

Save ryaan-anthony/6335626 to your computer and use it in GitHub Desktop.
#/etc/httpd/conf.d/mod_fastcgi.conf
LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
Alias /php5.fcgi /usr/sbin/php-fpm.fcgi
AddType application/x-httpd-fastphp5 .php
Action application/x-httpd-fastphp5 /php5.fcgi
FastCGIExternalServer /usr/sbin/php-fpm.fcgi -socket /var/run/php-fpm.sock -pass-header Authorization
<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment