【问题标题】:proc_open is disabled. But not in php.iniproc_open 被禁用。但不在 php.ini 中
【发布时间】:2012-06-17 14:42:16
【问题描述】:

您好,我正在尝试在我的个人 Windows 服务器上使用 php 的 proc_open() 函数,但我收到类似 php 警告的错误:出于安全原因,proc_open 已禁用。

但在 php.ini 中,我已对 disable_functions 进行了注释,并删除了诸如阻止这些函数之类的任何内容。仍然收到这些错误。

可能出了什么问题?

我正在使用 ZPanel 和 Windows 2008。

【问题讨论】:

    标签: php windows function


    【解决方案1】:

    问题出在 Zpanel 的 httpd-vhosts.conf 文件中,实际上我有一个安装了 ZPanel 和 suhosin 的 Windows 2008 Server,所以在 httpd-vhosts.conf 文件中有 php suhosin.func.blackblist = proc_open, 所以我评论了这一行,并从服务中重新启动了 APACHE,现在它可以正常工作了。

    感谢大家花时间阅读和回答!

    【讨论】:

      猜你喜欢
      • 2021-03-09
      • 1970-01-01
      • 1970-01-01
      • 2014-05-13
      • 2015-02-22
      • 2013-05-23
      • 2019-05-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多