• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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