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 configuration EasyApache 4

Discussion in 'EasyApache' started by Karl1, Dec 27, 2016.

Tags:
  1. Karl1

    Karl1 Member

    Joined:
    Jul 14, 2011
    Messages:
    24
    Likes Received:
    2
    Trophy Points:
    53
    Location:
    Sunny Tenerife
    cPanel Access Level:
    Root Administrator
    HI,

    CSF tool recommends to go to

    "Check php for disable_functions
    [/opt/cpanel/ea-php55/root/usr/bin/php]"

    and

    "You should modify the PHP configuration and disable commonly abused php functions, e.g.:
    disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open"

    I went to /opt/cpanel/ea-php55/root/etc/php.ini and added that but has no effect.

    Please help to understand (im on a centos 7 with easyapache 4)

    thanks
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You are using EasyApache 4 on your server and there is multiple php.ini and local.ini files manage your system's PHP. Each version of PHP on your systems uses its own php.ini and local.ini file. You must make changes to each file separately.

    You have to edit php.ini file through WHM
    Login to WHM >> Home >> Software >> MultiPHP INI Editor

    Please refer this URL for more information : How to Edit Your php.ini File - cPanel Knowledge Base - cPanel Documentation
     
    linux4me2 and Karl1 like this.
  3. Karl1

    Karl1 Member

    Joined:
    Jul 14, 2011
    Messages:
    24
    Likes Received:
    2
    Trophy Points:
    53
    Location:
    Sunny Tenerife
    cPanel Access Level:
    Root Administrator
    Thanks for the explanation!

    Does this also means that I can define one version of php for one of the websites and therefore have different settings?


     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - Disable Functions configuration
  1. webdatago
    Replies:
    3
    Views:
    96
  2. keat63
    Replies:
    5
    Views:
    93
  3. furquan
    Replies:
    3
    Views:
    93
  4. AndyX
    Replies:
    21
    Views:
    1,339
  5. postcd
    Replies:
    1
    Views:
    323

Share This Page