system()已被禁用错误消息 [英] system() has been disabled error message

查看:163
本文介绍了system()已被禁用错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将wordpress网站复制到正确的域,但是在查看它时收到以下错误消息:

I have copied a wordpress website over to the correct domain but I get the following error message when I go to view it:

Warning: system() has been disabled for security reasons in /home/paddocch/public_html/wildlionmedia.co.uk/wp-includes/cron.php on line 262

http://www.wildlionmedia.co.uk/

有什么解决方法的想法吗?

Any idea how to resolve it?

推荐答案

system()函数用于允许PHP在系统的命令行shell上执行命令.您的新托管服务已禁用该功能,因为它可能是一个漏洞.

The system() function is used to allow PHP to execute commands on the system's command line shell. Your new hosting service has disabled that feature because it can be a vulnerability.

您需要检出php.ini文件并搜索标题为disable_functions的条目.其中有一个已禁用的功能列表.您可以从列表中删除所需的内容(包括system()函数.

You'll want to check out your php.ini file and search for an entry titled - disable_functions. In there there are a list of functions that have been disabled. You can remove what you want from the list (including the system() function.

如果您无权访问php.ini文件,则必须与您的托管服务提供商联系,并要求他们启用该功能(或禁用限制).

If you do not have access to your php.ini file, you'll have to talk to your hosting provider and ask them to enable that feature (or disable to limitation).

有关更多信息- http://www. php.net/manual/en/ini.core.php#ini.disable-functions

这篇关于system()已被禁用错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆