Grid Host: open_basedir restriction workaround

[eluser]Dave F[/eluser]
Since I'm using a free shared host and I can't request open_basedir to be deactivated, is it possible to tweak index.php instead to make my site work?

You must be doing something wrong if you get that error. User isnt supposed to use files outside his/her own directory and they would be mad to disable open_basedir. Error you get would be helpfull.

[eluser]Dave F[/eluser]
This is an error I encounter when I access one of the pages.

Warning: is_dir(): open_basedir restriction in effect. File(application) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT) in /www/ on line 93 Warning: require_once(system/codeigniter/CodeIgniter.php): failed to open stream: Operation not permitted in /www/ on line 115 Fatal error: require_once(): Failed opening required 'system/codeigniter/CodeIgniter.php' (include_path='.:/usr/lib/php') in /www/ on line 115

You can check out the site at The front page works but clicking the links produces the error above.

My site works fine on my local server so I assume it is the host's problem.

Ok that is strange.. VIRTUAL_DOCUMENT_ROOT should be your own directory(or they have some kind of tweak, dunno).. But I'm baffled how does the home page work without problems as it includes the same files as the other pages. I think it would be best to give that error to your host.

[eluser]Dave F[/eluser]
I've already posted in their forum.

In my observation, the host has a problem with CI's default URI mapping. For example, and both lead to the front page but, unlike the first, the second URL displays the error. The workaround was enabling CI's query strings support. My links should be working now.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.