when you get the 500 server error, make note of the page in the browser address bar, then add the following code at line 1 of that page:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
the 500 server error is a very vague error, we need to know the real error that is occurring to be able to troubleshoot the cause.