Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed fpm socket path

  • Loading branch information...
commit dfaa9b0233d2d8dfae9d1779e7f5b42ee5ec285d 1 parent be18372
@miklos-martin authored
View
4 plugins/php-fpm/php-fpm.plugin.zsh
@@ -56,11 +56,9 @@ _pool_generate () {
echo "Generating pool for \033[33m$user\033[0m user with \033[33m$group\033[0m group"
- user_id=$(cat /etc/passwd | grep $1 | awk -F : '{print $3 }')
- pool_port=1$user_id
: ${FPM_POOL_TEMPLATE:=$ZSH/plugins/php-fpm/templates/pool}
- conf=$(sed -e 's/{user}/'$user'/g' -e 's/{group}/'$group'/g' -e 's/{pool_port}/'$pool_port'/g' $FPM_POOL_TEMPLATE )
+ conf=$(sed -e 's/{user}/'$user'/g' -e 's/{group}/'$group'/g' $FPM_POOL_TEMPLATE )
echo $conf > $user.conf
$sudo mv $user.conf $FPM_DIR/pool.d/$user.conf
View
2  plugins/php-fpm/templates/pool
@@ -2,7 +2,7 @@
user = {user}
group = {group}
-listen = /var/run/php-fpm/{user}.socket
+listen = /var/run/php5-fpm.{user}.socket
pm = dynamic
pm.max_children = 10
Please sign in to comment.
Something went wrong with that request. Please try again.