dotcraq3249 2015-01-04 01:03
浏览 60
已采纳

ZPanel cron suhosin.executor.func.blacklist问题

I have successfully added new cron job to ZPanel:

abc_com/app/cronaction.php

And I found it is running at /var/log/cron:

php -d suhosin.executor.func.blacklist="passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" -d open_basedir="/var/zpanel/hostdata/zadmin/:/var/zpanel/temp/" /var/zpanel/hostdata/zadmin/public_html/abc_com/app/cronaction.php

My problem is the cronaction.php needs to use 'exec', so where can I change the suhosin.executor.func.blacklist to remove the 'exec'? I have tried to change in /etc/zpanel/configs/apache/httpd-vhosts.conf but no luck. Anyone face this before?

Thanks!

  • 写回答

1条回答 默认 最新

  • duandazhen7306 2015-02-28 14:02
    关注

    Edit /etc/zpanel/panel/modules/cron/code/controller.ext.php

    And look for :-

    php -d suhosin.executor.func.blacklist="passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec" -d
    

    Remove exec from the code. It is actually hard-coded in php file.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器