Install webmin ( http://webmin.com/ ). It doesn't take a lot of resources, is exclusive of apache and you can make it strictly using https

Has a lot of basic modules that have saved my ass a few times. You can restart any service, execute any linux command, alter firewall rules, etc....look here http://webmin.com/standard.html

I install it on all of my linux servers by default, alter it's port to a different one just to make it a little bit more elusive

Mike

Bruce Nik wrote:
As mentioned before Asterisk is down too for some reason. Anyhow, I was able to 
use Terminal from within WinSCP to do a reboot. I can't believe I wasted all 
day on this.
Thanks guys

----------------------------------------
Date: Mon, 12 Jan 2009 16:53:11 -0500
From: [email protected]
To: [email protected]
Subject: Re: [on-asterisk] A linux question

Bruce Nik wrote:
Should the following file (if run from IE) reboo the system: 
/var/www/cgi-bin/reboot

#!/bin/bash
echo "Content-type: text/html"
echo ""
echo ""
echo "
Rebooting now $(shutdown -r now)"
echo ""


Trying to find a way to restart a remote server that only gives scp access and 
apache is running too.
Not unless the service that will be executing the script, Apache in this
case, has super user access, and it probably (shouldn't, and I hope for
you sake) doesn't. There are ways around this but this seems like a bad
way to go. You have SCP but not SSH access?

A system command from a call to Asterisk seems like a good way to go,
and is on topic for this list :)

--
Cliff Flood
Systems Administrator
Jazinga Inc.
+1 416 548 4755 x106

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

_________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



--
Mike Ashton

Quality Track Intl
CTO
Ph:     647-724-3500 x 301
Cell:   416-527-4995
Fax:    416-352-6043

QTI CONFIDENTIAL AND PROPRIETARY INFORMATION

The contents of this material are confidential and proprietary to Quality Track 
 International, Inc.
and may not be reproduced, disclosed, distributed or used without the express 
permission of an authorized representative of QTI.
Use for any purpose or in any manner other than that expressly authorized is 
prohibited.
If you have received this communication in error, please immediately delete it 
and all copies, and promptly notify the sender.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to