Report this

What is the reason for this report?

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

Posted on May 30, 2016

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.