$_SERVER['DOCUMENT_ROOT'] is wrong!

DA_user

Verified User
Joined
Oct 26, 2004
Messages
32
Hi,
I got a problem with my server. The $_SERVER['DOCUMENT_ROOT'] is wrong!

For all the users on the server the DOCUMENT_ROOT is /var/www/html. In that folder I can only find apache files.

I this a PHP or server problem? Can someone help me?

Help!
 
Have you been editing your virtual_host.conf file?

The doc root is set for each user in the individual httpd.conf files.

These are created when you create a domain using the template
/usr/local/directadmin/data/templates/virtual_host.conf or (/usr/local/directadmin/data/templates/custom/virtual_host.conf if it exists). The only way I can see that all domains woulld be effected is if that file has been changed.
(My paths are based on a RH7.3 installation - I don't know whether they're the same for other operating systems)
 
Back
Top