• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

How to stop PHP from logging undefined

Edi Duluman

Basic Pleskian
Hello !

My logs are full with this kind of logs from customers which are not interesting at all.

upload_2016-5-30_12-28-43.png

I went into Tools & Settings > PHP Settings:

upload_2016-5-30_12-32-13.png
Then went on the 5.6.16 OS vendor FPM - php.ini and changed the error_reporting as follows:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE

Been waiting few moments for the settings to sync towards the customers and still I'm getting these errors logged.

In the file I'm also having "error_reporting( E_ALL & ~E_NOTICE );" and still they get logged.
Is there any way around these logs ?
 
As far as I see most of these warnings are related to bio-vita.no site. Why would not you go to PHP Settings of this subscription and setup these PHP log settings there?
 
But, if I do that error_reporting setting in the general php.ini -- wouldn't it count as "default" error reporting option in bio-vita.no's PHP settings ? Because that's what I was expecting when I have changed the loggin setting.
 
If you have domain with CGI/FastCGI mode of PHP some of values will be taken from /var/www/vhosts/DOMAINNAME/conf/php.ini file despite of settings defined in Plesk interface. Thus priority of receiving settings for custom php.ini is following:

server-wide php.ini < PHP setting defined for the domain in the Plesk GUI < domain's conf/php.ini

And be sure that you edit correct php.ini. Check it with output of

# plesk bin php_handler --list
 
Back
Top