DocumentRoot, Apache, Php

3 posts / 0 new
Last post
#1 Sat, 06/04/2016 - 05:00
attila

DocumentRoot, Apache, Php

Hi everyone,

I'm struggling with the documentroot, apache, php, I think I can get some help... :)

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

Thank you for your help!

Sat, 06/04/2016 - 13:56
andreychek

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-wro...

Wed, 06/08/2016 - 01:29 (Reply to #2)
attila

Yes! It was helpful :) Thank you!

Topic locked