Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

php - system() has been disabled error message

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

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.

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).

For more info - http://www.php.net/manual/en/ini.core.php#ini.disable-functions


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...