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.

SOLVED disable_functions in PHP.INI

Discussion in 'Security' started by furquan, Jul 21, 2017.

Tags:
  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    461
    Likes Received:
    3
    Trophy Points:
    168
    Hello Everyone,

    I am currently trying to setup CSF on my server and section where in it tells us to disable_functions in the PHP Configuration, no matter how many times i enter the details, After every restart of Apache those settings are gone :(

    disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open

    I am running various version of PHP and i have changed this variable in all the php.ini files :-

    /opt/cpanel/ea-php71/root/etc/php.ini
    /opt/cpanel/ea-php70/root/etc/php.ini
    /opt/cpanel/ea-php56/root/etc/php.ini
    /opt/cpanel/ea-php55/root/etc/php.ini

    But after they go away after Apache restart.

    Can somebody tell me what am i doing wrong ?

    Thank you for your time
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,029
    Likes Received:
    1,277
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify which version of cPanel is installed on your system, and which PHP handler you are using for each version of PHP?

    Thank you.
     
  4. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    461
    Likes Received:
    3
    Trophy Points:
    168
    Thank you so very much for getting back Michale,

    The issue has been resolved and i have managed to do it as SysSachin suggested !

    Thank you both of you :)
     
    cPanelMichael likes this.
Loading...

Share This Page