• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Safe mode subdomain

ErwanG

Regular Pleskian
Hello,

I've a problem with safe mode in a subdomain.
I've put "safe mode" OFF with the control panel to the main domain.
But when i execute files, i've always the message :

PHP Warning: dir(): SAFE MODE Restriction in effect. The script whose uid is 10005 is not allowed to access /var/www/vhosts/<domain>/subdomains/visuels/httpdocs/ owned by uid 10006...

I've create a vhost.conf in "/var/www/vhosts/<domain>/subdomains/visuels/conf" with

<Directory "/var/www/vhosts/<domain>/subdomains/visuels/httpdocs">
php_admin_flag safe_mode off
</Directory>

And after :

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

And

service httpd restart

But it doesn't work. Always safe mode problem.

A solution ?

Thank you.
 
I have the same problem but with fcgi.

Main domain is in fcgi with safe_mode OFF, but on all subdomains i got safe_mode ON and no option to turn it OFF via Plesk (9.5.4).

I need help couse i have to install Magento on a subdomain with fcgi (e.g. shop.example.com) and Magento wnats safe_mode OFF.
 
It's ok now.

Thank you.

Any chance you could enlighten some of us as to how you managed to resolve this?

I've been fighting with this for a while. At one point, it was off, but now it's on again. Many files in the /var/www/vhosts/<$DOMAIN>/conf folder that have php_safe_mode on and most have it off. The most current config files are off. The Plesk Panel shows it's unchecked (meaning off) for safe_mode for the domain, yet PHPINFO( INFO_ALL) states that it's on.

Thanks,
Geoff
 
Back
Top