View previous topic :: View next topic |
Author |
Message |
twirp -
Joined: 30 Dec 2004 Posts: 10 Location: Maryland
|
Posted: Wed May 11, 2005 3:56 am Post subject: Remote restart |
|
|
I want to make a control panel, so if there are any problems with the server, I can do a remote restart or reboot...
Does anyone know a code that could do this with PHP? _________________ If one's life isn't fully appreciated tel death,
Then what am I still doing here? |
|
Back to top |
 |
 |
Tim1681 -
Joined: 17 Jan 2005 Posts: 160 Location: Bristol, CT, USA
|
Posted: Wed May 11, 2005 3:59 am Post subject: |
|
|
Do you mean restarting Abyss or a whole Server Reboot? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
twirp -
Joined: 30 Dec 2004 Posts: 10 Location: Maryland
|
Posted: Wed May 11, 2005 8:13 pm Post subject: |
|
|
But if I were to do that in PHP,
The server would stop, and not start back up. _________________ If one's life isn't fully appreciated tel death,
Then what am I still doing here? |
|
Back to top |
 |
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed May 11, 2005 9:42 pm Post subject: |
|
|
No it wouldn't , once you run the script , the computer will read the
commands given by the PHP script and then restart Abyss. LateR!
Sincerely , TRUSTpunk |
|
Back to top |
|
 |
twirp -
Joined: 30 Dec 2004 Posts: 10 Location: Maryland
|
Posted: Thu May 12, 2005 2:13 am Post subject: |
|
|
TRUSTpunk wrote: | No it wouldn't , once you run the script , the computer will read the
commands given by the PHP script and then restart Abyss. LateR!
Sincerely , TRUSTpunk |
in php, it would be:
Code: |
<?php
passthru("net stop AbyssWebServer");
passthru("net start AbyssWebServer");
echo "AbyssWebServer has been restarted";
?>
|
It would stop the server before it executes the rest of the code. _________________ If one's life isn't fully appreciated tel death,
Then what am I still doing here? |
|
Back to top |
 |
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu May 12, 2005 1:13 pm Post subject: |
|
|
In that case you should maybe use a batch file that executes from your
computer , thats the best way to restart Abyss Web Server remotely. :-)
Sincerely , TRUSTpunk |
|
Back to top |
|
 |
|