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 关于腾讯云服务器中,PHP页面无法打开的问题
  • ¥60 如何把照片修复成原始拍摄图
  • ¥80 Exited too quickly (process log may have details)
  • ¥15 爬知乎登录之后内容加载不出来
  • ¥15 怎么用protues测量通频带
  • ¥15 zepelin使用sparkInterpreter 异常
  • ¥15 paho mqtt 接收不到消息
  • ¥15 函数r关于两个分量y,z方向上的图像,分开画r随y的图像,r随z的图像
  • ¥15 如何用Matlab求Pearcey函数的数值积分?