I want to disable PHP function mail via Apache2 virtual host configuration file. I want to do it for one virtual host, not for all virtual hosts, and I don't want disable this function in php.ini
How to do it correctly?
Thanks in advance!
I added this to my virtual host:
<Directory /dir/to/your/web/root> ... php_admin_value sendmail_path "tee mail.out > /dev/null" ... </Directory>
You cannot disable php system calls on a per-virtualhost basis.
However you can:
fgrep -Rand comment out these lines.