I have php code that is as follows (kill.php):
<?php echo exec("/home/duke/aa/scripts/test.sh"); ?>
test.sh looks like this:
screen -S server -X quit
If I run the php code in the terminal
php screen -S server -X quit the script kills the screen session.
However, if I point my web-browser to http://mywebsite/test.php, it displays "No screen session founds" and it doesn't kill the screen session. What can I do to make it work through the web-browser?