Need an html code to run a server command as root

ok so i have mods on my site that i do not want to give access to the server itself, i would like to have a page that has a simple button that runs commands so they can start and stop the chat and media server  .. these has to be ran as root is that possible?

 

need to run /etc/init.d/flashcoms_chat_server.sh stop  to stop .. need to run /etc/init.d/flashcoms_chat_server.sh start to start

then they need to run /opt/red5/./red5.sh &  to start red5   .. so would need to be 3 buttons .. chat stop  chat stop .. and media start  .. is this possible to do in html?

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 5 Feb 2014

You can run it with PHP if shell_exec is enabled on your server:

echo shell_exec("/etc/init.d/flashcoms_chat_server.sh stop") or die("bash didn't work");

 

Here's some useful info how to run as root: http://stackoverflow.com/questions/8532304/execute-root-commands-via-php

 

http://boonexpert.com
Quote · 5 Feb 2014

 

You can run it with PHP if shell_exec is enabled on your server:

echo shell_exec("/etc/init.d/flashcoms_chat_server.sh stop") or die("bash didn't work");

 

Here's some useful info how to run as root: http://stackoverflow.com/questions/8532304/execute-root-commands-via-php

 

 awesome idea,, now i just need to make a mod page that is set with permissons that only mods can see it,, think pac allows that right?

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 5 Feb 2014

probably need Deano to help me with this.

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 5 Feb 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.