php.ini per user in subdomains

santovito

Verified User
Joined
Nov 23, 2008
Messages
143
Hi at all,

i've create a php.ini per user. However, the php.ini isn't read in subdomains.

Example in domain.xx
Scan this dir for additional .ini files /usr/local/directadmin/data/users/myuser/php/
additional .ini files parsed /usr/local/directadmin/data/users/myuser/php/php.ini

example in my.domain.xx
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)

Can I fix this problem?

Thank You

Vito
 
create a .htaccess file and put it in the file eg. domain.com/subfolder

<Location />
suPHP_Engine on
suPHP_ConfigPath /whatever/usr/local/etc/php5/cgi/
</Location>

. htaccess file has the effect in the folder and all subfolders
 
create a .htaccess file and put it in the file eg. domain.com/subfolder



. htaccess file has the effect in the folder and all subfolders
but the correct if the first case, in the subdomain I want to be read as domain.xx (Scan this dir for additional .ini files /usr/local/directadmin/data/users/myuser/php/ additional .ini files parsed /usr/local/directadmin/data/users/myuser/php/php.ini)
 
You do not enter the php.ini, reads itself. Only /usr/local/directadmin/data/users/myuser/php/

In this case

<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/directadmin/data/users/myuser/php/
</Location>

Add the .htaccess file where you want to run own php.ini
 
Back
Top