lighttpd + php-fpm - supress "500 - internal" errors ?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

lighttpd + php-fpm - supress "500 - internal" errors ?

Postby gschoppe » Mon Jul 01, 2013 4:28 am

i have the following script:
$this->bbcode_second_pass_code('', '
<?php
ob_start();
echo "<html><head><script type='text/javascript'>setTimeout('window.location = window.location.pathname;', 30000);</script></head>";
echo "<body><center><h2>AnonyBox Rebooting</h2><br/><i>your browser will redirect in 30 seconds</i></center></body></html>";
ob_end_flush();

shell_exec("sudo systemctl stop openvpn@config.service");
shell_exec("sudo /sbin/reboot");
?>
')

after fussing with sudoers, the script works to reboot my device. However, it never outputs the html page. It just shows a "500-Internal Server Error"... how can i suppress this, so that the redirect page will show?
gschoppe
 
Posts: 28
Joined: Thu Feb 21, 2013 11:58 pm

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests