Jump to content

Including Files From Root


Recommended Posts

I am trying to include files outside of the include scope. Currently the sites on the server I'm working on are setup in these directories /var/www/vhosts/{site_name}/{available_include_area} I want to redirect all requests from /var/www/vhosts/{site_name}/httpdocs/admin/(request_uri} to /var/www/base_admin/{request_uri} I'm doing this by dropping an .htaccess file in each of the sites admin directory. I thought I could just change ownership to the apache user but I get this error:

/var/www/base_admin/index.php Warning: include(): open_basedir restriction in effect. File(/var/www/base_admin/index.php) is not within the allowed path(s): (/var/www/vhosts/{the_site}.com/:/tmp/) in
I've tried google and looking through my php.ini and httpd.conf files but couldn't find anything i thought would do the trick. Anyone know what I could use?Side note- I thought about creating Symlinks for each site but I don't want to have to do that for each. Would that work though?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...