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.
- Login in cPanel in which domain is present.
- Click on MultiPHP .
- Click on Editor Mode.
- Click on drop down and select domain in which you need to enable Allow_url_fopen.
- Update or add allow_url_fopen = On in text box.
- Now save your changes.
- Its done now and you can see the changes in your php.ini file present in public_html folder.
- 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.
- 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.