• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

allow_url_fopen from vhost.conf

M

Mandi

Guest
Hello
I am trying to activate the allow_url_fopen for a specif domain in the vhost.conf.
the following lines where placed under the conf/vhost.conf directory:
PHP:
<Directory /home/httpd/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs>
php_admin_value allow_url_fopen 1
</Directory>
I also reconfigure apache with:
/usr/local/psa/admin/sbin/websrvmng -v -a
but still the configuration seems to be not enforced
I get:

Directive Local Value Master Value
allow_url_fopen Off Off
 
Hi,

Use this:

<Directory /home/httpd/vhosts/mydomain.com/subdomains/mysubdomain/httpdocs>
php_admin_flag allow_url_fopen on
</Directory>

Then run /usr/local/psa/admin/sbin/websrvmng -v -a

and possibly restart httpd
 
Back
Top