- Plesk 12.5 for Linux
When trying to open logs in Domains > example.com > Logs, the following error is shown:
PLESK_ERROR: Internal error: Unable to open log file:
Unable to open log file:
There are the following errors in the
CONFIG_TEXT: PHP Warning: finfo_file(/var/www/vhosts/system/example.com/logs/error_log): failed to open stream: Permission denied; File: /opt/psa/admin/plib/LogBrowser/Reader.php, Line: 21
The log file, mentioned in the error, has permissions, which differ from the following ones:
# # ls -la /var/www/vhosts/system/example.com/logs/error_log
-rw-r--r-- 2 root root 77577 Oct 2 13:48 /var/www/vhosts/system/example.com/logs/error_log
Incorrect file permissions.
Connect to the server using SSH.
Correct the permissions of the file:
# chmod 644 /var/www/vhosts/system/example.com/logs/error_log
# chown root:root /var/www/vhosts/system/example.com/logs/error_log