packweb-multi-php: Allow php to contact local mysql with localhost #116
|
@ -8,7 +8,7 @@ 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_socket_dir: Null
|
||||
php_conf_mysql_socket_dir: /mysqld
|
||||
php_conf_mysql_default_socket: "{{ php_conf_mysql_socket_dir }}/mysqld.sock"
|
||||
|
||||
lxc_php_version: Null
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
lxc_container:
|
||||
name: "{{ lxc_php_version }}"
|
||||
container_config:
|
||||
- "lxc.mount.entry = /var/run/mysqld {{ php_conf_mysql_socket_dir | replace('/', '', 1) }} none bind,create=dir 0 0"
|
||||
- "lxc.mount.entry = /run/mysqld {{ php_conf_mysql_socket_dir | replace('/', '', 1) }} none bind,create=dir 0 0"
|
||||
when: php_conf_mysql_socket_dir is string
|
||||
notify: Restart container
|
||||
notify: "Restart container"
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
[mysqld]
|
||||
|
||||
###### Connexions
|
||||
# Path to socket
|
||||
socket = /run/mysqld/mysqld.sock
|
||||
# Maximum de connexions concurrentes (defaut = 100)... provoque un "Too many connections"
|
||||
max_connections = 250
|
||||
# Maximum de connexions en attente en cas de max_connections atteint (defaut = 50)
|
||||
|
|
Loading…
Reference in a new issue