Hello,
I am having trouble executing BASH scripts in PHP.
The bash script is simply:
#!/bin/bash
/home/register/palace/bin/./stop-palace
echo "Palace Stopped"
I have set the permissions correctly in Apache as a Virtual Host (User and Group) and all files are set to that user too.
I can run the bash script as that user in SSH/Telnet and it works fine, but when I try and run it using system("./script.sh"); in a PHP script, it just prints the echo command "Palace Stopped" and doesn't execute the command.