Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 superuser.com Dec 9 '09 at 12:11

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

2 Answers 2

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

 
discard

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