After our recent transition to MediaTemple, we realized that our homepage wasn’t being updated with our latest Twitter posts. As it turns out, the server has the ability to access remote files disabled by default, which is a good thing to prevent Remote File Injection attacks, but a bad thing if you want your Twitter account to update your homepage ;).
So, to fix this, you’ll need to re-enable it in your php.ini file. If you’re using the (gs) plan, you’ll want to FTP into your domain, go to the root folder, go into the etc folder, and add a file named php.ini with the following contents:
allow_url_fopen = On
This will let file_get_contents() and fopen() have the ability to accept URL’s as an argument.
Latest posts by Thomas Hunter II (see all)
- Online Colorscheme Configurator for i3, i3status, dmenu - 2017-02-08
- A Holistic Approach to Microservices - 2016-12-27
- SF Node November 2016 – Node, Redis, and You! - 2016-11-09