• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP 5.3 mail.log and separate domains php.ini

DragomirE

New Pleskian
Hello,

I've got a problem, I'm trying to log all mails which are sent from php 5.3 with php.ini option

mail.log = /var/log/phpmail.log

Since each domain use it's own php.ini file, I cannot put that line to /etc/php.ini, I tried but it doesn't log. It starts working only if I add that line to domain php.ini file.
How can I add that line to all domains php.ini files, and to keep it there when the php configuration is changed from Plesk panel?

Thanks, D.
 
only with a script or manually if you really relly have small number of domains

you can get all your domains from mysql, `ls`or anything you like and create a script, use for an example "for" loop and for each domain create/or append to php.ini in /var.../<domain>/conf/php.ini
and rebuild settings for that domain:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain <domain_name>
you can do it for every domain in for loop just change domain_name being careful not to overwrite any settings if domain has php.ini from before
 
I dont know if your configuration is different then ours, but I can make customizations to the global php.ini just file. Only settings in the per-user vhost are then overwritten.
We run PP11.5 on Debian 6/7. Maybe that is different to your distribution, especially because we make the modifications in /etc/php5/conf.d/, which is a debian-style of making user modifications to config files.
 
Back
Top