Error / Warning: ini_set() has been disabled for security reasons


To fix this error, put a php.ini file in your script root directory (generally public_html) with the following contents:
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


Open .htaccess file inside your public_html folder and append the following line:
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.
  • 0 Users Found This Useful
Was this answer helpful?