[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:
I've checked for compression modules
After this I tried to run script with gzopen by sw-engine-cgi:
At the same time original php works well:
Can you please give me solution or any workaround?
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:
Result is:/usr/bin/sw-engine-cgi -a << EOF
<?php
var_dump(gzopen("/dev/null", "r"));
EOF
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: