php.ini per user

cwfie

Verified User
Joined
Aug 3, 2005
Messages
91
Hi,

I'm running Apache2/PHP 5.3 + PHP-FPM

Im trying to set a php.ini per user as the following tutorial:
http://help.directadmin.com/item.php?id=183

I tried adding:
SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/

And I did place a file called php.ini with the following content in the above folder:

register_globals = on

Howeved the site still shows "FATAL ERROR: register_globals is disabled in php.ini, please enable it!"

Anyone can help me here? Does this only with with suphp? Thanks :)
 
Hi,

I'm running Apache2/PHP 5.3 + PHP-FPM

Im trying to set a php.ini per user as the following tutorial:
http://help.directadmin.com/item.php?id=183

I tried adding:
SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/

And I did place a file called php.ini with the following content in the above folder:

register_globals = on

Howeved the site still shows "FATAL ERROR: register_globals is disabled in php.ini, please enable it!"

Anyone can help me here? Does this only with with suphp? Thanks :)

In your case, you might want to simply add your setting to a .user.ini file as I'm sure you don't want to enable the very unsafe register_globals setting for all the domains.
 
Back
Top