FruitNZ
Verified User
- Joined
- Jul 3, 2008
- Messages
- 5
Hi,
I am trying to customise the virtual_*.conf templates, more specifically the OPEN_BASE_DIR path.
We have a reseller that have developed their own PHP library/CMS system, and are using it for all their users. Currently they have to upload the whole library to the users home directory before they can use the site, which creates problems down the line with updates and support.
Is their a Token for the CREATOR/RESELLER that could be used in these templates? I see that there is one in the "Custom HTTPD Configuration" section, but that's only available to the Admin level, not Reseller.
I've tried:
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/:/home/`CREATOR`/phplib/|
at the top of the file, but it resolves `CREATOR` as blank.
I've tried |CREATOR| further down like:
php_admin_value open_basedir |OPEN_BASEDIR_PATH|:/home/|CREATOR|/phplib/
but with the same result.
I've checked : http://help.directadmin.com/item.php?id=2 and yes, CREATOR is not in the Token list, but it is listed as a valid Token in "Custom HTTPD Configuration" (Available Tokens: |DOMAIN|, |IP|, |HOME|, |ADMIN|, |DOCROOT|, |USER|, |GROUP|, |CERT|, |KEY|, |HOSTNAME|, |SAFE_MODE|, |OPEN_BASEDIR|, |CREATOR|, |BANDWIDTH|, |QUOTA|)
Now I know that with the if-then-else and the scripting capabilities now available this can be done the long way, but I was hoping that someone might have a quicker and easier method
I'd appreciate any hints or advice that people might have to offer. I'll keep plugging away at this anyway
Cheers.
Regards,
Morgan
Hosting Direct Ltd
I am trying to customise the virtual_*.conf templates, more specifically the OPEN_BASE_DIR path.
We have a reseller that have developed their own PHP library/CMS system, and are using it for all their users. Currently they have to upload the whole library to the users home directory before they can use the site, which creates problems down the line with updates and support.
Is their a Token for the CREATOR/RESELLER that could be used in these templates? I see that there is one in the "Custom HTTPD Configuration" section, but that's only available to the Admin level, not Reseller.
I've tried:
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/:/home/`CREATOR`/phplib/|
at the top of the file, but it resolves `CREATOR` as blank.
I've tried |CREATOR| further down like:
php_admin_value open_basedir |OPEN_BASEDIR_PATH|:/home/|CREATOR|/phplib/
but with the same result.
I've checked : http://help.directadmin.com/item.php?id=2 and yes, CREATOR is not in the Token list, but it is listed as a valid Token in "Custom HTTPD Configuration" (Available Tokens: |DOMAIN|, |IP|, |HOME|, |ADMIN|, |DOCROOT|, |USER|, |GROUP|, |CERT|, |KEY|, |HOSTNAME|, |SAFE_MODE|, |OPEN_BASEDIR|, |CREATOR|, |BANDWIDTH|, |QUOTA|)
Now I know that with the if-then-else and the scripting capabilities now available this can be done the long way, but I was hoping that someone might have a quicker and easier method
I'd appreciate any hints or advice that people might have to offer. I'll keep plugging away at this anyway
Cheers.
Regards,
Morgan
Hosting Direct Ltd