【问题标题】:ZPanel cron suhosin.executor.func.blacklist issueZPanel cron suhosin.executor.func.blacklist 问题
【发布时间】:2015-01-04 01:03:18
【问题描述】:

我已成功将新的 cron 作业添加到 ZPanel:

abc_com/app/cronaction.php

我发现它运行在 /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

我的问题是 cronaction.php 需要使用 'exec',那么我在哪里可以更改 suhosin.executor.func.blacklist 以删除 'exec'?我试图更改 /etc/zpanel/configs/apache/httpd-vhosts.conf 但没有运气。有人遇到过这种情况吗?

谢谢!

【问题讨论】:

    标签: php apache cron zpanel


    【解决方案1】:

    编辑/etc/zpanel/panel/modules/cron/code/controller.ext.php

    然后寻找:-

    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
    

    从代码中删除 exec。它实际上是在 php 文件中硬编码的。

    【讨论】:

      猜你喜欢
      • 2013-11-02
      • 1970-01-01
      • 1970-01-01
      • 2014-12-12
      • 2012-05-16
      • 2011-04-17
      • 2014-09-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多