Skip to content
Snippets Groups Projects
Commit 4ee02cc9 authored by jurgenhaas's avatar jurgenhaas
Browse files

Prepare PHP 5.3 on Ubuntu 14.04

parent fd95002f
No related branches found
No related tags found
No related merge requests found
jailroot: /jails
jailuser_init: false
jailusers: []
......@@ -112,7 +112,7 @@
with_flattened:
- '{{ admins }}'
- '{{ jailusers }}'
when: item != tunnel_user_name
when: item != tunnel_user_name and jailuser_init
- name: "Assign Jails To Users"
template:
......
......@@ -2,4 +2,9 @@
export PHPRC="{{ jailroot }}/{{ item.jail.name }}/var/www/conf"
export TMPDIR="{{ jailroot }}/{{ item.jail.name }}/tmp"
{% if php_version|default('5.5') == '5.3' %}
export PHP_INI_SCAN_DIR="/etc/php5/cgi53/conf.d"
exec /usr/local/bin/php-cgi
{% else %}
exec /usr/bin/php5-cgi
{% endif %}
;TODO: The following settings are for older PHP versions only
;
;allow_call_time_pass_reference = {{ php_allow_call_time_pass_reference }}
;register_globals = {{ php_register_globals }}
;register_long_arrays = {{ php_register_long_arrays }}
;magic_quotes_gpc = {{ php_magic_quotes_gpc }}
[PHP]
{% if php_version|default('5.5') == '5.3' %}
allow_call_time_pass_reference = {{ php_allow_call_time_pass_reference }}
register_globals = {{ php_register_globals }}
register_long_arrays = {{ php_register_long_arrays }}
magic_quotes_gpc = {{ php_magic_quotes_gpc }}
{% endif %}
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
......@@ -216,7 +216,7 @@ engine = On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = Off
short_open_tag = {{ php_short_open_tag }}
; Allow ASP-style <% %> tags.
; http://php.net/asp-tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment