Skip to content

Commit

Permalink
Update Php Fastcgi playbook
Browse files Browse the repository at this point in the history
Ref #14
  • Loading branch information
rxaviers committed Mar 29, 2015
1 parent 76befe9 commit 8afbf0e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
6 changes: 1 addition & 5 deletions web/php-fastcgi.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
---

- name: Create script for php-fastcgi
copy: src=web/php-fastcgi/php-fastcgi
dest=/usr/local/bin/php-fastcgi mode=0751

- name: Create php-fastcgi configuration
copy: src=web/php-fastcgi/php-fastcgi.conf
dest=/etc/init/php-fastcgi.conf

- name: Ensure that php-fastcgi service is enabled and running
service: name=php-fastcgi state=running enabled=yes
service: name=php-fastcgi state=started enabled=yes
11 changes: 0 additions & 11 deletions web/php-fastcgi/php-fastcgi

This file was deleted.

10 changes: 8 additions & 2 deletions web/php-fastcgi/php-fastcgi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ description "PHP Fastcgi daemon"
start on (local-filesystems and net-device-up)
stop on runlevel [!2345]

expect daemon
respawn

exec /usr/local/bin/php-fastcgi
exec /usr/bin/spawn-fcgi \
-n \
-a 127.0.0.1 \
-p 9000 \
-C 6 \
-u deploy \
-g deploy \
-f /usr/bin/php5-cgi

0 comments on commit 8afbf0e

Please sign in to comment.