user_virtual_host.conf - custombuild 2.0

JohnyByk

Verified User
Joined
Mar 7, 2012
Messages
251
Hi.

I want to set suphp php ini scan dir for /home/user/domains/domain.com

I changed line

SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/
SetEnv PHP_INI_SCAN_DIR |HOME|/domains/|DOMAIN|

I don't know why, but variable |DOMAIN| dosen't work in user_virtual_host.conf.
Any ideas how to resolve this problem?
 
Change
Code:
SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/
to
Code:
SetEnv PHP_INI_SCAN_DIR "/home/|USER|/domains/|DOMAIN|"
 
The problem is that the variable | DOMAIN | is not replaced with a user domain

In user httpd.con i have:
SetEnv PHP_INI_SCAN_DIR "/home/user/domains/|DOMAIN|"

In place of |DOMAIN| domain should appear domain name (example example.com)

It's possible that variable |DOMAIN| dosen't work in that template file?
Problem is too with |DOCROOT|
 
Last edited:
I added SetEnv PHP_INI_SCAN_DIR |HOME|/domains/|DOMAIN| into virtual_host2.conf and work's great.
 
Back
Top