SAFE MODE Restriction in effect. The script not allowed to access directory owned by uid
- by user57221
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?