There is a simple way to call a simple bash script inside php script page:
– Below is a simple bash script called script.sh
echo “Successful call test script“
You will need to set chmod 700 to be root executable. Then save the script to your apache root folder.
There is a simple php script called testing.php
Save this to same root location where your script.sh is.
If you browse the page testing.php, it would have a return value spitted out by script.sh bash script.
You can call this script from here : http://www.debian-tutorials.com/testing.php