If you’re having problem with your newly installed WordPress/Joomla or other website, you’re not alone! Every time I install a new WordPress site on my hosting or even I upload a new site to my hosting I always having an error. Today, I want to share my experience how I resolved this problem. Webhost limits this things to make your website more secured. And to disable such security options you would need to create a php.ini settings file.

I look around at google and I found this step by step how to resolve Warning: ini_set() has been disabled for security reasons” Error.

So in this article you’ll learn:

  • How to resolve Warning: ini_set() has been disabled for security reasons” Error
  • What other option you can do


As you can see, if you’re building your wordpress site and you encountered this kind of problem you probably get into stress or you feel want to quit and don’t build your wordpress of website anymore. Just relax and you’ll see how easy to solve this with a very little effort 🙂


First of all, you need to login at your cpanel of your account. then follow this few steps below;

Step 1. In the root folder of your website, create a new file and save it as “php.ini” on your File Manager.


Step 2. Edit php.ini, copy and paste the code below:


safe_mode = Off
display_errors = Off
memory_limit = 64M
disable_functions =


Step 3: Save and reload website to see if it’s working.

This will take out the limitations set by your host server.


If you want to learn more you can watch this short video below;

Credit to PinoyITSolution


Your Other Option To Solve The Error

If still not working then you need to ask for assistance from the technical support of your provider.

Was this helpful? Feel free to share with others and let me know your experience after you follow this few steps to resolved your disabled for security reason error on your wordpress site. 😉