Hi I have been trying to use the shell_exec() without success don't know why.
If I use the command that I have on the shell_exec('');
$output = shell_exec('/home/steam/bin/./arkmanager status @main');
apache/www-data don't have permissions to restart daemons .
For this to work you need to add apache as sudo user and allow only that partiular command to run without sudo password
in /etc/sudoers file add
www-data ALL=NOPASSWD:/home/steam/bin/./arkmanager status @main
it will work