Oct
3
X-PHP-Originating-Script Will show the line and script of the file witch sent the email within php. You may want to disable this for security reasons.
To do so… Just edit /etc/php5/cgi/php.ini and change the following to:
mail.add_x_header = Off
While your in there change:
expose_php = Off
Thanks, this helped!
Simple and effective !
NOTE!
You have to know the actual version of PHP that is used by server.
$php -v
If you use Apache2, then the correct path to edit php.ini is:
/etc/php/7.0/apache2/php.ini
And replace the actual PHP version.