擅长:python、mysql、java
<p>我想首先应该查看的是apache错误日志。您不想启用sudo。请考虑查看apache的错误日志,以了解以下位置的根本问题:</p>
<p><strong><code>/var/log/apache</code></strong>
或类似目录</p>
<p>请查看这些帖子,以获得更好的解决方案和问题回顾:</p>
<p><a href="https://stackoverflow.com/questions/56107839/how-to-execute-shell-exec-on-ec2-linux/58419650#58419650">How to execute shell_exec on EC2 Linux</a></p>
<p><a href="https://forums.aws.amazon.com/thread.jspa?messageID=692394" rel="nofollow noreferrer">https://forums.aws.amazon.com/thread.jspa?messageID=692394</a></p>
<p><a href="https://stackoverflow.com/questions/20124327/php-shell-exec-command-is-not-working">php shell_exec() command is not working</a></p>