/*
// Get the server load averages (if possible)
if (@file_exists('/proc/loadavg'))
{
// We use @ just in case
$fh = @fopen('/proc/loadavg', 'r');
$load_averages = @fread($fh, 64);
@fclose($fh);
$load_averages = @explode(' ', $load_averages);
$server_load = $load_averages[0].' '.$load_averages[1].' '.$load_averages[2];
}
else if (preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', @exec('uptime'), $load_averages))
$server_load = $load_averages[1].' '.$load_averages[2].' '.$load_averages[3];
else
*/
$server_load = 'Not available';
=====================================
Hopefully the above code should come out ok.
When I commented out this part from admin_index.php Apache no longer crashes. Not exactly sure yet which part is causing the problem, although I'm now a bit worried about installing this in my web space in case I crash the whole server. I don't have a pc configured with the same linux/apache software to be able to mimic the setup of my web host. I guess there are already quite a few people using this on linux/apache already?
Thanks for any suggestions.
Max