【发布时间】:2022-06-16 21:01:40
【问题描述】:
我使用 Centos 8 作为服务器。
我以 root 用户身份在我的服务器上运行此命令。
opendkim-genkey --domain=example.com --selector=example --subdomains
这个命令可以正常工作。
问题出现在我运行/执行此命令时。
shell_exec("opendkim-genkey --domain=example.com --selector=example --subdomains");
通过浏览器,该命令的结果是错误opendkim-genkey: command not found。
我知道这个问题与某些权限有关。但我不知道如何以及在哪里授予通过 PHP 运行此命令的权限。
有人有合适的解决方案吗?
【问题讨论】:
-
请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
标签: php postfix-mta mail-server centos8 opendkim