• 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 Restriction in effect error after upgrade to Plesk 8

S

sabregroup

Guest
Hey all:

I hope someone can help me here.

I was running Plesk 7.5.4 with no major problems. I decided that it was time to move Plesk 8. The upgrade went relatively smoothly but now some clients are getting the following (or similar) error:

SAFE MODE Restriction in effect. The script whose uid is 10072 is not allowed to access content/counter owned by uid 2527 in /usr/local/psa/home/vhosts/DOMAIN/httpdocs/blog/scripts/sb_fileio.php on line 77

I created a vhost.conf file as follows:

<Directory usr/local/psa/home/vhosts/DOMAIN/httpdocs>
php_admin_flag safe_mode = 0
</Directory>

and then restart apache but no change.

Can someone help me or point me in the right direction to this problem fixed.

I find no forum entries that mention "SAFE MODE Restriction".

Thanks
 
In Hosting Settings of the virtual host (IN PLESK) you will find a selection box safe mode after php, please deselect!
 
Originally posted by pdreissen
In Hosting Settings of the virtual host (IN PLESK) you will find a selection box safe mode after php, please deselect!

Thanks for the quick reply.

I just tried that and no change - still getting this error:

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10072 is not allowed to access content/counter owned by uid 2527 in /usr/local/psa/home/vhosts/xxxxxx.com/httpdocs/blog/scripts/sb_fileio.php on line 77

I get this notifcation in the control panel:

Information: Physical hosting settings on domain xxxxx.com have been updated.

I also restarted Apache with no change.
 
What is the distro you are using ?

Can you find in the domain you deselected the safe_mode option in de conf directory in httpd.include this entry:

php_admin_flag safe_mode off

That should be in there. if not check your php.ini file if this setting is in there!
 
Originally posted by sabregroup

I created a vhost.conf file as follows:

<Directory usr/local/psa/home/vhosts/DOMAIN/httpdocs>
php_admin_flag safe_mode = 0
</Directory>

and then restart apache but no change.

Once you created the vhost.conf file, run:

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domainname

This places the right "include" statement in the httpd.include file.
 
Re: Re: SAFE MODE Restriction in effect error after upgrade to Plesk 8

Thanks to all that replied.

It seems that I had an error in the vhost.conf file.

The proper syntax should have been

<Directory usr/local/psa/home/vhosts/DOMAIN/httpdocs>
php_admin_flag safe_mode off
</Directory>

Of course using the safe mode off switch in the control panel is the proper way to do this (had I known about it)
 
Hi Friends

I am a newbie to the VPS and Plesk control panels. I have been trying hard to move a new build from my local to the VPS server and I am encountered with the following error

mkdir(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /var/www/vhosts/default/htdocs/assets/32546999 owned by uid 48

I am deploying my webapplication which has been done in YII FRAMEWORK php

Can anyone helpme by suggesting how to resolve this bugs

I am hosting my application under the following directory
Current path: / var/ www/ vhosts/ default/ htdocs/

Thanks in advance guys
Rangan
 
Back
Top