Question

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

Posted May 30, 2016 6.3k views
UbuntuApachePHPCMS

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 :(

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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
Submit an Answer