Permalink
Browse files

fixed fpm socket path

  • Loading branch information...
1 parent be18372 commit dfaa9b0233d2d8dfae9d1779e7f5b42ee5ec285d @miklos-martin committed Sep 30, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −3 plugins/php-fpm/php-fpm.plugin.zsh
  2. +1 −1 plugins/php-fpm/templates/pool
@@ -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
@@ -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

0 comments on commit dfaa9b0

Please sign in to comment.