{"id":2254,"date":"2019-07-12T12:27:16","date_gmt":"2019-07-12T12:27:16","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=2254"},"modified":"2023-01-16T10:23:42","modified_gmt":"2023-01-16T10:23:42","slug":"how-to-enable-or-disable-allow_url_fopen-in-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-enable-or-disable-allow_url_fopen-in-cpanel\/","title":{"rendered":"How to enable or disable allow_url_fopen in cPanel"},"content":{"rendered":"<p>There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to enable or disable <strong>allow_url_fopen<\/strong>.<\/p>\n<h3 id=\"what-is-allow_url_fopen\">What is allow_url_fopen?<\/h3>\n<p>The <strong>allow_url_fopen<\/strong> is a setting managed through the PHP Options which allows PHP file functions to retrieve data from remote locations over FTP or HTTP. This option is a significant security risk, thus, do not turn it on without necessity.<\/p>\n<h3 id=\"how-to-enable-or-disable-allow_url_fopen-in-cpanel\">How to Enable or Disable allow_url_fopen in cPanel<\/h3>\n    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThe PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account&#8217;s cPanel.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:<\/p>\n<p class=\"p1\">Watch the video tutorial, or continue following the step-by-step instructions in this tutorial.<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/W3z-CbxXpiA\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><strong>1)\u00a0<\/strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into cPanel<\/a>.<\/p>\n<p><strong>2)<\/strong> Look for the <em>SOFTWARE<\/em> section and click on\u00a0<strong>Select PHP version<\/strong><\/p>\n<figure id=\"attachment_7674\" aria-describedby=\"caption-attachment-7674\" style=\"width: 643px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7674\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-783x298.png\" alt=\"PHP Version\" width=\"643\" height=\"245\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-783x298.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-300x114.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-768x292.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-50x19.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-1536x584.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-60x23.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-100x38.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version.png 1740w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-7674\" class=\"wp-caption-text\">Software &gt; Select PHP Version<\/figcaption><\/figure>\n<p><strong>3)<\/strong> Click on the <strong>Options<\/strong> link in the new window.<\/p>\n<figure id=\"attachment_7720\" aria-describedby=\"caption-attachment-7720\" style=\"width: 643px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7720\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-783x246.png\" alt=\"\" width=\"643\" height=\"202\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-783x246.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-300x94.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-768x242.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-50x16.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-1536x483.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-2048x644.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-60x19.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-100x31.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-7720\" class=\"wp-caption-text\">PHP Selector &gt; Options<\/figcaption><\/figure>\n<p><strong>4)<\/strong> You can locate the <strong>allow_url_fopen<\/strong> and tick on the box next to it to enable it or un-tick the box to disable it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7719\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-783x299.png\" alt=\"allow_url_fopen\" width=\"643\" height=\"246\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-783x299.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-300x115.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-768x294.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-50x19.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-1536x587.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-2048x783.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-60x23.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/allow_url_fopen-100x38.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>5)<\/strong> Once you make any changes, please do a left-hand side click anywhere outside the dropdown or text input box. If the change were successful, you would see a green box with a message confirming that the change has been applied.<\/p>\n<p>That&#8217;s all! Now you know how to enable or disable allow_url_fopen in cPanel.<\/p>\n<p class=\"p1\">If you enjoyed this tutorial, then you\u2019ll love our support! All ChemiCloud\u2019s hosting plans include 24\/7 support from our fantastic support team. Check out our\u00a0<a href=\"https:\/\/chemicloud.com\/pricing#60b65e4e63b58\"><span class=\"s1\"><b>web hosting<\/b><\/span><\/a>\u00a0plans and have your website migrated for free today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to enable or disable allow_url_fopen. What is allow_url_fopen? The allow_url_fopen is a setting managed through the PHP Options which allows PHP&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[173],"ht-kb-tag":[],"class_list":["post-2254","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-php-configuration"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=2254"}],"version-history":[{"count":11,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2254\/revisions"}],"predecessor-version":[{"id":7721,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2254\/revisions\/7721"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=2254"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=2254"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=2254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}