Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    471
    Likes Received:
    4
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    471
    Likes Received:
    4
    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 :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice