• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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