ini_set errors across Joomla and other scripts (how to fix it)

You may receive following (or similar) error within Joomla or other script:
Warning: ini_set() has been disabled for security reasons in /home/yourusernamehere/public_html/libraries/joomla/session/session.php on line 102
This error indicates that ini_set has been disabled globally due to various security issues. It's impossible to override default php.ini file. How to fix it:
  1. Submit support ticket to then request the following: "please add my website to allow init_set list". Please note: we won't add website with Joomla installed in 2008. Script must be up to date. If you use outdated scripts, please update them prior ini_set request. If it's not possible, we can schedule ini_set activation for 24 hours (more than enough time for upgrade).
  2. System admin will add php.ini file into two folders: public_html and administrator. Both files will be locked with permissions 400 (no write access). Users may change timezone or "url_fopen", but cannot throttle system resources nor remove "disabled functions".
If you receive "time zone errors" set permissions 600 to php.ini file then add following line (right on the bottom):
Or other time zone you wish:
Save then set 400 permissions to php.ini.
Please don't forget to update Joomla and Wordpress!
How to secure Wordpress (very important steps to secure wp-admin and wp-config.php):
If you need assistance with Joomla session.php file, php.ini or Wordpress, please do let us know via
  • 16 Users Found This Useful
Was this answer helpful?

Related Articles

Fatal error: Class 'PDO' not found

My website is showing "Fatal error: Class 'PDO' not found" Please edit php.ini file....

Error: Warning: ini_set has been disabled for security reasons

If you received "Warning: ini_set() has been disabled for security reasons" during script install...

Fatal error: Incompatible file format

Issue: when you visit website, it shows similar error: "Fatal error: Incompatible file format:...

ionCube PHP Loader error on website after PHP upgrade (from php 5.3.x to php 5.4.x)

Issue: When you access website via web browser, it produces similar error: "Site error: the...

It is not safe to rely on the system's timezone settings (how to fix it)

Occasionally, you may receive following warning on main page (especially, Joomla): Warning:...

Powered by WHMCompleteSolution