DocumentRoot, Apache, Php

Hi everyone,

I’m struggling with the documentroot, apache, php, I think I can get some help… :slight_smile:

  1. Apache sets the basic document root to var/www/html
  2. If I setup a new user, his site will be available at home/username/public_html

My problems are:

  1. the site is not available at domain.com (dns ok) - also tried to modify apache conf file, but loads of errors appeared (e.g apache looking at var/www/html, but the site is in user’s public_html)
  2. drupal installation internal server error or wsod with normal (nothing special install) webmin and virtualmin setup
  3. php switches automatically from FCgi to php_mod and cannot switch it back

I would be glad to get some info - I think I’m missing on something… I would like to use Webmin and Virtualmin, but I’ll be forced to switch to another platform if I can’t sort these out :frowning:

Thank you for your help!

Howdy,

Any time you add a new domain, the DocumentRoot for that new domain should be in /home/domain/public_html.

If that’s not what you’re seeing, take a peek at this and see if this helps:

https://www.virtualmin.com/documentation/web/troubleshooting#toc-the-wrong-site-shows-up-V5JtxdKg

Yes! It was helpful :slight_smile: Thank you!