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
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image Verification Required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Full Name:
E-mail Address: (optional)
Comment:
Back
Login
[Lost Password]
E-mail:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Troubleshooter
Article Options
Add Comment
Print Article
PDF Version
E-mail Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
Troubleshooter
|
News
|
Downloads
Language:
English (U.S.)
Help Desk Software by Kayako SupportSuite v3.30.02