0

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

Saleeh
  • 392
  • 4
  • 15

1 Answers1

2

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

Community
  • 1
  • 1
Tiksi
  • 471
  • 1
  • 6
  • 15