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

问题描述 投票:2回答:4

我正在使用CentOS 5.6。

当我在Google上找到有关如何在CentOS 5.6中启用shell_exec()的答案时,他们的回答如下:

# nano /etc/php.ini

disable_functions列表中删除shell_exec。但是在我的php.ini文件中显示以下内容:

disable_functions = 

如何在CentOS 5.6中启用shell_exec()功能?

php centos
4个回答
4
投票

确保已禁用SELinux。


2
投票

禁用safe_modesafe_mode应该可用。


0
投票

创建包含以下内容的脚本

shell_exec

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


0
投票

我在互联网上找到了这个:disable_functions =“”

© www.soinside.com 2019 - 2024. All rights reserved.