Add a line to all website php ini files?

Discussion in 'ISPConfig 3 Priority Support' started by rob_morin, Feb 18, 2016.

  1. rob_morin

    rob_morin Member

    Hello i need to add the below line to all php.ini files for all websites to catch spam.
    mail.log = /var/log/mail.form
    but if i added to /etc/php5/apache2/php.ini it does not affect all websites, when i did a test by adding the above line to my personal site under the options tab under sites for php snippets, it worked... so now i need this to work for all sites to catch much spam going out..

    What should i do?

    Thanks
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Have you tried adding it to /etc/php5/cgi/php.ini (or the fpm php.ini if you use that mode for websites)?
    The php.ini of the pages are generated from those ini files normally.
     
  3. rob_morin

    rob_morin Member

    Ok, that worked adding it to /etc/php5/cgi/php.ini rather than /etc/php5/apache/php.ini

    Thanks!!
     

Share This Page