diff -r 2e59472c1339 php.ini-development --- a/php.ini-development Wed Nov 24 15:04:44 2021 +0100 +++ b/php.ini-development Wed Nov 24 22:13:23 2021 +0100 @@ -171,7 +171,7 @@ ;user_ini.filename = ".user.ini" ; To disable this feature set this option to an empty value -;user_ini.filename = +user_ini.filename = ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) ;user_ini.cache_ttl = 300 @@ -735,10 +735,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" -;include_path = ".:/php/includes" -; -; Windows: "\path1;\path2" -;include_path = ".;c:\php\includes" +include_path = ".:/usr/lib/php/:/usr/share/pear/:/usr/share/php/" ; ; PHP's default setting for include_path is ".;/path/to/php/pear" ; https://php.net/include-path @@ -760,7 +757,7 @@ ; https://php.net/extension-dir ;extension_dir = "./" ; On windows: -;extension_dir = "ext" +extension_dir = "/usr/lib/php/extensions" ; Directory where the temporary files should be placed. ; Defaults to the system default (see sys_get_temp_dir) @@ -841,11 +838,11 @@ ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ; https://php.net/upload-tmp-dir -;upload_tmp_dir = +upload_tmp_dir = /var/tmp ; Maximum allowed size for uploaded files. ; https://php.net/upload-max-filesize -upload_max_filesize = 2M +upload_max_filesize = 16M ; Maximum number of files that can be uploaded via a single request max_file_uploads = 20 @@ -886,71 +883,10 @@ ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; - -; If you wish to have an extension loaded automatically, use the following -; syntax: -; -; extension=modulename -; -; For example: -; -; extension=mysqli -; -; When the extension library to load is not located in the default extension -; directory, You may specify an absolute path to the library file: -; -; extension=/path/to/extension/mysqli.so -; -; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and -; 'extension='php_<ext>.dll') is supported for legacy reasons and may be -; deprecated in a future PHP major version. So, when it is possible, please -; move to the new ('extension=<ext>) syntax. -; -; Notes for Windows environments : -; -; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) -; extension folders as well as the separate PECL DLL download (PHP 5+). -; Be sure to appropriately set the extension_dir directive. -; -;extension=bz2 -;extension=curl -;extension=ffi -;extension=ftp -;extension=fileinfo -;extension=gd -;extension=gettext -;extension=gmp -;extension=intl -;extension=imap -;extension=ldap -;extension=mbstring -;extension=exif ; Must be after mbstring as it depends on it -;extension=mysqli -;extension=oci8_12c ; Use with Oracle Database 12c Instant Client -;extension=oci8_19 ; Use with Oracle Database 19 Instant Client -;extension=odbc -;extension=openssl -;extension=pdo_firebird -;extension=pdo_mysql -;extension=pdo_oci -;extension=pdo_odbc -;extension=pdo_pgsql -;extension=pdo_sqlite -;extension=pgsql -;extension=shmop - -; The MIBS data available in the PHP distribution must be installed. -; See https://www.php.net/manual/en/snmp.installation.php -;extension=snmp - -;extension=soap -;extension=sockets -;extension=sodium -;extension=sqlite3 -;extension=tidy -;extension=xsl - -;zend_extension=opcache +; In Mageia, we don't add the extensions in php.ini anymore, we put +; them in /etc/php.d/<number>_<name>.ini, for example 10_recode.ini. +; This is so that the RPMS can register themselves without having to +; modify the php.ini file. ;;;;;;;;;;;;;;;;;;; ; Module Settings ; @@ -1350,7 +1286,7 @@ ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; https://php.net/session.save-path -;session.save_path = "/tmp" +session.save_path = "/var/lib/php" ; Whether to use strict session mode. ; Strict session mode does not accept an uninitialized session ID, and @@ -1417,7 +1353,7 @@ ; Development Value: 1 ; Production Value: 1 ; https://php.net/session.gc-probability -session.gc_probability = 1 +session.gc_probability = 0 ; Defines the probability that the 'garbage collection' process is started on every ; session initialization. The probability is calculated by using gc_probability/gc_divisor, @@ -1739,7 +1675,7 @@ ; Sets the directory name where SOAP extension will put cache files. ; https://php.net/soap.wsdl-cache-dir -soap.wsdl_cache_dir="/tmp" +soap.wsdl_cache_dir="/var/tmp" ; (time to live) Sets the number of second while cached file will be used ; instead of original one. diff -r 2e59472c1339 php.ini-production --- a/php.ini-production Wed Nov 24 15:04:44 2021 +0100 +++ b/php.ini-production Wed Nov 24 22:13:23 2021 +0100 @@ -171,7 +171,7 @@ ;user_ini.filename = ".user.ini" ; To disable this feature set this option to an empty value -;user_ini.filename = +user_ini.filename = ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) ;user_ini.cache_ttl = 300 @@ -737,10 +737,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" -;include_path = ".:/php/includes" -; -; Windows: "\path1;\path2" -;include_path = ".;c:\php\includes" +include_path = ".:/usr/lib/php/:/usr/share/pear/:/usr/share/php/" ; ; PHP's default setting for include_path is ".;/path/to/php/pear" ; https://php.net/include-path @@ -762,7 +759,7 @@ ; https://php.net/extension-dir ;extension_dir = "./" ; On windows: -;extension_dir = "ext" +extension_dir = ""/usr/lib/php/extensions ; Directory where the temporary files should be placed. ; Defaults to the system default (see sys_get_temp_dir) @@ -843,11 +840,11 @@ ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ; https://php.net/upload-tmp-dir -;upload_tmp_dir = +upload_tmp_dir = /var/tmp ; Maximum allowed size for uploaded files. ; https://php.net/upload-max-filesize -upload_max_filesize = 2M +upload_max_filesize = 16M ; Maximum number of files that can be uploaded via a single request max_file_uploads = 20 @@ -888,71 +885,10 @@ ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; - -; If you wish to have an extension loaded automatically, use the following -; syntax: -; -; extension=modulename -; -; For example: -; -; extension=mysqli -; -; When the extension library to load is not located in the default extension -; directory, You may specify an absolute path to the library file: -; -; extension=/path/to/extension/mysqli.so -; -; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and -; 'extension='php_<ext>.dll') is supported for legacy reasons and may be -; deprecated in a future PHP major version. So, when it is possible, please -; move to the new ('extension=<ext>) syntax. -; -; Notes for Windows environments : -; -; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+) -; extension folders as well as the separate PECL DLL download (PHP 5+). -; Be sure to appropriately set the extension_dir directive. -; -;extension=bz2 -;extension=curl -;extension=ffi -;extension=ftp -;extension=fileinfo -;extension=gd -;extension=gettext -;extension=gmp -;extension=intl -;extension=imap -;extension=ldap -;extension=mbstring -;extension=exif ; Must be after mbstring as it depends on it -;extension=mysqli -;extension=oci8_12c ; Use with Oracle Database 12c Instant Client -;extension=oci8_19 ; Use with Oracle Database 19 Instant Client -;extension=odbc -;extension=openssl -;extension=pdo_firebird -;extension=pdo_mysql -;extension=pdo_oci -;extension=pdo_odbc -;extension=pdo_pgsql -;extension=pdo_sqlite -;extension=pgsql -;extension=shmop - -; The MIBS data available in the PHP distribution must be installed. -; See https://www.php.net/manual/en/snmp.installation.php -;extension=snmp - -;extension=soap -;extension=sockets -;extension=sodium -;extension=sqlite3 -;extension=tidy -;extension=xsl - -;zend_extension=opcache +; In Mageia, we don't add the extensions in php.ini anymore, we put +; them in /etc/php.d/<number>_<name>.ini, for example 10_recode.ini. +; This is so that the RPMS can register themselves without having to +; modify the php.ini file. ;;;;;;;;;;;;;;;;;;; ; Module Settings ; @@ -1352,7 +1288,7 @@ ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; https://php.net/session.save-path -;session.save_path = "/tmp" +session.save_path = "/var/lib/php" ; Whether to use strict session mode. ; Strict session mode does not accept an uninitialized session ID, and @@ -1419,7 +1355,7 @@ ; Development Value: 1 ; Production Value: 1 ; https://php.net/session.gc-probability -session.gc_probability = 1 +session.gc_probability = 0 ; Defines the probability that the 'garbage collection' process is started on every ; session initialization. The probability is calculated by using gc_probability/gc_divisor, @@ -1741,7 +1677,7 @@ ; Sets the directory name where SOAP extension will put cache files. ; https://php.net/soap.wsdl-cache-dir -soap.wsdl_cache_dir="/tmp" +soap.wsdl_cache_dir="/var/tmp" ; (time to live) Sets the number of second while cached file will be used ; instead of original one.