Symptoms
-
Log rotation does not work for a domain
-
Some log files are very big in Plesk > Domains > example.com > File Manager in folder Home directory > logs
Cause
The log rotation is failing as a result of the file’s rapid growth.
The PHP errors related toopen_basedir
restriction are rapidly increasing the log file as website application tries to access root path (‘/
‘) but it’s not allowed asopen_basedir
is set to{WEBSPACEROOT}{/}{:}{TMP}{/}
.Resolution
-
Navigate to Domains > example.com > PHP Settings and set the value of
open_basedir
to none -
Review the website application code so that the
open_basedir
directive can be safely enabled again