I have seemingly the exact same issue as asked in this question: https://www.digitalocean.com/community/questions/virtualmin-apache2-default-page
I’ll include all the steps I’ve taken, in case I’ve done something stupid.
I’ve created an Ubuntu 14.04 x64 droplet and then installed Virtualmin using the download and install scripts on: https://www.digitalocean.com/community/tutorials/how-to-install-and-utilize-virtualmin-on-a-vps
From there, I went to the virtualmin :10000 admin and followed the wizard. I then went to Webmin > System > Bootup and Shutdown and stopped and prevented from boot at startup for Mailman. Then I went to Virtualmin > System Settings > Features and Plugins and turned off Webalizer, Log file, Spam filtering, Virus filtering, AWstats, Mailman
I then installed the suggested updates and ran Re-Check Configuration, which comes back “your system is ready for use by Virtualmin”
Next I created a virtual server using all defaults except I unchecked use DNS zone.
Checking in SFTP, I can see all the files are created correctly, yet the site still shows the index file of /var/www/html
Out of curiosity, I created a file called test.php in that folder with the contents: <?php phpinfo(); ?> which is all it shows in the browser, so it looks like PHP isn’t working on the frontend either.
I found mention to try:
apt-get install apache2-suexec-custom
cd /etc/apache2/suexec
nano www-data
and change “/var/www” to “/home”, but it was already set to “/home”.
The question I linked to above suggests that it’s futile to try and make virtualmin work, but that doesn’t seem right. When you run the virtualmin install script, it actually asks you whether your OS is one of a few, which includes Ubuntu 14.04. Surely the install script must make it work out of the box? If not, why aren’t there thousands of questions asking exactly this?
I’m thoroughly stumped, any help would be greatly appreciated.
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!
Regarding PHP I couldn’t get any of my Virtualmin / webmin sites to interpret php. A file similar to your test.php was shown in the browser uninterpreted.
PHP is installed and the PHP5 module is “on” in webmin / ApacheWebserver / global config / configure Apache modules. However, there’s nothing listed in webmin / ApacheWebserver / global config / MIME types to correctly process .php files.
So I added MIME type: application/x-httpd-php Extensions: php php5 (and hit apply changes)
And now my *.php files are correctly interpreted as PHP.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.