Why are my PHP files showing as plain text? [duplicate]

You should install the PHP 5 library for Apache.

For Debian and Ubuntu:

apt-get install libapache2-mod-php5

And restart the Apache:

service apache2 restart

Leave a Comment