Dear all,
I'm wondering if I can make each user to have only one php.ini file, and that php.ini is outside user's home directory, so only admin can edit that php.ini for user?
PS. handler=suphp & suEXEC=on
Dear all,
I'm wondering if I can make each user to have only one php.ini file, and that php.ini is outside user's home directory, so only admin can edit that php.ini for user?
PS. handler=suphp & suEXEC=on
You can create a php.ini as root under the user's account so he won't be able to create a new one as well as edit the one you placed.
OR
to completely disable permissions for users to create their own php.ini and manage them from outside their home directories, refer the post by "sparek-3" at: http://forums.cpanel.net/f5/how-can-...hp-127537.html
Last edited by madaboutlinux; 12-11-2009 at 07:02 AM.
In a text editor (nano, vi etc) open the file - /opt/suphp/etc/suphp.conf
search for [phprc_paths]
there uncomment the following lines :
;application/x-httpd-php=/usr/local/lib/
;application/x-httpd-php4=/usr/local/php4/lib/
;application/x-httpd-php5=/usr/local/lib/
save and quit.
restart apache. you are done, now regardless of php.ini at their home folders, all users will be forced to use php.ini at the above paths .