On Thu, 4 May 2000, James Xie wrote:

> 
> I used root to do everything, I even changed the httpd.conf file
> (t/conf/httpd.conf) to use root user and users group.
> User  root
> Group users
> 
> But I still have the same problem when I do make test, the following is the
> directory dump, please let me know what permission should
> I change to. 

Try this:
Changes:
User/Group for 'make test' can be overridden with the environment
variables APACHE_USER/APACHE_GROUP

Otherwise do everything as a non-root and then su to install. I've been
bugged by this issue a few times, when working in weird NIS environment.

Watch the access under strace to learn where the problem arises from. 

Please don't post the whole trace, just the relevant bits. What are the
relevant bits? The ones that show where apache stat()'s the
t/docs/test.html file, just like in my original reply to you.


> -rw-r--r--   1 root     users         300 May 18  1998 LoadClass.pm
> drwxr-xr-x   3 root     users        4096 Apr 20 23:43 STAGE
> drwxr-xr-x   2 root     users        4096 Apr 20 23:43 auth
> -rw-r--r--   1 root     users          64 Sep 30  1998 badsyntax.pl
> -rw-rw-r--   1 root     users          87 Apr 29 15:27 blib.pl
> -rw-r--r--   1 root     users       21825 Dec 29  1998 book.gif
> -rw-r--r--   1 root     users           2 Dec  6  1997 content.html
> -rw-r--r--   1 root     users          40 Dec  6  1997 content.shtml
> drwxr-xr-x   2 root     users        4096 Apr 20 23:43 dirmagic
> -rw-r--r--   1 root     users         551 Dec  6  1997 env.iphtml
> -rw-r--r--   1 root     users          12 Dec  6  1997 error.txt
> -rw-rw-rw-   1 root     users           1 Apr 29 15:27 hooks.txt
> -rw-r--r--   1 root     users        1003 Dec  6  1997 lists.ehtml
> -rw-r--r--   1 root     users          30 Mar 19  1998 null.txt
> -rw-r--r--   1 root     users          90 Dec  6  1997 rgy-include.shtml
> -rw-r--r--   1 root     users         619 Sep 21  1998 rl.pl
> drwxr-xr-x   2 root     users        4096 Apr 29 15:27 stacked
> -rw-r--r--   1 root     users         511 Dec  6  1997 stacked.pl
> -rw-r--r--   1 root     users        6149 Apr  6  1999 startup.pl
> drwxr-xr-x   2 root     users        4096 Apr 27 17:02 subr
> -rw-r--r--   1 root     users        3045 Jan 25  1999 test.ep
> -rw-r--r--   1 root     users         566 Dec  6  1997 test.html
> -rw-rw-r--   1 root     users         566 Apr 27 17:00 test.shtml
> 
> -----Original Message-----
> From: Stas Bekman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 04, 2000 2:58 PM
> To: James Xie
> Cc: Doug MacEachern; [EMAIL PROTECTED]
> Subject: RE: Help - Install mod_perl-1.23
> 
> 
> On Thu, 4 May 2000, James Xie wrote:
> 
> > 
> > It seems I have some kind of permission problem but I don't know how to
> > resolve it. Please take a look at the outputs from the commands I run.
> > Really appreciate your help!
> 
> 4145  dup2(15, 2)                       = 2
> 4145  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> 4145  stat("/home/jxie/mod_perl-1.23/t/docs/test.html", 0xbffffabc) = -1
> EACCES (Permission denied)
> 
> File permission problem. Try to run the make test as the same user you
> have created the files with. Your server is running under some user/group
> -- the file /home/jxie/mod_perl-1.23/t/docs/test.html should be readble by
> user or/and group.
> 



______________________________________________________________________
Stas Bekman             | JAm_pH    --    Just Another mod_perl Hacker
http://stason.org/      | mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]  | http://perl.org    http://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
----------------------------------------------------------------------




Reply via email to