[solved] /var/www/ is the only thing showing for my website and 2 other related probelms

I’m trying to phase out an old website so im wanting to swtich to virtualmin but there is a problem with the apache and php

The other issue i have is trying to install roundcube via script it tells me “Failed to install script : Could not find PHP version for /home/jancare/public_html/mail” (but my version is 5.5.9)


php-v returns

PHP 5.5.9-1ubuntu4.25 (cli) (built: May 10 2018 14:37:18)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright © 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright © 1999-2014, by Zend Technologies

Ok so … problem was:

no sethandler in apache2.conf – and I can assure you i didn’t edit that out!!! I have no idea how it got deleted but I suspect it had to do with deleting one of my virtual servers that was on the same domain

<FilesMatch .php$>
SetHandler application/x-httpd-php

resolved the issue

The next issue is the DNS that I’m still working on