The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ini_set disable functions

Discussion in 'General Discussion' started by oozetime, Aug 22, 2014.

  1. oozetime

    oozetime Member

    Joined:
    Aug 22, 2014
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I disabled the ini_set as requested firewall csf. Since it is unsafe to use it, as a client or intruder can disable functions that give permission to break into websites and dbs.

    But with the ini_set unable, some of my clients have problems with joomla and wordpress.

    Follows the message of some of the errors:

    Warning: ini_set() has been disabled for security reasons in /home/apoioser/public_html/novo/libraries/joomla/session/session.php on line 100

    Warning: ini_set() has been disabled for security reasons in /home/apoioser/public_html/novo/libraries/joomla/session/session.php on line 103

    Warning: ini_set() has been disabled for security reasons in /home/apoioser/public_html/novo/libraries/joomla/session/session.php on line 831

    Font: - removed -
    How to get around this?
     
    #1 oozetime, Aug 22, 2014
    Last edited by a moderator: Aug 22, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. server9host

    server9host Well-Known Member

    Joined:
    Sep 18, 2013
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    You need to enable ini_set() on server or create custom php.ini for your single user.
     
  4. mageshm

    mageshm Well-Known Member

    Joined:
    Apr 17, 2014
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chennai, INDIA
    cPanel Access Level:
    DataCenter Provider
    Hi,

    For security reason most of the shared hoster disabled below function globally.

    disable_functions = "phpinfo,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,allow_url_fopen,allow_url_include,ini_set"

    Just create php.ini file corresponding user public_html folder and add the below line to enable ini_set.

    ini_set = on

    If you have root access do the below and remov the ini_set from "disabled_function"

    cp /usr/local/lib/php.ini /home/username/public_html/
     
Loading...

Share This Page