PHP files displayed as plain text (wordpress platform on Webmin/virtualmin help!

May 30, 2016 506 views
PHP Apache CMS Ubuntu

I have literally just went through 10 different error threads to solve this issue. Trying to solve this issue by other tutorials have left me with extra errors to solve, extra error solution gives me another error. At this point I'm at the 9'th errors's error.

I have a ubuntu droplet and I have manually installed virtualmin and set everything up, I've uploaded and extracted the wp platform via FTP, configured db via notepad and at this point it just displays the content of the PHP files on the server :(

1 Answer

Have you installed php5 and mod_php so Apache knows what to do with php files?

If you're on Ubuntu 15.10 or older

sudo apt-get php5 install libapache2-mod-php5 php5-mysql

If you're on Ubuntu 16.04

sudo apt-get install libapache2-mod-php7.0 php7.0-mysql
Have another answer? Share your knowledge.