suPHP and multiple php.ini

alessandro123

Verified User
Joined
Sep 11, 2008
Messages
46
Hi all
in the next week I'll try to convert an existing DA box made with mod_php to suphp.

What I whant Is to jail users to their home dir and I can do this with open_basedir.

I know that i'll have to create a php.ini file for every user and i'll have to set it in readonly (chattr +i) to prevent hacking and basedir bypassing.

Now the question: can I use two php.ini for every user?
For example, a common shared php.ini and a second php.ini with just only customization, for example openbasedir and so on.

With multiple php.ini, i'll be able to change a global server setting with no need to copy the same file to every user.

Nextly, can I use a php.ini outside home directory? For example in /usr/local/directadmin/data/users/php/php.ini and then set readonly the whole directory?

Or can I use symbolic links?

Thank you.
 
Back
Top