• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk 11.0.9 - unable to view log files in panel

XAMeLeOH

New Pleskian
[SOLVED] Plesk 11.0.9 - unable to view log files in panel

Dear support team,

I unable to see site log files (access_log or error_log). The panel opens a new empty window with no record. In /var/log/sw-cp-server/error_log I got this:
2013-05-24 14:54:14: (mod_fastcgi.c.2746) FastCGI-stderr: PHP Fatal error: Call to undefined function gzopen() in /opt/psa/admin/htdocs/domains/logs/log_file_viewer.php on line 59

I've checked for compression modules
# /usr/bin/sw-engine-cgi -m | grep ^z
zip
zlib

After this I tried to run script with gzopen by sw-engine-cgi:
/usr/bin/sw-engine-cgi -a << EOF
<?php
var_dump(gzopen("/dev/null", "r"));
EOF
Result is:
Interactive mode enabled

X-Powered-By: PHP/5.3.10
Content-type: text/html

<br />
<b>Fatal error</b>: Call to undefined function gzopen() in <b>-</b> on line <b>2</b><br />

At the same time original php works well:
# php -r 'var_dump(gzopen("/dev/null", "r"));'
resource(5) of type (stream)

Can you please give me solution or any workaround?
 
Last edited:
Back
Top