There is an error on line 4119 of cacti/lib/functions.php:
$logcontents = tail_file($config['base_path'] . '/log/cacti.log', 100, -1, ' INSTALL:' , $page_nr, $total_rows);
It should have the ", $total_rows" removed from the end. The tail_file function uses a default of 0 for total_rows, and total_rows is not defined in getInstallLog() in functions.php. That is why the HTTP 500 is produced.