在主机上启用system()和exec()函数? [英] Enable system() and exec() functions on hosting?

查看:94
本文介绍了在主机上启用system()和exec()函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名开发人员,我在服务器上构建客户端站点,然后在完成后使用PHP脚本将其克隆到客户端服务器。我这次尝试了,但是得到了

I'm a developer and I build client sites on my server and then use a PHP script to clone it to the client's server when finished. I tried this time but am getting an error of


的错误。您的主机不允许使用system()和exec()
函数。

"Your host does not allow the use of the system() and exec() functions."

任何想法如何启用此功能?我具有cpanel访问权限,主机帐户是greengecko.com。安装Wordpress很容易,我只是无法运行此脚本!

Any idea how to enable this? I have cpanel access and the host account is greengecko.com. Installing Wordpress was easy, I just can't run this script!

推荐答案

如果您的主机禁用了这些功能,则将无法进行使他们。您可以考虑与您的主机联系,以查看他们是否将按帐户启用它们,或者如果您正在使用免费主机,则可以考虑升级到其主机的付费版本以启用这些功能。出于安全原因,主机将其禁用。但是,如果要联系您的网络托管服务商或尝试升级到付费托管服务(如果尚未升级),则是唯一的做法。

If your host disabled these functions there will be no way to enable them. You can either consider contacting your host to see if they would enable them for a per account basis or if you are using Free hosting you may consider upgrading to a paid version of their hosting for those functions to be enabled. They are disabled by the host for security reasons. Your only course of action however if to contact your web host or try upgrading to paid hosting(if not already).

这篇关于在主机上启用system()和exec()函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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