Skip to content

Instantly share code, notes, and snippets.

@hmkz
Created December 10, 2013 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmkz/7886793 to your computer and use it in GitHub Desktop.
Save hmkz/7886793 to your computer and use it in GitHub Desktop.
apache 1.3.42 + mod_fastcgi + php-fpm(5.4)
## apache 1.3.42 + mod_fastcgi + php-fpm(5.4)
LoadModule fastcgi_module libexec/mod_fastcgi.so
AddModule mod_fastcgi.c
## FastCGI
Alias /php5.fcgi /usr/bin/php-cgi
FastCGIConfig -initial-env -autoUpdate -idle-timeout 120 -killInterval 3600 -maxClassProcesses 3 -maxProcesses 15
FastCGIExternalServer /usr/bin/php-cgi -socket /tmp/php-fpm.sock -pass-header Authorization
Action application/x-httpd-php /php5.fcgi
AddType application/x-httpd-php .php .php5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment