• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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