Enable allow_url_fopen through WHM panel

PHP is a scripting language used by developers to build websites. ‘url_fopen’ refers to a PHP directive allowing files to be included from external sources. It will creates the security risk for all domains hosted on the servers by enabling the allow_url_fopen.

  1. Go to WHM panel
  2. Search MultiPHP INI Editor
  3. Select Editor Mode then select the php version in Edit the INI settings of a PHP version
  4. Search allow_url_fopen, make it as On as follows below:

Note: If your website does not require ‘allow_url_fopen’ you can simply make that directive is set to ‘Off’.

Allow_url_fopen: On

Then save changes, after that restart the Apache server to take changes effect.


I hope this article will helps you!

  • 1 Users Found This Useful
Was this answer helpful?