Results 1 to 1 of 1
01-05-2012, 03:43 AM #1
- Join Date
- Oct 2011
Force Users To Use Single Php.ini Under suPHP
If you have a dedicated server and use it to sell shared hosting then this article is for you. Today I am going to explain how you can force your users to use same php.ini under suPHP by disallowing .htaccess override. Limiting php.ini use will add security to your server and will disallow users to use custom php.ini file by overriding default php settings set by server administrator (root).
How to make it work:
Its very simple to enable this function in server using suPHP. Just by enabling phprc_paths in /opt/suphp/etc/suphp.conf will do the work for you. See the steps below:
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
/sbin/service httpd restart
Article Source: Force specific php.ini in suPHP