• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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