settings.php displays in browser
According to this Stackoverflow question you might need to add this to your server configuration:

AddType application/x-httpd-php .php


Another possibility is an encoding problem, according to this other Stackoverflow question.