Enable or disable PHP allow_url_fopen in cPanel with the MultiPHP INI Editor: log in to cPanel, open the editor, switch the allow_url_fopen option on or off and save.

allow_url_fopen is a PHP setting. According to the official PHP manual, it enables the URL-aware fopen wrappers, so PHP can open remote files over http or ftp as if they were local files. Some WordPress plugins and scripts need it on.

How to enable or disable allow_url_fopen in cPanel

  1. Log in to your domain.com/cpanel (replace domain.com with your own domain).
  2. Open the MultiPHP INI Editor. You find it in the Software section.
  3. Click the option to enable (or disable) allow_url_fopen. In Basic Mode, first pick your domain or Home Directory from the menu so your settings appear.
  4. Save. In current cPanel the button is called Apply.

Only turn allow_url_fopen on if your site or plugin actually needs it. If you don't need PHP to open remote files, leaving it off is the safer choice.

allow_url_fopen questions

How do I enable allow_url_fopen in cPanel?

Log in to domain.com/cpanel, open the MultiPHP INI Editor, pick your domain, switch on allow_url_fopen and save with Apply. To disable it, switch the same option off and save.

What does allow_url_fopen do?

It lets PHP open URLs with functions like fopen and file_get_contents, the same way it opens local files. Scripts that download remote data or check for updates often need it.

Does the change work for all my domains?

Only for the location you picked in the editor. Choose Home Directory to apply it to all your websites, or one domain to change only that site.

Need a home for your website? See our web hosting.

Related guides

If you have any questions or you need our help, don't hesitate to contact us. Our support team is available 24/7: open a support ticket.

Bu cavab sizə kömək etdi? 0 istifadəçi bunu faydalı hesab edir (6 səs)