forked from evolix/ansible-roles
1d9ab0f1f3
Add 'php_conf_mysql_default_socket' variable to lxc-php role that configure both the lxc containers and PHP so that a local MySQL database may be used through localhost. The PHP containers will automount /var/run/mysqld/mysqld.sock (the default path to the mysql socket) to the path defined by the variable 'php_conf_mysql_default_socket' which will be the path used by php to contact MySQL both with mysqli and PDO_MYSQL.
17 lines
518 B
Django/Jinja
17 lines
518 B
Django/Jinja
[PHP]
|
|
short_open_tag = {{ php_conf_short_open_tag }}
|
|
expose_php = {{ php_conf_expose_php }}
|
|
display_errors = {{ php_conf_display_errors }}
|
|
log_errors = {{ php_conf_log_errors }}
|
|
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 %}
|
|
[Pdo_mysql]
|
|
pdo_mysql.default_socket = {{ php_conf_mysql_default_socket }}
|
|
|
|
[MySQLi]
|
|
mysqli.default_socket = {{ php_conf_mysql_default_socket }}
|
|
{% endif %}
|