Skip to content

Instantly share code, notes, and snippets.

@rickard2
Created May 7, 2014 08:14
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 rickard2/d4b00482a8f4e5e83471 to your computer and use it in GitHub Desktop.
Save rickard2/d4b00482a8f4e5e83471 to your computer and use it in GitHub Desktop.
# /opt/local/apache/conf/extra/php-fpm.conf
#
# Sedan i conf/httpd.conf
#
# Include conf/extra/php-fpm.conf
<Location /www>
Order allow,deny
Allow from all
</Location>
ScriptAlias /www /www
AddHandler php-fastcgi .php
Action php-fastcgi /www/php-cgi54
FastCGIExternalServer /www/php-cgi54 -socket /tmp/php.sock -idle-timeout 120
DirectoryIndex index.php
# /opt/local/etc/php55/php-fpm.conf
[www]
user = _www
group = _www
listen = /tmp/php.sock
listen.owner = _www
listen.group = _www
listen.mode = 0666
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
php_admin_value[error_log] = /var/log/php/www-error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment