gpt4 book ai didi

php - 错误 : PleskFatalException: StatInfo->getActiveDomainsNumber() failed: sysinfo failed: sh:/usr/local/psa/admin/bin/sysinfo: Permission denied

转载 作者:太空宇宙 更新时间:2023-11-04 12:51:12 25 4
gpt4 key购买 nike

我运行了这个命令 /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 ==>正在检查:mail_imap_restore ...失败
1005 ==> 检查:mail_spam_restore...失败

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

ERROR: PleskFatalException: StatInfo->getActiveDomainsNumber() failed: sysinfo failed: sh: /usr/local/psa/admin/bin/sysinfo: Permission denied

Additionally, an exception has occurred while trying to report this error: PleskFatalException StatInfo->getProductVersion failed: sysinfo failed: sh: /usr/local/psa/admin/bin/sysinfo: Permission denied (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 的符号链接(symbolic link)

包装文件:

 # 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() failed: sysinfo failed: sh:/usr/local/psa/admin/bin/sysinfo: Permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37130349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com