SAFE MODE Restriction in effect. The script not allowed to access directory owned by uid
Posted
by
user57221
on Server Fault
See other posts from Server Fault
or by user57221
Published on 2011-11-16T09:50:26Z
Indexed on
2011/11/16
9:59 UTC
Read the original article
Hit count: 243
I am running a dedicated server with multiple websites. I have created a global directory for common scripts for all websites, rather than repeating them in every website directory.
How can I make this global directory accessible for all website. I am getting following error.
Warning: require_once() [function.require-once]: SAFE MODE Restriction in effect. The script whose uid is XXXX is not allowed to access /vhosts/globallibrary/Zend/Application.php owned by uid XXXX
I have change the ownership of global directory for X website. so it works fine for X website. latter I added another website Y Now I am getting the same error again. If I change the CHOWN for Y website then X website will have the same error.
I don't want to disable the safemode restriction. Is there a work around, so that this global dir will be accessible by all website.
I am getting following error in my browser when I try to access global directory. Global directory is on same level as all other websites.
Is this a good practice to enable safemode for websites?
© Server Fault or respective owner