Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php ZPanel cron suhosin.executor.func.blacklist问题_Php_Apache_Cron_Zpanel - Fatal编程技术网

Php ZPanel cron suhosin.executor.func.blacklist问题

Php ZPanel cron suhosin.executor.func.blacklist问题,php,apache,cron,zpanel,Php,Apache,Cron,Zpanel,我已成功将新的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,

我已成功将新的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/confgs/apache/httpd-vhosts.conf中进行更改,但没有成功。以前有人面对过吗


谢谢

编辑/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文件中硬编码的