Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.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 如何在CentOS 5.6中启用shell_exec()函数?_Php_Centos - Fatal编程技术网

Php 如何在CentOS 5.6中启用shell_exec()函数?

Php 如何在CentOS 5.6中启用shell_exec()函数?,php,centos,Php,Centos,我使用的是CentOS 5.6 当我用谷歌搜索如何在CentOS 5.6中启用shell_exec()时,他们的回答如下: # nano /etc/php.ini disable_functions = 从禁用功能列表中删除shell\u exec。但在我的php.ini文件中,显示了以下内容: # nano /etc/php.ini disable_functions = 如何在CentOS 5.6中启用shell\u exec()函数?创建包含以下内容的脚本 <?php p

我使用的是CentOS 5.6

当我用谷歌搜索如何在CentOS 5.6中启用
shell_exec()
时,他们的回答如下:

# nano /etc/php.ini
disable_functions = 
禁用功能列表中删除shell\u exec。但在我的php.ini文件中,显示了以下内容:

# nano /etc/php.ini
disable_functions = 

如何在CentOS 5.6中启用
shell\u exec()
函数?

创建包含以下内容的脚本

<?php
phpinfo();
?>


并查看是否有其他php.ini文件

禁用和
shell\u exec
应可用。

确保您的SELinux已禁用。

我在Internet上发现:
disable_functions=“”

安全模式已禁用,而shell_exec未启用。。。我该怎么办?那到底什么不起作用?使用
shell_exec
时是否有错误消息?phpinfo()的/etc结果中只有一个php.ini;我有两台服务器。代码与两台服务器相同。在一台服务器上它正在运行,但在另一台服务器上它没有运行。还有其他线索吗?这是个糟糕的答案