[Xitami] PHP/Xitami virtual paths

Russel Olinger xitami@lists.xitami.org
Thu, 28 Mar 2002 17:31:12 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_075B_01C1D67E.5AC61980
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, i finally got php to work.  However I want to use the doc_root =
variable in the PHP.INI file to make certain that all PHP files get =
installed into a particular directory and can only be run from there.  =
This will remove all PHP files from the /webpages directories hence =
removing potential security risks.

However, I am running virutal domains and I want each domain to have its =
own php directory, similiar to each domain having its own cgi-bin =
directory.  How can I set up the doc_root variable in PHP.INI to reflect =
that.

EX:
/xitami/domain1/htdocs
/xitami/domain1/cgi-bin
/xitami/domain1/php

/xitami/domain2/htdocs
/xtiami/domain2/cgi-bin
/xitami/domain2/php

etc, etc, etc.
The doc_root variable needs to be able to understand different =
paths....is there a universal command I could use such as *./php or =
%path%/php ???

Thanx

------=_NextPart_000_075B_01C1D67E.5AC61980
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ok, i finally got php to work.&nbsp; =
However I want=20
to use the doc_root variable in the PHP.INI file to make certain that =
all PHP=20
files get installed into a particular directory and can only be run from =

there.&nbsp; This will remove all PHP files from the /webpages =
directories hence=20
removing potential security risks.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>However, I am running virutal domains =
and I want=20
each domain to have its own php directory, similiar to each domain =
having its=20
own cgi-bin directory.&nbsp; How can I set up the doc_root variable in =
PHP.INI=20
to reflect that.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>EX:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/xitami/domain1/htdocs</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/xitami/domain1/cgi-bin</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/xitami/domain1/php</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/xitami/domain2/htdocs</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/xtiami/domain2/cgi-bin</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/xitami/domain2/php</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>etc, etc, etc.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The doc_root variable needs to be able =
to=20
understand different paths....is there a universal command I could use =
such as=20
*./php or %path%/php ???</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanx</FONT></DIV></BODY></HTML>

------=_NextPart_000_075B_01C1D67E.5AC61980--