Skip to content

Instantly share code, notes, and snippets.

@alongosz
Created July 1, 2017 12:18
Show Gist options
  • Save alongosz/82748ebd90bd3a6c1fd05dd2beff6c1b to your computer and use it in GitHub Desktop.
Save alongosz/82748ebd90bd3a6c1fd05dd2beff6c1b to your computer and use it in GitHub Desktop.
Apache2 php-fpm 7.1 as fastcgi configuration
<IfModule mod_fastcgi.c>
AddType application/x-httpd-fastphp7 .php
Action application/x-httpd-fastphp7 /php7-fcgi
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php7-fpm.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment