How to fix ini_set() has been disabled for security reasons

1. Create php.ini file inside your public_html folder, OR the folder in which you have installed your script, and paste the following code into it:

Code:
disable_functions = allow_url_fopen, escapeshellarg, escapeshellcmd, ini_alter, passthru, parse_ini_file, popen, proc_open, proc_close, proc_terminate, proc_get_status, proc_nice, readfile, show_source, system
If you already have the disable_functions line, just append the code to match what is above.

2. Open .htaccess file inside your public_html folder and append the following line:
Code:
suPHP_ConfigPath /home/username/public_html/
where username is your Cpanel username. In case you don't have .htaccess file there, you need to create it.

The most popular and easy ways to create/edit files inside your account are FTP clients or Cpanel File Manager.
  • 20 Users Found This Useful
Was this answer helpful?

Related Articles

Run OPTIMIZE TABLE to defragment tables for better performance

For this suggestion:Run OPTIMIZE TABLE to defragment tables for better performanceRun this...

How to clear Error Log of a cPanel Account.

User the below code to clear Error Log:Replace User with Username:Code:for i in `find...

What is php.ini ?

The php.ini file and changing PHP Settings The php.ini file is a special file for PHP and...

How to fix Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone:

1: Create .htaccess file inside your public_html folder, OR the folder in which you have...

Fixed:”Function set_magic_quotes_runtime() is deprecated in PHP 5.3.0”

Problem with set_magic_quotes on Application with Code Igniter. The problem is “Function...