Release 10.3.0 #120
|
@ -8,7 +8,8 @@ php_conf_allow_url_fopen: "Off"
|
|||
php_conf_disable_functions: "exec,shell-exec,system,passthru,popen"
|
||||
|
||||
# Allows accessing a local mysql database using localhost
|
||||
php_conf_mysql_default_socket: Null
|
||||
php_conf_mysql_socket_dir: Null
|
||||
php_conf_mysql_default_socket: "{{ php_conf_mysql_socket_dir }}/mysqld.sock"
|
||||
|
||||
lxc_php_version: Null
|
||||
|
||||
|
|
|
@ -27,6 +27,5 @@
|
|||
lxc_container:
|
||||
name: "{{ lxc_php_version }}"
|
||||
container_config:
|
||||
- "lxc.mount.entry = /var/run/mysqld/mysqld {{ php_conf_mysql_default_socket | replace('/', '', 1) }} none bind,create=file 0 0"
|
||||
state: restarted
|
||||
when: php_conf_mysql_default_socket is string
|
||||
- "lxc.mount.entry = /var/run/mysqld {{ php_conf_mysql_socket_dir | replace('/', '', 1) }} none bind,create=dir 0 0"
|
||||
when: php_conf_mysql_socket_dir is string
|
||||
|
|
|
@ -7,7 +7,7 @@ html_errors = {{ php_conf_html_errors }}
|
|||
allow_url_fopen = {{ php_conf_allow_url_fopen }}
|
||||
disable_functions = {{ php_conf_disable_functions }}
|
||||
|
||||
{% if php_conf_mysql_default_socket %}
|
||||
{% if php_conf_mysql_socket_dir %}
|
||||
[Pdo_mysql]
|
||||
pdo_mysql.default_socket = {{ php_conf_mysql_default_socket }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue