Skip to main content

Alterações feitas no MultiPHP INI não são aplicadas

Comments

7 comments

  • cPanelLauren
    Oi @pootz Voc" pode nos mostrar exatamente o que est" entrando e onde? Deveria ser: disable_functions = phpinfo
    Para todas as vers"es do php. Voc" tamb"m pode confirmar que n"o h" um arquivo php.ini, local.ini ou user.ini na raiz dos documentos dos dom"nios sem essa diretiva disable_functions presente? ======================================================================= Hi @pootz Can you show us exactly what you're entering and where? It should be: disable_functions = phpinfo
    For all versions of php. Can you also confirm there is not a php.ini, local.ini or user.ini file in the documentroot of the domains without this disable_functions directive present?
    0
  • pootz
    Ol", eu acessei o WHM como root e a partir da homepage acessei: Software > MultiPHP INI Editor > Editor Mode > PHP 5.4 > no campo de texto procurei por disable_functions e deixei da seguinte forma: [PHP]disable_functions = phpinfo,passthru,shell_exec,system,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,[/PHP] e cliquei em salvar. Fiz o mesmo procedimento para as vers"es 5.6 e 7.2. Mas ao acessar um dom"nio que cont"m phpinfo, ele continua funcionando. Segundo o phpinfo do dom"nio que estou usando para testes, o Loaded Configuration File fica em /opt/cpanel/ea-php56/root/etc/php.ini N"o encontrei nenhum arquivo php.ini, local.ini ou user.ini na pasta ra"z do dom"nio.
    0
  • cPanelLauren
    Ol", Obrigado por essa informa""o, voc" tamb"m est" usando o PHP-FPM? Em caso afirmativo, voc" pode verificar a configura""o para disable_functions aqui, indo para /opt/cpanel/ea-phpXX/root/etc/php-fpm.d/domain.tld.conf Se voc" adicionar o phpinfo a disable_functions aqui, voc" tamb"m obt"m o mesmo resultado? Obrigado! ======================================================================= Hello, Thank you for that information, are you also using PHP-FPM? If so can you check the configuration for disable_functions here by going to /opt/cpanel/ea-phpXX/root/etc/php-fpm.d/domain.tld.conf If you add the phpinfo to disable_functions here do you also get the same result? Thanks!
    0
  • pootz
    Ol", Sim, tenho o PHP-FPM ativo em todos os dom"nios. Tentei incluir o phpinfo no disable_functions do arquivo que voc" mandou o caminho, mas a fun""o continuou funcionando.
    0
  • cPanelLauren
    Ol", Voc" pode por favor garantir que voc" reinicie o PHP-FPM depois de fazer a modifica""o? Se isso n"o funcionar, sinta-se " vontade para abrir um ticket conosco usando o link em minha assinatura, uma vez aberto, por favor poste o ID do ticket aqui para que possamos atualizar este t"pico com o resultado. Obrigado! =================================== Hello, Can you please ensure that you restart PHP-FPM after making the modification? If that doesn't work please feel free to open a ticket with us using the link in my signature, once opened please post the Ticket ID here so that we can update this thread with the outcome. Thanks!
    0
  • pootz
    Era isso mesmo :D Eu estava reiniciando somente o Apache, mas nunca o PHP-FPM. Obrigado pela ajuda. :)
    0
  • cPanelLauren
    Eu estou t"o feliz que reiniciar o PHP-FPM resolveu o problema para voc"! ================================ I see - I'm so happy that restarting PHP-FPM resolved the issue for you!
    0

Please sign in to leave a comment.