Page 1 of 1

Easy thing: opendir()

Posted: Wed May 27, 2009 9:26 pm
by support_mx
I have this error message:
Warning: opendir(/var/spool/vm/d/1/in) [function.opendir]: failed to open dir: Permission denied in /var/www/html/astmail/folder.class.php on line 48
couldn't open directory

what could be the problem directories have 755

what is worng?

thank you

Re: Easy thing: opendir()

Posted: Thu May 28, 2009 9:47 am
by support_mx
I was searching for a solution, I did'nt find anything
maybe the directory (/var/spool/vm/d/1/in) is not visible by apache, so thats why the application cannot work.

another solution: copy the files from (/var/spool/vm/d/1/in) to (/var/www/), throught cron job, or another languaje like jsp, but if i do this i will be inside of antoher problem 'permissions' a user can only see his folder... no any one.... so if i move those files to www folder it will be public....suggestions??
Ex:
User1: (/var/spool/vm/d/1/in)
User2: (/var/spool/vm/d/2/in)
User3: (/var/spool/vm/d/3/in)

Re: Easy thing: opendir()

Posted: Thu May 28, 2009 2:06 pm
by pickle
Maybe it's not just the "in" directory you need to check, but also directories further up the path.

Re: Easy thing: opendir()

Posted: Fri May 29, 2009 1:19 pm
by support_mx
pickle wrote:Maybe it's not just the "in" directory you need to check, but also directories further up the path.
I think you mean copy the 'in' directory and files directories inside it, to 'www' folder ... dunno :?

Re: Easy thing: opendir()

Posted: Fri May 29, 2009 2:09 pm
by pickle
No, I mean maybe it's not the permissions on the 'in' directory that are causing the problems. Maybe it's the "1", "d", "vm", or "spool" directories. /var/spool/ is usually used by printing right? Maybe Apache doesn't have rights to that directory.

Re: Easy thing: opendir()

Posted: Fri May 29, 2009 2:30 pm
by Weirdan
pickle wrote:/var/spool/ is usually used by printing right?
Not necessary printing, it's used for all kinds of spools... mail spool, printer spool, cron spool, etc.