Skip to content

Commit

Permalink
Fix #297 - Use php_flag vs php_admin_flag
Browse files Browse the repository at this point in the history
`php_flag` lets `ini_set` override its value whereas `php_admin_flag`
does not. This restores a bit more control to WordPress and its
debugging constants.
  • Loading branch information
swalkinshaw committed Dec 28, 2015
1 parent fdb9f56 commit 1ea077b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Fixes #297 - Use `php_flag` vs `php_admin_flag` ([#447](https://github.com/roots/trellis/pull/447))
* Fixes #316 - Set WP permalink structure during install ([#316](https://github.com/roots/trellis/pull/316))
* Switch to https://api.ipify.org for IP lookup ([#444](https://github.com/roots/trellis/pull/444))
* Replace `vagrant-hostsupdater` with `vagrant-hostmanager` ([#442](https://github.com/roots/trellis/pull/442))
Expand Down
4 changes: 2 additions & 2 deletions roles/php/templates/php-fpm.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 500
chdir = {{ www_root }}/
php_admin_flag[log_errors] = on
php_admin_flag[display_errors] = {{ php_display_errors }}
php_flag[log_errors] = on
php_flag[display_errors] = {{ php_display_errors }}
php_admin_value[open_basedir] = {{ www_root }}/:/tmp
{% if memcached_sessions %}
php_value[session.save_handler] = memcached
Expand Down

0 comments on commit 1ea077b

Please sign in to comment.