please help me to enable "allow_url_fopen "

GigaGreg

Moderator
Staff member
Make a file called php.ini in your public_html directory or where ever is your site that needs the php.ini and paste this:
PHP:
?allow_url_fopen = on
 

Genesis

Administrator
Staff member
You can also do it directly in your cpanel.

Navigate to SOFTWARE section and click on MultiPHP Ini Editor.

Click on the Editor Mode Tab

Then use the scroller to scroll to the domain for which the setting is needed.

There will be a page that comes up with a line that starts with "1." - type the following code in the line:

Code:
allow_url_fopen = On

Then save the code. It then should tell you that the php.ini file has been successfully updated.
Found the following info that may be useful on the topic and the reason why it is not globally installed on cpanel. cPanel sees it as a security risk. You can read more about this at this link:
https://hetzner.co.za/help-centre/website/what-is-allow_url_fopen-and-what-must-it-be-set-to/
 

jagmag

New member
GigaGreg said:
Make a file called php.ini in your public_html directory or where ever is your site that needs the php.ini and paste this:
PHP:
?allow_url_fopen = on
SOFTWARE section and click on MultiPHP Ini Editor.

tried the both methods above, waited 1 day for cache to refresh, still not working
Severity: WarningMessage: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0