CodeIgniter Forums
opendir error using db caching - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: opendir error using db caching (/showthread.php?tid=16498)



opendir error using db caching - El Forum - 03-08-2009

[eluser]cairo140[/eluser]
Hello community!

I'm working on a website that's using database query caching. I've run into two issues:

1) I seem to be getting a whole bunch of PHP safe mode permission errors about directory ownership:

Quote:ERROR - 2009-03-08 09:01:44 --&gt; Severity: Warning --&gt; fopen() [<a href='function.fopen'>function.fopen</a>]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /mydomain/httpdocs/db-cache/blog+display owned by uid 48 /mydomain/httpdocs/testsite/system/helpers/file_helper.php 90

I turned safe mode off, and it seemed to resolve the issue, but I'm getting the nagging feeling that safe mode shouldn't be off... Is there a workaround or something I overlooked?

2) When I do turn safe mode off, I get another error when CI tries to access the cache (I think):

Quote:ERROR - 2009-03-08 19:45:02 --&gt; Severity: Warning --&gt; opendir(../db-cache/news+view) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory /mydomain/httpdocs/testsite/system/helpers/file_helper.php 126

Any help would be greatly appreciated!!!


opendir error using db caching - El Forum - 03-09-2009

[eluser]pistolPete[/eluser]
Are file permissions set correctly?


opendir error using db caching - El Forum - 03-09-2009

[eluser]cairo140[/eluser]
I tried 755, 777... no luck