If PHP files get downloaded rather than executed on Ubuntu Linux Comments Off on If PHP files get downloaded rather than executed on Ubuntu Aug 062015 you probably didn’t install libapache2-mod-php5: sudo apt-get install libapache2-mod-php5