Report this

What is the reason for this report?

file_get_contents Remote Server Access Your server is blocking "Remote Server Connection"

Posted on June 5, 2019

Getting the following error: file_get_contents Remote Server Access Your server is blocking “Remote Server Connection”. Please contact your host provider to allow “file_get_contents” php function.

Wordpress, trying to get a YouTube gallery working.

Thanks for any input!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You would generally need to adjust your php configuration to allow_url_fopen.

https://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen

There is a DO Community Tutorial that may assist you.

https://www.digitalocean.com/community/tutorials/how-to-change-your-php-settings-on-ubuntu-14-04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.