I have this php code:
echo shell_exec('sh /backups/turnon.sh');
The /backups/turnon.sh
code is:
screen -X 'cd /ftb; java -Xms2048m -Xmx2048m -jar mcpc.jar'
However, that outputs to the website:
No screen session found.
However if I open PuTTY and I do screen -x
I can load the screen with no issue. What am I doing wrong.