Applicable to:
- Plesk for Linux
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
Domain's error logs are growing very fast:
# find /var/www/vhosts/system -size +1G -exec ls -l {} \;
-rw-r--r-- 2 root root 1191568442 1. Jun 11:27 /var/www/vhosts/system/example.com/logs/error_log# find /var/www/vhosts/system -size +1G -exec ls -l {} \;
-rw-r--r-- 2 root root 1277332671 1. Jun 11:28 -
Errors related to
open_basedir
continuously appear in Domains > example.com > Logs:CONFIG_TEXT: 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
-
Errors related to open_basedir continuously appear in the
/var/www/vhosts/system/example.com/logs/error_log
file per each website request:CONFIG_TEXT: [Sun May 28 12:46:42.368093 2017] [fcgid:warn] [pid 667788] [client 123.30.0.12:59438] mod_fcgid: stderr: PHP Warning: is_dir() [<a href='function.is-dir'>function.is-dir</a>]: 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
Comments
0 comments
Please sign in to leave a comment.