• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Question Update #7 - PHP 7.2.5 - php.ini

Dukemaster

Regular Pleskian
Hi,
today I made the Onyx 7.8.11 #7 update. PHP was updated to 7.2.5 and the installation stopped asking for a decision:
Code:
Configuration file '/opt/plesk/php/7.2/etc/php.ini'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** php.ini (Y/I/N/O/D/Z) [default=N] ? D
Usually, in other updates/upgrades, like for example grub, and more, I always use the default option and keep the current version.
This time I thought, why not examining what is new and probably better.
So I opened another shell, made a backup of old php.ini on local computer and hit "D" for show Differences.
There were only three differences. Two belong to Windws, so not important for me.
The only linux change was the following switch from:
Code:
mail.add_x_header = On
to
Code:
mail.add_x_header = Off

For the reason that the old value was modified by Plesk for better functionality, my question is:
Shall I change this value to the old "On" or better use "Off"?
What do You think about it. An additional question could be, why is this value changed by installation?
 
Last edited:
PHP >= 5.3.0 has configuration option mail.add_x_header that includes user UID and script filename into a X-PHP-Originating-Script: mail header when mail is sent via PHP mail() function (arguably a lot of spammers use it).
So, I think that changing to Off was done in the scope of some kind of security improvements.
 
Back
Top