Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working in a hosting company and I'm pretty new. One of the company's policies is disabling ini_set php function for security reasons. There are lots of clients that have shared hosting asking us to enable this function. My task is to find out how can we enable this function without putting others at risk. We use Redhat Enterprise 5 and Cpanel.

I would be grateful if anyone has an answer to this.

Thanks a lot.

share|improve this question

migrated from Dec 9 '09 at 12:11

This question came from our site for computer enthusiasts and power users.

Best solution - use separate instance of PHP for each user what need ini_set() with different UIDs.

Yes, it needs more memory.

share|improve this answer

I've found that it's generally unnecessary. As cPanel specific advice, fire up easyapache and recompile it with suPHP support. From there, your customer can create php.ini files inside their public_html directories that will be applied as a local PHP config. It's not quite as convenient as ini_set(), but it will suffice.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.