{"id":50485,"date":"2026-11-20T05:24:10","date_gmt":"2026-11-20T05:24:10","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-enable-or-disable-phps-allow_url_fopen-using-cloudlinux-selector-in-cpanel\/"},"modified":"2026-11-28T09:02:46","modified_gmt":"2026-11-28T09:02:46","slug":"how-to-enable-or-disable-phps-allow_url_fopen-using-cloudlinux-selector-in-cpanel","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-enable-or-disable-phps-allow_url_fopen-using-cloudlinux-selector-in-cpanel\/","title":{"rendered":"How to Enable or Disable PHP&#8217;s allow_url_fopen Using CloudLinux Selector in cPanel"},"content":{"rendered":"<p>The allow_url_fopen option lets PHP scripts open files from web addresses. Some plugins need it, while turning it off can improve security. You can change it in Select PHP Version.<\/p>\n<p>You can use CloudLinux Selector to enable or disable the <strong>allow_url_fopen<\/strong> directive in cPanel.<\/p>\n<p><strong>1<\/strong>. Log in to your cPanel account.<\/p>\n<p><strong>2<\/strong>. In the <strong>Software<\/strong> section, click on <strong>Select PHP Version<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/cp-cl-select-php-version-icon.gif\" loading=\"lazy\" alt=\"\"><\/p>\n<p><strong>3<\/strong>. Click on the <strong>Options<\/strong> menu.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/cl-options-menu.gif\" loading=\"lazy\" alt=\"\"><\/p>\n<p><strong>Note<\/strong>: If the <strong>Options<\/strong> page shows an error related to the native PHP version, change it to a non-native version first.<\/p>\n<p><strong>4<\/strong>. For enabling <strong>allow_url_fopen<\/strong>, checkmark it. For disabling it, uncheck it.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/cl-fopen-enable-disable.gif\" loading=\"lazy\" alt=\"\"><\/p>\n<h2>Security trade-off<\/h2>\n<p>Leave it off unless a plugin needs it. When enabled, a vulnerable script could fetch remote files more easily.<\/p>\n<h2>If the Options page shows an error<\/h2>\n<p>Switch to a non-native PHP version first, then open Options again.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>Should I enable allow_url_fopen?<\/strong> Only if your script or plugin requires it. Otherwise leave it disabled.<\/p>\n<p><strong>Does it affect all my websites?<\/strong> It applies to the PHP settings of the account or domain you are editing.<\/p>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-enable-or-disable-php-extensions-using-the-cloudlinux-selector-in-cpanel\/\">Enable PHP extensions<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-change-the-php-version-via-cloudlinux-selector-in-cpanel\/\">Change the PHP version<\/a><\/li>\n<\/ul>\n<p>Need cPanel hosting in Kenya? <a href=\"https:\/\/kickhost.com\/en-ke\/web-hosting\/\">See KickHost hosting plans<\/a> or <a href=\"https:\/\/kickhost.com\/en-ke\/contact\/\">contact our team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable or disable PHP allow_url_fopen using CloudLinux Select PHP Version in cPanel. Steps for KickHost customers in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50485","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial"}],"about":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/types\/kickhost_tutorial"}],"version-history":[{"count":3,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50485\/revisions"}],"predecessor-version":[{"id":53371,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50485\/revisions\/53371"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}