How to enable or disable allow_url_fopen in cPanel

Sometimes, few application required allow_url_fopen need to be on. As allow_url_fopen is managed by PHP.ini, we don’t allow it globally. However, It can be changed from cPanel by following these steps:

  1. Login to cPanel
  2. Go to PHP Selector from Software Section.

  3. Now click on the Select PHP Version. In the next page, you will see Current PHP version and if you see current version is native php. You need to change the PHP version.



    From Current PHP version drop-down select any other PHP version other than native. After selecting PHP version, click on the “Set as current”



  4. Now click on the “Options” and you will see allow_url_fopen. By default it’s enabled.



    That’s it! Now you will see it’s enabled in your application.
  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

How to recover a lost cPanel Password?

If you lost your cPanel password or the one provided in the welcome email does not work, you can...

How to change PHP version from cPanel?

D-WEBHOST is using Cloudlinux for Security and Stability. Cloudlinux has a great feature that...

How to disable directory listing in cPanel?

The LiteSpeed web servers default behaviour allows users visiting your website to see the...

How to add new domain to existing hosting package ?

Login to cPanel. You can do that from the details in your email sent by d-Webhost or from...

How to increase the PHP Memory limit using .htaccess?

By default, a PHP script can allocate up to 128 megabytes of memory. You can modify this limit by...