PHP – http:// wrapper is disabled in the server configuration by allow_url_fopen=0

If you find these 2 errors in the error log.

  • …file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in…
  • …failed to open stream: no suitable wrapper could be found in…

 

Edit the php.ini and enable the following 2 settings.

allow_url_fopen = On
allow_url_include = On

 

Restart Apache and they should be fixed.

Done =)

Reference:

Advertisement

2 thoughts on “PHP – http:// wrapper is disabled in the server configuration by allow_url_fopen=0”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.