how to reboot vyatta pc router via php?
i used vyatta pc router (linux based) and i have installed XAMPP for Linux 1.6.6 web server on my router. I would like to know how to reboot my vyatta via php script... I've tried to do that. Here's the scrpit :
/opt/lampp/htdocs/webvy/reboot.php
<?php
exec (/user/bin/sudo /sbin/reboot);
?>
/opt/lampp/htdocs/webvy/form-reboot.html
<a href="reboot.php">Reboot</a>
/etc/sudoers
apache ALL=/sbin/reboot,/opt/lampp/htdocs/webvy/reboot.php NOPASSWD
My script doesn't work and contain an error in /opt/lampp/logs/error_log :
password :
anybody know what's wrong with my script???
|
Recent comments
22 hours 22 min ago
1 day 3 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 23 hours ago
1 day 23 hours ago
2 days 4 hours ago
2 days 11 hours ago
2 days 12 hours ago
2 days 13 hours ago