Your country & currency

Make yourself at home. Choose your preferred shopping currency.

Your selected country opens its KickHost website. Your shopping currency is saved. Visit country website .

Guide

How to Enable or Disable PHP’s allow_url_fopen Using CloudLinux Selector in cPanel

Enable or disable PHP allow_url_fopen using CloudLinux Select PHP Version in cPanel. PHP steps for KickHost customers in South Africa.

Share

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.

You can use CloudLinux Selector to enable or disable the allow_url_fopen directive in cPanel.

1. Log in to your cPanel account.

2. In the Software section, click on Select PHP Version.

Cp cl select php version - How to Enable or Disable PHP's allow_url_fopen Using CloudLinux Selector in cPanel

3. Click on the Options menu.

Cl options menu - How to Enable or Disable PHP's allow_url_fopen Using CloudLinux Selector in cPanel

Note: If the Options page shows an error related to the native PHP version, change it to a non-native version first.

4. For enabling allow_url_fopen, checkmark it. For disabling it, uncheck it.

Cl fopen enable disable - How to Enable or Disable PHP's allow_url_fopen Using CloudLinux Selector in cPanel

Security trade-off

Leave it off unless a plugin needs it. When enabled, a vulnerable script could fetch remote files more easily.

If the Options page shows an error

Switch to a non-native PHP version first, then open Options again.

Choosing PHP settings

Check that your theme and plugins support a PHP version before you switch, and test your site afterwards. If something breaks, switch back to the previous version and contact us.

Frequently asked questions

Should I enable allow_url_fopen? Only if your script or plugin requires it. Otherwise leave it disabled.

Does it affect all my websites? It applies to the PHP settings of the account or domain you are editing.

Related guides

Need cPanel hosting in South Africa? See KickHost hosting plans or contact our team.

Found this useful? Share it.

Need a hand with this?

Our team can help you choose the right domain, hosting or server and set it up properly.

Talk to our team See hosting plans