Apache ant working in root not in shell_exec

谁都会走 提交于 2020-01-17 04:14:06

问题


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

is there is any permission using in shell_exec

i have root access to the server


回答1:


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



来源:https://stackoverflow.com/questions/10834134/apache-ant-working-in-root-not-in-shell-exec

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!