错误:PleskFatalException:StatInfo-> getActiveDomainsNumber()失败:sysinfo失败:sh:/ usr / local / psa / admin / bin / sysinfo:权限被拒绝

时间:2016-05-10 05:59:56

标签: php linux bash plesk

我运行了这个命令/usr/local/psa/admin/bin/mail_auth_view但是没有显示。我在网上冲浪,发现这个/usr/local/psa/admin/sbin/mchk --without-spam命令可以修复它,但是plesk变得更糟。

我尝试了/usr/local/psa/admin/sbin/mchk --with-spam 1004 ==> Checking for: mail_imap_restore... fail 1005 ==> Checking for: mail_spam_restore... fail

/etc/init.d/psa start但看到以下错误:

  

错误:PleskFatalException:StatInfo-> getActiveDomainsNumber()失败:   sysinfo失败:sh:/ usr / local / psa / admin / bin / sysinfo:权限   拒绝

     

此外,尝试报告时发生了异常   错误:PleskFatalException StatInfo-> getProductVersion失败:   sysinfo失败:sh:/ usr / local / psa / admin / bin / sysinfo:权限   否认(class.SystemStatisticsForm.php:123)

搜索相关知识库文章

请告知

1 个答案:

答案 0 :(得分:0)

检查文件:

# ls -la /usr/local/psa/admin/bin/sysinfo
lrwxrwxrwx. 1 root root 15 Apr  7  2015 /usr/local/psa/admin/bin/sysinfo -> ../sbin/wrapper
# ls -la /usr/local/psa/admin/sbin/sysinfo
-rwxr-x---. 1 root root 72920 Aug 11  2014 /usr/local/psa/admin/sbin/sysinfo

请注意/usr/local/psa/admin/bin/sysinfo它是../sbin/wrapper

的符号链接

包装文件:

 # ls -lZ /usr/local/psa/admin/sbin/wrapper
 ---s--x---. root psaadm system_u:object_r:bin_t:s0       /usr/local/psa/admin/sbin/wrapper
 # ls -lnZ /usr/local/psa/admin/sbin/wrapper
 ---s--x---. 0 501 system_u:object_r:bin_t:s0       /usr/local/psa/admin/sbin/wrapper
 # file /usr/local/psa/admin/sbin/wrapper
 /usr/local/psa/admin/sbin/wrapper: setuid ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
 # lsattr /usr/local/psa/admin/sbin/wrapper
 -------------e- /usr/local/psa/admin/sbin/wrapper

如果你在类似RedHat的操作系统上进行测试,你可以通过以下方式临时关闭Selinux:

# setenforce 0
# getenforce
Permissive