QQ 1640076782

2013年12月26日

Warning: shell_exec() has been disabled for security reasons

Filed under: phper — 标签: — lijie @ 2:57 上午

最近刚买了一个新空间,网站上线后发现总是出现以下警告:

Warning: shell_exec() has been disabled for security reasons

in /home/shoesnba/public_html/redsoleshoeses.com/includes/functions/general.php on

line 1486。

意思是shell_exec()这个功能被禁用了,这一看就是配置问题,找到php.ini里面的

disable_functions = exec , popen, system …然后 把这个里面的exec去掉,最后在重启下apache就好了

php.ini exec()函数无法使用

php.ini exec()函数无法使用

原因:在php.ini的 disable_functions配置中,默认exec执行函数都是被 禁止的,需要在php.ini中

disable_functions = exec , popen, system …. ,将你需要用的函数从列表中删掉,然后在重启apache就可以了

如果你有外贸企业网站建站需求,欢迎随时联系我们

QQ客服:415682727

电话:020-39907297

MSN:[email protected]