SymptomsEmpty page is shown when try to open non empty log file through Parallels Plesk Panel -> Domains -> domain.tld -> Log Manager: access_log.
The following error is shown if enable display_errors in Parallels Plesk Panel's PHP:
Fatal error: Call to undefined function gzopen() in /opt/psa/admin/htdocs/domains/logs/log_file_viewer.php on line 79
What causes the problem?
CauseThe problem is caused by incompatibility with system library ZLib (/usr/lib/libz.so.1) 188.8.131.52 -- it is compiled with large-file support and names of the several functions changed, e.g. 'gzopen' to 'gzopen64'.
~# dpkg-query -W 'zlib*'
ResolutionThis problem has been fixed in Parallels Plesk Control Panel since version 9.2.
To work the problem around you may choose to download log file from the "Log Manager" page and view it offline instead of viewing it in browser.
Additional informationNormally when try to open an empty log file through 'Log Manager' the following notification is shown in popup window: "File is empty."
Additional informationTo enable display_errors in Parallels Plesk Panel's PHP open file /usr/local/psa/admin/conf/php.ini and find the option:
display_errors = On
Verify the value is "On" and restart Plesk Apache to apply:
~# /etc/init.d/psa restart1
Stopping Plesk... done
Starting Plesk... done