Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support disable_functions PHP.INI

  • disable_functions PHP.INI

    Posted by gairhald on March 24, 2017 at 16:15

    HI, pandora shows this warning

    problems to disable functions in php.ini

    ….disable_functions contains the functions system() or exec() in php.ini file.

    please change this configuration in your php.ini etc etc

    but, if i look for this function in this file, i find:

    ;

     This directive allows you to disable certain functions for security reasons.
    ; It receives a comma-delimited list of function names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-functions
    disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
    
    ; This directive allows you to disable certain classes for security reasons.
    ; It receives a comma-delimited list of class names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-classes
    disable_classes =

    but in disable_functions not see “system()” or “exec()”, how i can remove this warning from pandora console? thanks a lot

    gairhald replied 8 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • antonio

    Member
    March 24, 2017 at 16:31
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello garihald,

    Have you made any changes in your php.ini or php versions? Or when this started happening?

    By default, the token “disable_functions” is empty, so to correct the issue I suggest you to start with an empty value on that variable and add one by one all the values that you have currently, so you can detect which is the one that is causing that warning.
    Don’t forget that you may need to restart the apache service after applying changes.

    Kind regards,
    Antonio.

  • gairhald

    Member
    March 27, 2017 at 18:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Antonio,

    I don’t know when starts this issue, because this pandora was created before me, sooo i don’t know why this variable is full or functions :/

    Maybe I try to apply your solution, thanks a lot