IceWarp Server uses the php.ini file. This file is used for storing of php settings.
After every server upgrade, this file is overwritten. It means that any changes performed before upgrade are lost. It can be annoying to do these changes again and again. To ease your work, you may want to use the php.user.ini file.
When placed in the same folder as the php.ini file, content of the php.user.ini file is attached automatically to the php.ini one during server upgrade. The later occurrence of the same setting is used.
This means that you can insert all changes performed against the original php.ini file into the php.user.ini one that is not overwritten during upgrade and the server will use these changed settings.
Example
Part of the original php.ini file:
...
extension=php_pdo_odbc.dll
;extension=php_pdo_mysql.dll
;extension=php_mysql.dll
;zend_extension_ts = "ext\php_xdebug.dll"
;extension=php_bz2.dll
;extension=php_ctype.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
...
Part of the php.user.ini file:
...
extension=php_pdo_mysql.dll
extension=php_bz2.dll
...
Part of the php.ini file after upgrade:
...
extension=php_pdo_odbc.dll
;extension=php_pdo_mysql.dll
;extension=php_mysql.dll
;zend_extension_ts = "ext\php_xdebug.dll"
;extension=php_bz2.dll
;extension=php_ctype.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
...
extension=php_pdo_mysql.dll
extension=php_bz2.dll
...
The uncommented extension=php_bz2.dll setting is used because of its later occurrence.php
|
NOTE: Do not copy the whole php.ini to the php.user.ini file! From the php.ini file, copy only lines you want to have uncommented, paste them to a new file and uncomment them. Otherwise you can encounter problems with PHP (and, consequently, webmail). |