Re: rebooting linux using php
| From: | Scott Fletcher | Date: | Thu, 18 Jul 2002 19:10:29 +0000 |
| Subject: | Re: rebooting linux using php | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108316@lists.php.net to get a copy of this message | ||
This can be done using the exec() function, the php.net doc will explain how
it work. There are a few known problem as I can see if someone try to
reboot the Linux/Unix.
1) If the hacker break-in and take control of hte script. Who know what
could have happen.
2) If using encryption and use passphrase to start up Apache, it is a
darn problem getting the passphrase be entered automatically.
3) If people are online to that one website and the machine reboot,
everyone would get cut off of that website.
FletchSOD
"John S. Huggins" <jhuggins@va.net> wrote in message
news:Pine.LNX.3.96.1020718183405.7224A-100000@va.net...
On Thu, 18 Jul 2002, Harpreet Kaur wrote:
>-
>-Can we reboot a linux server using a php page?
Yes.
>-And is it recommended?
No.
>-
>-Regards,
>-Harpreet Kaur
>-
>-
>-_________________________________________________________________
>-Join the world's largest e-mail service with MSN Hotmail.
>-http://www.hotmail.com
>-
>-
>---
>-PHP General Mailing List (http://www.php.net/)
>-To unsubscribe, visit: http://www.php.net/unsub.php
>-
**************************************
John Huggins
VANet
jhuggins@va.net
http://www.va.net/
**************************************