Assuming that you have a plesk dedicated server and a domain hosted on it, and you need allow_url_fopen to be “ON” (enabled). Just follow the below steps to get this done.
Create a vhost.conf file under /home/httpd/vhost/domain.com/conf and add the following code.
<Directory /home/httpd/vhost/domain.com/httpdocs/>
php_admin_value allow_url_fopen On
</Directory>
Once done, you will have reconfigure plesk and the command to do so is:
root# /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com
Now, restart apache on the server.
That’s it!
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.



