• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[ModernAAC] Start/Stop Server In Admin Panel!

Sweddy

Well-Known Member
Joined
Feb 14, 2009
Messages
2,907
Reaction score
93
Location
Sweden
I Wanna be able to start/stop my server in the modernaac homepage, any clue how to?
 
you can use exec() function in PHP but php user needs to have rights to do it. You can execute sh script that is responsible for stopping server for example by killing it with command killall -9 theforgottenserver or something similar to it.
 
make file

PHP:
<?php 
exec('killall -9 theforgottenserver');
?>

but it depends on how you run ot. So you should really personalize it to your ot.
 
Back
Top