Pandora FMS Community

disable_functions PHP.INI

gairhald · 24 mar 2017, 16:15 · 3 mensajes · 276 visitas

  1. Inicio del debate

    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

  2. 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.

  3. 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

Entra en tu cuenta para publicar.