我运行了这个命令/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->getactivedomainsumber()失败:
sysinfo失败:sh:/usr/local/psa/admin/bin/sysinfo:权限
否认
此外,尝试报告此消息时发生异常
错误:PleskFatalException StatInfo->getProductVersion失败:
sysinfo失败:sh:/usr/local/psa/admin/bin/sysinfo:权限
拒绝(class.SystemStatisticsForm.php:123)
搜索相关知识库文章`
请告知

最佳答案

检查文件:

# 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

关于php - 错误:PleskFatalException:StatInfo-> getActiveDomainsNumber()失败:sysinfo失败:sh:/usr/local/psa/admin/bin/sysinfo:权限被拒绝,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37130349/

10-09 12:44