RE: Help - Install mod_perl-1.23

2000-05-05 Thread Stas Bekman

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 users4096 Apr 20 23:43 STAGE
 drwxr-xr-x   2 root users4096 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 users4096 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 users1003 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 users4096 Apr 29 15:27 stacked
 -rw-r--r--   1 root users 511 Dec  6  1997 stacked.pl
 -rw-r--r--   1 root users6149 Apr  6  1999 startup.pl
 drwxr-xr-x   2 root users4096 Apr 27 17:02 subr
 -rw-r--r--   1 root users3045 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", 0xbabc) = -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.orghttp://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
--







RE: Help - Install mod_perl-1.23

2000-05-05 Thread James Xie


Thanks, I finally got the problem resolved.  It's the permission problem, I
used Linuxconf to create my account, for some reason it didn't put my
account into users group. 

I changed my group from passwd file directly, login as myself, re-install
mod_perl. Everything was working fine now. 

James








RE: Help - Install mod_perl-1.23

2000-05-04 Thread James Xie


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!

James 

 Helllo,
 
 I recently downloaded Apache_1.3.12 and installed it on Redhat 6.1,
 everything was working fine. I run into problems when I tried to install
 mod_perl-1.23. Everything was compiled ok, but I got error messages (see
 below) when I try to run the make test. I'm new to both Apache and
mod_perl,
 thank you for your help in advance. 

 still waiting for server to warm up...not ok

hmm, what happens if you run:

% make start_httpd
% GET http://localhost:8529/perl/perl-status
% make kill_httpd

Here is what I get:

HTML
HEADTITLEAn Error Occurred/TITLE/HEAD
BODY
H1An Error Occurred/h1
403 Forbidden
/BODY
/HTML


?

you can also get more details on why apache isn't reponding like so:

% make start_httpd
% strace -f -s1024 -o strace.out -p `cat t/logs/httpd.pid`
% make run_tests
% make kill_httpd

have a look at strace.out

Here is the strace.out

4145  accept(16, {sin_family=AF_INET, sin_port=htons(1113),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 4
4145  fcntl(18, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) =
0
4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {0x809cdd4, [],
SA_INTERRUPT|0x400}, 8) = 0
4145  getsockname(4, {sin_family=AF_INET, sin_port=htons(8529),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
4145  setsockopt(4, IPPROTO_TCP1, [1], 4) = 0
4145  brk(0x85ce000)= 0x85ce000
4145  brk(0x85d1000)= 0x85d1000
4145  alarm(300)= 0
4145  read(4, "GET /test.html HTTP/1.0\r\nHost:
localhost:8529\r\nUser-Agent: libwww-perl/5.48\r\n\r\n", 4096) = 79
4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
4145  time(NULL)= 957457364
4145  alarm(300)= 300
4145  alarm(0)  = 300
4145  rt_sigaction(SIGALRM, NULL, {0x809b7c0, [], SA_INTERRUPT|0x400},
8) = 0
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", 0xbabc) = -1
EACCES (Permission denied)
4145  alarm(300)= 0
4145  alarm(0)  = 300
4145  alarm(300)= 0
4145  alarm(0)  = 300
4145  write(4, "HTTP/1.1 403 Forbidden\r\nDate: Thu, 04 May 2000 16:22:44
GMT\r\nServer: Apache/1.3.12 (Unix) mod_perl/1.23
Perl/5.00503\r\nConnection: close\r\nContent-Type: text/html;
charset=iso-8859-1\r\n\r\n!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
2.0//EN\"\nHTMLHEAD\nTITLE403
Forbidden/TITLE\n/HEADBODY\nH1Forbidden/H1\nYou don\'t have
permission to access /test.html\non this server.P\n/BODY/HTML\n", 391)
= 391
4145  time(NULL)= 957457364
4145  write(17, "127.0.0.1 - - [04/May/2000:09:22:44 -0700] \"GET /test.html
HTTP/1.0\" 403 207\n", 77) = 77
4145  alarm(30) = 0
4145  shutdown(4, 1 /* send */) = 0
4145  select(5, [4], NULL, NULL, {2, 0}) = 1 (in [4], left {2, 0})
4145  read(4, "", 512)  = 0
4145  close(4)  = 0
4145  alarm(0)  = 30
4145  rt_sigaction(SIGUSR1, {0x809cdd4, [], SA_INTERRUPT|0x400},
{SIG_IGN}, 8) = 0
4145  alarm(0)  = 0
4145  rt_sigaction(SIGALRM, {0x809b7c0, [], SA_RESTART|0x400},
{0x809b7c0, [], SA_INTERRUPT|0x400}, 8) = 0
4145  fcntl(18, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
0
4145  accept(16, {sin_family=AF_INET, sin_port=htons(1114),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 4
4145  fcntl(18, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) =
0
4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {0x809cdd4, [],
SA_INTERRUPT|0x400}, 8) = 0
4145  getsockname(4, {sin_family=AF_INET, sin_port=htons(8529),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
4145  setsockopt(4, IPPROTO_TCP1, [1], 4) = 0
4145  alarm(300)= 0
4145  read(4, "GET /test.html HTTP/1.0\r\nHost:
localhost:8529\r\nUser-Agent: libwww-perl/5.48\r\n\r\n", 4096) = 79
4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
4145  time(NULL)= 957457365
4145  alarm(300)= 300
4145  alarm(0)  = 300
4145  rt_sigaction(SIGALRM, NULL, {0x809b7c0, [], SA_RESTART|0x400}, 8)
= 0
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", 0xbabc) = -1
EACCES (Permission denied)
4145  alarm(300)= 0
4145  alarm(0)  = 300
4145  alarm(300)= 0
4145  alarm(0)  = 300
4145  write(4, "HTTP/1.1 403 Forbidden\r\nDate: Thu, 04 May 2000 16:22:45
GMT\r\nServer: Apache/1.3.12 (Unix) mod_perl/1.23
Perl/5.00503\r\nConnection: 

RE: Help - Install mod_perl-1.23

2000-05-04 Thread Stas Bekman

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", 0xbabc) = -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.


 
 James 
 
  Helllo,
  
  I recently downloaded Apache_1.3.12 and installed it on Redhat 6.1,
  everything was working fine. I run into problems when I tried to install
  mod_perl-1.23. Everything was compiled ok, but I got error messages (see
  below) when I try to run the make test. I'm new to both Apache and
 mod_perl,
  thank you for your help in advance. 
 
  still waiting for server to warm up...not ok
 
 hmm, what happens if you run:
 
 % make start_httpd
 % GET http://localhost:8529/perl/perl-status
 % make kill_httpd
 
 Here is what I get:
 
 HTML
 HEADTITLEAn Error Occurred/TITLE/HEAD
 BODY
 H1An Error Occurred/h1
 403 Forbidden
 /BODY
 /HTML
 
 
 ?
 
 you can also get more details on why apache isn't reponding like so:
 
 % make start_httpd
 % strace -f -s1024 -o strace.out -p `cat t/logs/httpd.pid`
 % make run_tests
 % make kill_httpd
 
 have a look at strace.out
 
 Here is the strace.out
 
 4145  accept(16, {sin_family=AF_INET, sin_port=htons(1113),
 sin_addr=inet_addr("127.0.0.1")}, [16]) = 4
 4145  fcntl(18, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) =
 0
 4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {0x809cdd4, [],
 SA_INTERRUPT|0x400}, 8) = 0
 4145  getsockname(4, {sin_family=AF_INET, sin_port=htons(8529),
 sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
 4145  setsockopt(4, IPPROTO_TCP1, [1], 4) = 0
 4145  brk(0x85ce000)= 0x85ce000
 4145  brk(0x85d1000)= 0x85d1000
 4145  alarm(300)= 0
 4145  read(4, "GET /test.html HTTP/1.0\r\nHost:
 localhost:8529\r\nUser-Agent: libwww-perl/5.48\r\n\r\n", 4096) = 79
 4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
 4145  time(NULL)= 957457364
 4145  alarm(300)= 300
 4145  alarm(0)  = 300
 4145  rt_sigaction(SIGALRM, NULL, {0x809b7c0, [], SA_INTERRUPT|0x400},
 8) = 0
 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", 0xbabc) = -1
 EACCES (Permission denied)
 4145  alarm(300)= 0
 4145  alarm(0)  = 300
 4145  alarm(300)= 0
 4145  alarm(0)  = 300
 4145  write(4, "HTTP/1.1 403 Forbidden\r\nDate: Thu, 04 May 2000 16:22:44
 GMT\r\nServer: Apache/1.3.12 (Unix) mod_perl/1.23
 Perl/5.00503\r\nConnection: close\r\nContent-Type: text/html;
 charset=iso-8859-1\r\n\r\n!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
 2.0//EN\"\nHTMLHEAD\nTITLE403
 Forbidden/TITLE\n/HEADBODY\nH1Forbidden/H1\nYou don\'t have
 permission to access /test.html\non this server.P\n/BODY/HTML\n", 391)
 = 391
 4145  time(NULL)= 957457364
 4145  write(17, "127.0.0.1 - - [04/May/2000:09:22:44 -0700] \"GET /test.html
 HTTP/1.0\" 403 207\n", 77) = 77
 4145  alarm(30) = 0
 4145  shutdown(4, 1 /* send */) = 0
 4145  select(5, [4], NULL, NULL, {2, 0}) = 1 (in [4], left {2, 0})
 4145  read(4, "", 512)  = 0
 4145  close(4)  = 0
 4145  alarm(0)  = 30
 4145  rt_sigaction(SIGUSR1, {0x809cdd4, [], SA_INTERRUPT|0x400},
 {SIG_IGN}, 8) = 0
 4145  alarm(0)  = 0
 4145  rt_sigaction(SIGALRM, {0x809b7c0, [], SA_RESTART|0x400},
 {0x809b7c0, [], SA_INTERRUPT|0x400}, 8) = 0
 4145  fcntl(18, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
 0
 4145  accept(16, {sin_family=AF_INET, sin_port=htons(1114),
 sin_addr=inet_addr("127.0.0.1")}, [16]) = 4
 4145  fcntl(18, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) =
 0
 4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {0x809cdd4, [],
 SA_INTERRUPT|0x400}, 8) = 0
 4145  getsockname(4, {sin_family=AF_INET, sin_port=htons(8529),
 sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
 4145  setsockopt(4, IPPROTO_TCP1, [1], 4) = 0
 4145  alarm(300)= 0
 4145  read(4, "GET /test.html HTTP/1.0\r\nHost:
 localhost:8529\r\nUser-Agent: libwww-perl/5.48\r\n\r\n", 4096) = 79
 4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
 4145  time(NULL)= 957457365
 4145  alarm(300)= 300
 4145  alarm(0)  = 300
 4145  

RE: Help - Install mod_perl-1.23

2000-05-04 Thread James Xie


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. 

-rw-r--r--   1 root users 300 May 18  1998 LoadClass.pm
drwxr-xr-x   3 root users4096 Apr 20 23:43 STAGE
drwxr-xr-x   2 root users4096 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 users4096 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 users1003 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 users4096 Apr 29 15:27 stacked
-rw-r--r--   1 root users 511 Dec  6  1997 stacked.pl
-rw-r--r--   1 root users6149 Apr  6  1999 startup.pl
drwxr-xr-x   2 root users4096 Apr 27 17:02 subr
-rw-r--r--   1 root users3045 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", 0xbabc) = -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.


 
 James 
 
  Helllo,
  
  I recently downloaded Apache_1.3.12 and installed it on Redhat 6.1,
  everything was working fine. I run into problems when I tried to
install
  mod_perl-1.23. Everything was compiled ok, but I got error messages
(see
  below) when I try to run the make test. I'm new to both Apache and
 mod_perl,
  thank you for your help in advance. 
 
  still waiting for server to warm up...not ok
 
 hmm, what happens if you run:
 
 % make start_httpd
 % GET http://localhost:8529/perl/perl-status
 % make kill_httpd
 
 Here is what I get:
 
 HTML
 HEADTITLEAn Error Occurred/TITLE/HEAD
 BODY
 H1An Error Occurred/h1
 403 Forbidden
 /BODY
 /HTML
 
 
 ?
 
 you can also get more details on why apache isn't reponding like so:
 
 % make start_httpd
 % strace -f -s1024 -o strace.out -p `cat t/logs/httpd.pid`
 % make run_tests
 % make kill_httpd
 
 have a look at strace.out
 
 Here is the strace.out
 
 4145  accept(16, {sin_family=AF_INET, sin_port=htons(1113),
 sin_addr=inet_addr("127.0.0.1")}, [16]) = 4
 4145  fcntl(18, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0})
=
 0
 4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {0x809cdd4, [],
 SA_INTERRUPT|0x400}, 8) = 0
 4145  getsockname(4, {sin_family=AF_INET, sin_port=htons(8529),
 sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
 4145  setsockopt(4, IPPROTO_TCP1, [1], 4) = 0
 4145  brk(0x85ce000)= 0x85ce000
 4145  brk(0x85d1000)= 0x85d1000
 4145  alarm(300)= 0
 4145  read(4, "GET /test.html HTTP/1.0\r\nHost:
 localhost:8529\r\nUser-Agent: libwww-perl/5.48\r\n\r\n", 4096) = 79
 4145  rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
 4145  time(NULL)= 957457364
 4145  alarm(300)= 300
 4145  alarm(0)  = 300
 4145  rt_sigaction(SIGALRM, NULL, {0x809b7c0, [], SA_INTERRUPT|0x400},
 8) = 0
 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", 0xbabc) = -1
 EACCES (Permission denied)
 4145  alarm(300)= 0
 4145  alarm(0)  = 300
 4145  alarm(300)= 0
 4145  alarm(0)  = 3

Re: Help - Install mod_perl-1.23

2000-05-03 Thread Doug MacEachern

On Fri, 28 Apr 2000, James Xie wrote:

 Helllo,
 
 I recently downloaded Apache_1.3.12 and installed it on Redhat 6.1,
 everything was working fine. I run into problems when I tried to install
 mod_perl-1.23. Everything was compiled ok, but I got error messages (see
 below) when I try to run the make test. I'm new to both Apache and mod_perl,
 thank you for your help in advance. 

 still waiting for server to warm up...not ok

hmm, what happens if you run:

% make start_httpd
% GET http://localhost:8529/perl/perl-status
% make kill_httpd

?

you can also get more details on why apache isn't reponding like so:

% make start_httpd
% strace -f -s1024 -o strace.out -p `cat t/logs/httpd.pid`
% make run_tests
% make kill_httpd

have a look at strace.out