Re: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-07-14 Thread Stas Bekman
Rob Bloodgood wrote:
Tuesday, June 24, 2003, 1:51:51 PM, you wrote:
JS Rob Bloodgood [EMAIL PROTECTED] writes:
JS [...]

*** root mode: changing the fs ownership to 'nobody' (99:99)
/usr/sbin/httpd -X -d /root/.cpan/build/Apache-Test-1.03/t -f
/root/.cpan/build/Apache-Test-1.03/t/conf/httpd 

JS Is the docroot (/root/.cpan/.../t/httpd.conf) inside 
JS a directory that nobody can read from?  Probably
JS not, from the looks of it.

JS Try moving the Apache-Test-1.03 directory to /tmp and
JS see if you have better luck there.
Good spot!  I changed permissions so 'nobody' could access the .cpan
dir, and it immediately worked perfectly.  Apache::Test and
libapreq-1.2 now installed here!
Yup, Philippe has mentioned this to me as well. When run as 'root', we do 
change the perms within the current distro dir, but we don't check whether the 
parent dirs have the read perms. I will add this check and make the program 
fail with an appropriate error if that's the case. e.g.:

The directory /root/foo/Apache-Test-1.03 is not readable by user 'nobody', 
either make sure that all the dirs up to /root/foo/Apache-Test-1.03 are 
readable by that user, or move the whole tree to some other directory (e.g. 
/tmp) or run 'make test' as non-root!

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-26 Thread Rob Bloodgood
Wednesday, June 18, 2003, 2:13:46 AM, you wrote:

SB I've uploaded 1.03's release candidate. If nobody finds any faults, I'll 
SB upload it tomorrow on CPAN. (libapreq needs to rely on 1.03 fixes to 
release 
SB its 1.2's version).

SB Please try it out:
SB http://www.apache.org/~stas/Apache-Test-1.03-dev.tar.gz

SB Test it with mod_perl 1.0:

SB perl Makefile.PL -httpd /path/to/1.x/httpd  make test

Fails for me miserably.  For some reason, the test server config
returns 403 on / and /index.html:

t/logs/error_log:
[Tue Jun 24 13:02:22 2003] [info] created shared memory segment #589827

t/logs/access_log:
127.0.0.1 - - [24/Jun/2003:13:02:23 -0700] GET /index.html HTTP/1.0 403 208
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] GET / HTTP/1.0 403 198
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] GET / HTTP/1.0 403 198
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] GET / HTTP/1.0 403 198
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] GET / HTTP/1.0 403 198
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] HEAD / HTTP/1.0 403 0
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] HEAD / HTTP/1.0 403 0
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] HEAD / HTTP/1.0 403 0
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] GET / HTTP/1.0 403 198
127.0.0.1 - - [24/Jun/2003:13:02:24 -0700] GET / HTTP/1.0 403 198

This occurs on *multiple* Linux systems.  I'm using Apache-1.3.27 and
mod_perl 1.27 on all of them.  The above log files are absolutely
identical on all of them except for the timestamps.

I'm listing their system names and perl -V outputs below, for
reference.

I poked around in the Apache::Test tree for a minute, and found a
variable in TestRequest called $DebugLWP.  Setting that to true made
the output only slightly more informative, but did confirm 403 status
on the test requests:

[EMAIL PROTECTED] Apache-Test-1.03]# make test

/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
APACHE_USER= APXS= APACHE_PORT= APACHE_GROUP= APACHE= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -verbose=0 
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -verbose=0
*** root mode: changing the fs ownership to 'nobody' (99:99)
/usr/sbin/httpd -X -d /root/.cpan/build/Apache-Test-1.03/t -f 
/root/.cpan/build/Apache-Test-1.03/t/conf/httpd
.conf -DAPACHE1 
using Apache/1.3.24 

waiting for server to start: .
waiting for server to start: ok (waited 0 secs)
server localhost.localdomain:8529 started
#lwp request:
#GET http://localhost.localdomain:8529/index.html HTTP/1.0
#User-Agent: libwww-perl/5.69
#
#server response:
#HTTP/1.1 403 Forbidden
#Connection: close
#Date: Tue, 24 Jun 2003 20:02:23 GMT
#Server: Apache/1.3.24 (Unix) mod_perl/1.26
#Content-Length: 208
#Content-Type: text/html; charset=iso-8859-1
#Client-Date: Tue, 24 Jun 2003 20:02:23 GMT
#Client-Peer: 127.0.0.1:8529
#Title: 403 Forbidden
#X-Content-Length-Note: added by Apache::TestRequest
#
ping...ok
request# Failed test 1 in request.t at line 11
# Failed test 5 in request.t at line 16
# Failed test 8 in request.t at line 20
# Failed test 9 in request.t at line 22
FAILED tests 1, 5, 8-9
Failed 4/9 tests, 55.56% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
request.t  94  44.44%  1 5 8-9
*** server localhost.localdomain:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1

So... What more can I check?  What more can I report?  I'm definitely
no newbie but I don't know my way around this code... I can send
anything you need, or try anything.

Thanks in advance!

L8r,
Rob

=
System listings and perl -V outputs.

1) Linux RedHat 6.2

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
osname=linux, osvers=2.2.5-22smp, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2 09:11:51 
edt 1999 i686 unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 
release)
cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
stdchar='char', d_stdstdio=undef, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lposix -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary 

Re[2]: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-26 Thread Rob Bloodgood
Tuesday, June 24, 2003, 1:51:51 PM, you wrote:

JS Rob Bloodgood [EMAIL PROTECTED] writes:

JS [...]

 *** root mode: changing the fs ownership to 'nobody' (99:99)
 /usr/sbin/httpd -X -d /root/.cpan/build/Apache-Test-1.03/t -f
 /root/.cpan/build/Apache-Test-1.03/t/conf/httpd 

JS Is the docroot (/root/.cpan/.../t/httpd.conf) inside 
JS a directory that nobody can read from?  Probably
JS not, from the looks of it.

JS Try moving the Apache-Test-1.03 directory to /tmp and
JS see if you have better luck there.

Good spot!  I changed permissions so 'nobody' could access the .cpan
dir, and it immediately worked perfectly.  Apache::Test and
libapreq-1.2 now installed here!

L8r,
Rob



Re: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-19 Thread Ged Haywood
Hi Stas,

On Wed, 18 Jun 2003, Stas Bekman wrote:

 Please try it out:
 http://www.apache.org/~stas/Apache-Test-1.03-dev.tar.gz

Neat!

73,
Ged.

Script started on Wed Jun 18 13:29:03 2003
hurricane:~/src/Apache-Test-1.03-dev$  t/TEST -times=10 -order=random
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -times=10 -order=random
/usr/local/apache/bin/httpd -X -d 
/home/ged_demountable/src/Apache-Test-1.03-dev/t -f 
/home/ged_demountable/src/Apache-Test-1.03-dev/t/conf/httpd.conf -DAPACHE1 
using Apache/1.3.27 

waiting for server to start: .
waiting for server to start: ok (waited 0 secs)
server localhost:8529 started
*** Using random number seed: 894127215 (autogenerated)

[snip]

All tests successful.
Files=20, Tests=120, 10 wallclock secs ( 7.25 cusr +  1.44 csys =  8.69 CPU)
*** server localhost:8529 shutdown
hurricane:~/src/Apache-Test-1.03-dev$  
Script done on Wed Jun 18 13:29:26 2003



Re: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-19 Thread Stas Bekman
Stas Bekman wrote:
I've uploaded 1.03's release candidate. If nobody finds any faults, I'll 
upload it tomorrow on CPAN. (libapreq needs to rely on 1.03 fixes to 
release its 1.2's version).

Please try it out:
http://www.apache.org/~stas/Apache-Test-1.03-dev.tar.gz
Thank you all very much for testing this release candidate. Apache::Test 1.03 
is propogating to CPAN mirrors at this very moment.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


[RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-18 Thread Stas Bekman
I've uploaded 1.03's release candidate. If nobody finds any faults, I'll 
upload it tomorrow on CPAN. (libapreq needs to rely on 1.03 fixes to release 
its 1.2's version).

Please try it out:
http://www.apache.org/~stas/Apache-Test-1.03-dev.tar.gz
Test it with mod_perl 1.0:
perl Makefile.PL -httpd /path/to/1.x/httpd  make test
and with mod_perl 2.0:
perl Makefile.PL -httpd /path/to/2.x/httpd  make test
Alternatively you can do:
APACHE=/path/to/1.x/httpd perl Makefile.PL  make test
or for C-style shell users:
env APACHE=/path/to/1.x/httpd perl Makefile.PL  make test
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-18 Thread Steve Hay
Stas Bekman wrote:
I've uploaded 1.03's release candidate. If nobody finds any faults, 
I'll upload it tomorrow on CPAN. (libapreq needs to rely on 1.03 fixes 
to release its 1.2's version).

Please try it out:
http://www.apache.org/~stas/Apache-Test-1.03-dev.tar.gz 
Tests OK for me - Windows XP / Perl 5.8.0 / Apache 1.3.27 / mod_perl 1.27



Re: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-18 Thread Sergey V. Stashinskas
Hi,

5.0-RELEASE FreeBSD, apache 1.3.27, mod_perl 1.27, perl 5.8.0

All tests successful.


-Original Message-
From: Stas Bekman [EMAIL PROTECTED]
To: modperl@perl.apache.org,httpd-test-dev list [EMAIL PROTECTED]
Date: Wed, 18 Jun 2003 19:13:46 +1000
Subject: [RELEASE CANDIDATE] Apache::Test 1.03-dev

 
 I've uploaded 1.03's release candidate. If nobody finds any faults, I'll 
 upload it tomorrow on CPAN. (libapreq needs to rely on 1.03 fixes to release 
 its 1.2's version).
 
 Please try it out:
 http://www.apache.org/~stas/Apache-Test-1.03-dev.tar.gz
 
 Test it with mod_perl 1.0:
 
 perl Makefile.PL -httpd /path/to/1.x/httpd  make test
 
 and with mod_perl 2.0:
 
 perl Makefile.PL -httpd /path/to/2.x/httpd  make test
 
 Alternatively you can do:
 
 APACHE=/path/to/1.x/httpd perl Makefile.PL  make test
 
 or for C-style shell users:
 
 env APACHE=/path/to/1.x/httpd perl Makefile.PL  make test
 
 __
 Stas BekmanJAm_pH -- Just Another mod_perl Hacker
 http://stason.org/ mod_perl Guide --- http://perl.apache.org
 mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
 http://modperlbook.org http://apache.org   http://ticketmaster.com
 
 


Re: [RELEASE CANDIDATE] Apache::Test 1.03-dev

2003-06-18 Thread David Wheeler
On Wednesday, June 18, 2003, at 05:13  AM, Stas Bekman wrote:
I've uploaded 1.03's release candidate. If nobody finds any faults, 
I'll upload it tomorrow on CPAN. (libapreq needs to rely on 1.03 fixes 
to release its 1.2's version).

Please try it out:
http://www.apache.org/~stas/Apache-Test-1.03-dev.tar.gz
Well done. All nicely installed, all tests pass. I especially liked 
seeing this during `make install`:

  unlink /usr/local/lib/perl5/site_perl/5.8.0/darwin/Apache/test.pm
mod_perl 1.27 / Apache 1.3.27 / Perl 5.8 / Mac OS X 10.2.6.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED]  ICQ: 15726394
http://kineticode.com/ Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]
Kineticode. Setting knowledge in motion.[sm]