How to solve PHP issue with " ini_set() has been disabled for security reasons"?


You may facing error saying that "ini_set() has been disabled for security reasons". You cannot access to your website and sometime you get a lot of error display inside your website.


Our server has been tighten its security with more secure rule where we have to disable some of PHP functions.


To solve this issue, you may need to create .htaccess file inside your public_html folder if it is not created yet. If it is already configured, you may need to open the file and key in below line inside:

suPHP_ConfigPath /home/username/public_html/

Please take note that you might need to change the username with your cpanel username.

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Cannot connect to database

This error will occur within a web application when any of the following conditions are met:...

My webpage is displaying ads

If your website is not pulling up and is instead showing advertisements, the most likely cause is...

Page says function not found, but the page exists

If your web application uses a function found in a particular file, but the application says that...

Page is displaying 404 Page Not Found error

The 404 Page Not Found error means that the user requested a page on the server that does not...

What is hotlink protection?

Hotlink protection is disabling external use of your resources. For instance, if your website has...