We are trying to have a default system-wide php.ini to which values can be added per virtual host by having a php.ini in that host's document root. The PHP_INI_SCAN_DIR variable is ideal for that.
We tried setting that variable to $VH_NAME, $VH_ROOT or $DOC_ROOT, unfortunately none of them contain the right value. Our structure is as follows for a user "username" and vhost subdomain.domain.tld:
/web/username/domain.tld/subdomain/
The variables contain the following:
$VH_NAME is empty
$VH_ROOT /web/username/
$DOC_ROOT /web/username/domain.tld/default/ (no clue where 'default' comes from)
Any idea how I could get /web/username/domain.tld/subdomain/ out of a variable?
NB: we are using an Apache-style configuration which looks like this:
We tried setting that variable to $VH_NAME, $VH_ROOT or $DOC_ROOT, unfortunately none of them contain the right value. Our structure is as follows for a user "username" and vhost subdomain.domain.tld:
/web/username/domain.tld/subdomain/
The variables contain the following:
$VH_NAME is empty
$VH_ROOT /web/username/
$DOC_ROOT /web/username/domain.tld/default/ (no clue where 'default' comes from)
Any idea how I could get /web/username/domain.tld/subdomain/ out of a variable?
NB: we are using an Apache-style configuration which looks like this:
Code:
<VirtualHost 12.34.56.78:80>
ServerName subdomain.domain.tld
DocumentRoot /web/username/domain.tld/subdomain
SuexecUserGroup web-username web
AddType application/x-httpd-php5 php
</VirtualHost>