The log file /var/www/example.com/log/error.log does not exist or is inaccessib
-
I tried to use your plugin without success.
I add in
wp-config.php
:define('WP_DEBUG_LOG', true); //ini_set('log_errors', 1) + ini_set('error_log', WP_CONTENT_DIR . '/debug.log');
And I show the var
$logFile
, I got this :string(43) "/var/www/example.com/log/error.log"
And these warnings :
Warning: is_readable(): open_basedir restriction in effect. File(/var/www/example.com/log/error.log) is not within the allowed path(s): (/htdocs:/var/www/example.com/htdocs:/var/www/cyprusautodealer.com/tmp:/var/www/example.com/exec_dir:/var/www/example.com/php-session:/var/lib/lws/:/usr/base/var/lib/lws:/htdocs:/tmp:/exec_dir:/php-session:/usr/share/php:/etc/pki/tls/certs:/etc/ssl/certs) in /htdocs/wp-content/plugins/error-log-monitor/Elm/PhpErrorLog.php on line 40 Warning: file_exists(): open_basedir restriction in effect. File(/var/www/cyprusautodealer.com/log/error.log) is not within the allowed path(s): (/htdocs:/var/www/example.com/htdocs:/var/www/example.com/tmp:/var/www/example.com/exec_dir:/var/www/example.com/php-session:/var/lib/lws/:/usr/base/var/lib/lws:/htdocs:/tmp:/exec_dir:/php-session:/usr/share/php:/etc/pki/tls/certs:/etc/ssl/certs) in /htdocs/wp-content/plugins/error-log-monitor/Elm/PhpErrorLog.php on line 41 The log file /var/www/example.com/log/error.log does not exist or is inaccessible.
Even if I manualy make a file(755) \htdocs\log\error.log, that does not work.
Have you got an idea to fix this ? Miss I something else ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘The log file /var/www/example.com/log/error.log does not exist or is inaccessib’ is closed to new replies.