Allow_url_fopen

Many a times, when you try to install any CMS (Content Management System) like WordPress, joomla, Magento etc or any custom applications, you get warning like allow_url_fopen needs to be enabled.

In this post, i will help you enable allow_url_fopen module for your website/CMS/Application.

What is Allow_url_fopen?

First let me tell you what’s the need of Allow_url_fopen.

allow_url_fopen allows PHP’s file functions to retrieve data from remote locations such as an FTP server or web site, and if not used properly could lead to code injection vulnerabilities.

How to enable Allow_url_fopen.

There can be multiple ways as it varies and depends on the control panel you are using. But one thing is comman which is, to modify php.ini file by control panel or by editing php.ini directly and update below code in it.

allow_url_fopen = On

Let me tell you about the steps to update allow_url_fopen for cPanel.

  1. Login in cPanel in which domain is present.
  2. Click on MultiPHP INI Editor.
  3. Click on Editor Mode.
  4. Click on drop down and select domain in which you need to enable Allow_url_fopen.
  5. Update or add allow_url_fopen = On in text box.
  6. Now save your changes.
  7. Its done now and you can see the changes in your php.ini file present in public_html folder.
  8. If still, your issue is not resolved then you need to contact server administrator as it may be that module is disabled or not installed on administrator level.
  9. You can check, if all the required module are enabled on server or not by using phpinfo() module.

That’s all you need to know, hope this post was helpful.

Thanks

Please follow and like us:
error

Leave a Reply

Your email address will not be published. Required fields are marked *