Skip to content
Snippets Groups Projects
Commit 1ae91ffc authored by jurgenhaas's avatar jurgenhaas
Browse files

Make sure we get the proper PHP CLI alternative inside Jails

parent 39544847
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,12 @@
value: '/usr/sbin/jk_chrootsh'
user: '{{ drupal.jail.name }}'
- name: "Ensure proper symlink for PHP executable in Jail"
file:
src: '/usr/bin/php{{ php_version }}'
dest: '{{ jailroot }}/{{ drupal.jail.name }}/etc/alternatives/php'
state: 'link'
tags:
- 'UpdateJails'
- 'shells'
......@@ -169,7 +169,7 @@ comment = the php interpreter and libraries
executables = /usr/local/bin/php
directories = /usr/lib/php5, /usr/share/php, /usr/share/php5, /etc/php5, /usr/share/zoneinfo, /usr/local/lib/php/extensions
{% elif php_version_main|default('7') == '7' %}
executables = /usr/bin/php
executables = /usr/bin/php*
directories = /usr/lib/php, /usr/share/php, /usr/share/php{{php_version|default("7.0")}}-*, /etc/php, /usr/share/zoneinfo, /usr/lib/x86_64-linux-gnu/libxml*
{% else %}
executables = /usr/bin/php5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment