How to add mail.add_x_header for all PHP scripts?

Discussion in 'ISPConfig 3 Priority Support' started by Taleman, Sep 3, 2020.

Tags:
  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I would like (or it seems I need) to add PHP setting mail.add_x_header = On. But there are umpteen php.ini files on my host, is it possible to add it in one place so it affects all PHP scripts running on host?
    If I have to script adding that to all php.ini files, does it matter where in the file that line is added, of if it appears twice?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which Linux distribution do you use and which PHP mode in the website?
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    For PHP-FPM:

    /etc/php/X/fpm/php.ini

    for fcgi:

    /etc/php/X/cgi/php.ini

    X is the php version that you want to change. Adding the line at the end of the file should be fine. If it#s in there already, then I would just edit the existing line.
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

Share This Page