Apache Ant的根的工作不是在了shell_exec [英] Apache ant working in root not in shell_exec

查看:225
本文介绍了Apache Ant的根的工作不是在了shell_exec的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Apache Ant的一个问题
所有的命令都在SSH客户端腻子工作
但是当我尝试在运行了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:蚂蚁:命令未找到

sh: ant: command not found

是有使用了shell_exec任何权限

is there is any permission using in shell_exec

我对服务器的root访问权限

i have root access to the server

推荐答案

PHP是否兑现环境路径?你可能需要的路径资格的可执行文件。请参阅这篇文章的详细路径/壳信息: 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的根的工作不是在了shell_exec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆