Remote restart

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
twirp
-


Joined: 30 Dec 2004
Posts: 10
Location: Maryland

PostPosted: Wed May 11, 2005 3:56 am    Post subject: Remote restart Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Wed May 11, 2005 3:59 am    Post subject: Reply with quote

Do you mean restarting Abyss or a whole Server Reboot?
Back to top View user's profile Send private message AIM Address
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed May 11, 2005 12:54 pm    Post subject: Re: Remote restart Reply with quote

twirp,

A stop/restart example is available in http://www.aprelium.com/forum/viewtopic.php?p=39369#39369 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
twirp
-


Joined: 30 Dec 2004
Posts: 10
Location: Maryland

PostPosted: Wed May 11, 2005 8:13 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed May 11, 2005 9:42 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
twirp
-


Joined: 30 Dec 2004
Posts: 10
Location: Maryland

PostPosted: Thu May 12, 2005 2:13 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu May 12, 2005 1:13 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group