packweb-multiphp: Change default configuration for compatibility

/var/run is now /run (and it is what is used in the .service file)

Have a default directory configured as bind target so things works by default
This commit is contained in:
Mathieu Trossevin 2020-10-19 17:33:58 +02:00
parent d33b4baef1
commit d7aed91043
Signed by: mtrossevin
GPG Key ID: D1DBB7EA828374E9
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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"

View File

@ -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)