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)
- Advanced Microservices - 2017-06-19
- Linux Mint Disable “Recently Used” - 2017-04-14
- Ubuntu 16.04 LTS Xen stuck on “Loading Initial Ramdisk” - 2017-04-05