Updated: 28 September 2026 · Applies to: Plesk Obsidian 18.0 (and CloudLinux PHP Selector where installed)

allow_url_fopen lets PHP open remote URLs as files. Some applications need it; turn it off if yours does not, as it is often abused by malicious scripts.

Steps

  1. Log in to Plesk (the address, usually https://your-server:8443, is in your welcome email).
  2. Go to Websites & Domains, find the domain and click PHP.
  3. Find allow_url_fopen in the settings and set it to on or off.
  4. Click OK or Apply.

If your server uses CloudLinux PHP Selector, you can also make these changes in its Select PHP Version page; otherwise use Plesk's own PHP settings as shown here.

Related services

Plesk server management

installation, migrations and monthly plans with no lock-in.

cPanel, Plesk and LiteSpeed licences

for VPS and dedicated servers, with installation help on demand.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket