Browse Source

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
pull/116/head
Mathieu Trossevin 3 months ago
parent
commit
d7aed91043
Signed by: mtrossevin GPG Key ID: D1DBB7EA828374E9
3 changed files with 5 additions and 3 deletions
  1. +1
    -1
      lxc-php/defaults/main.yml
  2. +2
    -2
      lxc-php/tasks/misc.yml
  3. +2
    -0
      mysql-oracle/files/evolinux-defaults.cnf

+ 1
- 1
lxc-php/defaults/main.yml 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


+ 2
- 2
lxc-php/tasks/misc.yml 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"

+ 2
- 0
mysql-oracle/files/evolinux-defaults.cnf 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)


Loading…
Cancel
Save