09 Sep 2010 
Support Center » Knowledgebase » PHP Errors: Warning: ini_set() has been disabled for security reasons
 PHP Errors: Warning: ini_set() has been disabled for security reasons
Article PHP Errors: Warning: ini_set() has been disabled for security reasons.

You can get this or any similar error by running a PHP script, because the desired function is considered to be dangerous, so it is disabled on main PHP configuration.

We have disabled most insecure PHP functions and are unable to allow them for any specific users due to potential security issues.

However to get rid of this error, all you need to do is create a php.ini file under your public_html folder with these values in it :-

root@server[/home/someuser/public_html]# cat php.ini
display_errors = Off
display_startup_errors = Off

The above variables control whether PHP should display errors in the browser or be silent. It is recommended to turn these two settings Off during production so that you don't accidentally display sensitive information about your Web site.

NB: Any php values added in local php.ini files will not be recursively effective in all the folders. If you are getting the error message in any folder under the same domain, then you need to copy paste this file to that location.


Article Details
Article ID: 3
Created On: 10 Nov 2009 4:00 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software by Kayako SupportSuite v3.30.02