Re: virtual host problem

From: Date: Thu, 09 May 2002 15:38:43 +0000
Subject: Re: virtual host problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96823@lists.php.net to get a copy of this message
> To learn more, I put the phpinfo(); function in my document root, and > lo and behold, I get this long a gnarly virtual path: > /home/virtual/site26/fst/var/www/html/ > as my document root. So I try: > /home/virtual/site26/fst/var/www/rsrcs/.... for my includes, and still > can't get to it. You've probably got an ensim system, don't you? The host for falkware.com is like that and it's a pain. Through ssh, the path to the file is /var/www/html/etc..., but like you, we have to use the whole "hidden" path /home/virtual/site26/fst/var/www/rsrcs/... That should work for you. What kind of error are you getting when you use the entire path? > SECOND QUESTION: are there any virtual host gurus who can tell me how to > get Apache/PHP to include files from outside of the document root on > virtual hosted systems? You can use an absolute path, with /home/virtual ... or use a relative path from the script you're in ../../includes/ etc.. ---John Holmes...

« previous php.general (#96823) next »