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
-
Errors related to
open_basedir
continuously appear in Domains > example.com > Logs:open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/example.com/:/tmp/) in /var/www/vhosts/example.com/httpdocs/wp-includes/functions.php on line 1501
Cause
The log rotation is failing as a result of the file's rapid growth.
The PHP errors related to open_basedir
restriction are rapidly increasing the log file as website application tries to access root path (' /
') but it's not allowed as open_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