I have various version of python installed in my server, I want to call Python2.6 and I'm calling it by this:
echo shell_exec("python2.6 /root/python/test.py 2>&1")
and it is not executing and giving me following error:
sh: python2.6: command not found
when I try to run this command in console it works fine but not when I call it via PHP, I also tried running only "python /root/python/test.py" and it works fine.