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
- Log in to Plesk (the address, usually
https://your-server:8443, is in your welcome email). - Go to Websites & Domains, find the domain and click PHP.
- Find
allow_url_fopenin the settings and set it to on or off. - 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.