Hi I am unable to run the .sh file using my php code.
Files: index.php and .sh files are in the same directory.
What I have tried:
echo shell_exec('sh shell_file.sh'); //Did not execute
echo shell_exec('shell_file.sh'); //Did not execute
echo exec('shell_file.sh'); //Did not execute
But when I run the shell_file.sh file manually it does execute.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…