I am trying to write a php program which can execute service fcserver status to find whether my chat room is running or not. If it is running then output should be
and if it's not running then the output should be
If it is not running then there should be an start button to start the chat room. and when somebody clicks on that button, my script executes service fcserver start command.
well, i can't execute commands like "service fcserver status" or "service fcserver start" as www-data user. I need a root permission. please help me!! what are the ways to get this little task done without compromising with server security?
Thank you!