Question

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

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!


Submit an answer

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!

Sign In or Sign Up to Answer

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