Skip to content

Commit

Permalink
Rename php5 fpm (#42)
Browse files Browse the repository at this point in the history
* Drop the php5-fpm naming convention

* Zend Server supports fpm pools by default now

* Revert change to still support PDB project
  • Loading branch information
jvandijk authored and syphernl committed Oct 5, 2018
1 parent e44bc60 commit 1d544e4
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions vhosting/webstack/zendserver.sls
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,13 @@ include:
{%- endif %}

{%- if webserver == 'nginx' and not disable_webserver %}
## Re-configure PHP-FPM to allow multiple pools to be used
/usr/local/zend/etc/php-fpm.conf:
file.uncomment:
- regex: ^include=etc
- char: ;
- require:
- pkg: zendserver
- require_in:
- service: php5-fpm
- watch_in:
- service: zendserver

{% if php_versions|length > 0 %}
# The PHP-FPM formula only creates these folders if only the "default" PHP stack
# is being used, not if multiple co-exist (in combination with ZS).
/usr/local/zend/etc/fpm.d:
file.directory:
- require:
- pkg: zendserver
- require_in:
- file: /usr/local/zend/etc/php-fpm.conf

/usr/local/zend/tmp:
file.directory:
Expand Down Expand Up @@ -73,7 +59,7 @@ include:
#
#kill_fpm:
# service.dead:
# - name: php5-fpm
# - name: php-fpm
#{%- endif %}

{%- if not enable_zray %}
Expand All @@ -86,6 +72,6 @@ include:
- watch_in:
- service: zendserver
{%- if webserver == 'nginx' %}
- service: php5-fpm
- service: php-fpm
{% endif -%}
{%- endif %}

0 comments on commit 1d544e4

Please sign in to comment.