• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Solved - rebuild webmail php.ini files

Status
Not open for further replies.

adabman

New Pleskian
Hi,

I recently setup a new Centos 6.5 Plesk12 server.
I added timezone information into /etc/php.ini

How can I get Plesk to rebuild the

/etc/psa-webmail/horde/horde/php.ini
/etc/psa-webmail/roundcube/php.ini

files to include the timezone info?

Thanks
 
# rpm -qi --scripts plesk-roundcube | grep php.ini
roundcube_php_ini="/etc/psa-webmail/roundcube/php.ini"
roundcube_php_ini_tpl="/usr/share/psa-roundcube/config/php.ini.tpl"
rm -f "${roundcube_php_ini}.tpl"
roundcube_generate_php_ini()
${PRODUCT_ROOT_D}/admin/sbin/phpinimng --type=cgi "${roundcube_php_ini}" < "${roundcube_php_ini_tpl}"
roundcube_php_ini="/etc/psa-webmail/roundcube/php.ini"
roundcube_php_ini_tpl="/usr/share/psa-roundcube/config/php.ini.tpl"
roundcube_generate_php_ini

As you can see php.ini for Roundcube is generated during psa-roundcube package installation. You can try reinstall package at least.
 
Igor, Thank you for your reply.
That is one solution, or edit the file manually would for for a while at least..

At the top of both files:
/etc/psa-webmail/horde/horde/php.ini
/etc/psa-webmail/roundcube/php.ini

is the text:

; ATTENTION!
;
; DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
; SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

I am curious what events regenerate these files (other than initial install)

Thanks!
 
You may modify these files as you want, but note that all your changes will be overwritten after applying some of the next Plesk update.
 
I tested uninstalling both webmail services though the panel, and reinstalled them. Now the webmail php.ini files reflect the changes I made to the /etc/php.ini file.

Thanks Igor!
 
Status
Not open for further replies.
Back
Top