After installing suphp on apache, one of the common error that occurs is this:

PHP script does not executes, instead it is displayed as plane text in browser.

Cause and solution:

Please make sure you have not only setup the file extensions using the AddType directive but also have registered the MIME type with mod_suphp using the suPHP_AddHandler directive.