• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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