packweb-multiphp: Change default configuration for compatibility
Some checks failed
continuous-integration/drone/pr Build is failing

/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" php_conf_disable_functions: "exec,shell-exec,system,passthru,popen"
# Allows accessing a local mysql database using localhost # 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" php_conf_mysql_default_socket: "{{ php_conf_mysql_socket_dir }}/mysqld.sock"
lxc_php_version: Null lxc_php_version: Null

View file

@ -27,7 +27,7 @@
lxc_container: lxc_container:
name: "{{ lxc_php_version }}" name: "{{ lxc_php_version }}"
container_config: 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 when: php_conf_mysql_socket_dir is string
notify: Restart container notify: "Restart container"

View file

@ -1,6 +1,8 @@
[mysqld] [mysqld]
###### Connexions ###### Connexions
# Path to socket
socket = /run/mysqld/mysqld.sock
# Maximum de connexions concurrentes (defaut = 100)... provoque un "Too many connections" # Maximum de connexions concurrentes (defaut = 100)... provoque un "Too many connections"
max_connections = 250 max_connections = 250
# Maximum de connexions en attente en cas de max_connections atteint (defaut = 50) # Maximum de connexions en attente en cas de max_connections atteint (defaut = 50)