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 请问Ubuntu要怎么安装chrome呀?
  • ¥15 视频编码 十六进制问题
  • ¥15 Xsheii7我安装这个文件的时候跳出来另一个文件已锁定文件的无一部分进程无法访问。这个该怎么解决
  • ¥15 unity terrain打包后地形错位,跟建筑不在同一个位置,怎么办
  • ¥15 FileNotFoundError 解决方案
  • ¥15 uniapp实现如下图的图表功能
  • ¥15 u-subsection如何修改相邻两个节点样式
  • ¥30 vs2010开发 WFP(windows filtering platform)
  • ¥15 服务端控制goose报文控制块的发布问题
  • ¥15 学习指导与未来导向啊