Apache ant 在 root 中工作而不是在 shell_exec 中 [英] Apache ant working in root not in shell_exec
本文介绍了Apache ant 在 root 中工作而不是在 shell_exec 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Apache ant 中遇到问题所有命令都在 ssh 客户端 putty 中工作但是当我尝试在 shell_exec 中运行时,它给出了错误
i have a problem in Apache ant all commands are working in ssh client putty but when i try to run in shell_exec it gives error
sh: ant: command not found
在shell_exec中是否有任何使用权限
is there is any permission using in shell_exec
我对服务器有根访问权限
i have root access to the server
推荐答案
PHP 是否尊重您的环境 PATH?您可能需要限定可执行文件的路径.有关更多路径/shell 信息,请参阅此帖子:PHP exec $PATH 变量缺失元素一个>
Does PHP honour your environment PATH? you may need to qualify the path to the executable. Refer to this post for more path/shell info: PHP exec $PATH variable missing elements
这篇关于Apache ant 在 root 中工作而不是在 shell_exec 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文