Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is the hierarchy for setting open_basedir in php.ini, httpd.conf, and vhost.conf

9 views
Skip to first unread message

Reporter

unread,
Dec 9, 2007, 2:20:25 AM12/9/07
to
My understanding is that open_basedir can be set in php.ini or
httpd.conf or vhost.conf ?

Which takes precedence?

Thank you.

Norman Peelman

unread,
Dec 9, 2007, 8:06:48 AM12/9/07
to

php.ini sets overall values, httpd.conf (apache?.conf) sets global
server values, vhosts set per vhost values, and ini_set() sets values on
a per script basis. I would assume they get set or are overridden in
that order:

php.ini->httpd.conf(apache?.conf)->vhost->ini_set()

---
Norm

Jonas Werres

unread,
Dec 9, 2007, 4:20:40 PM12/9/07
to
> php.ini->httpd.conf(apache?.conf)->vhost->ini_set()

vhost.conf is probably just an include from apache.conf/httpd.conf. So
it depends where the value is specified in the two files.

0 new messages