I'm using this code as a basis:
CODE
<?php
echo `gtaserver kill westie`;
?>
echo `gtaserver kill westie`;
?>
where the result (as it should be) is this:
CODE
Server for westie has been shut down. (PID: 9340)
There seems to be a wee problem. If I use the gtaserver in PuTTY, it would kill the game-server, but if I try in PHP, it won't kill it. Nice.
I had a check with exec('whoami') and the user/group for apache is nobody.
So how would I go about getting this to work/giving apache the permission to use this?