Re: All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev

2002-12-08 Thread Stas Bekman
Richard Curtis wrote:

OK, after following the instructions requested by Stas Bekman, it still 
doesnt work...
Below is a list of everything I have type.  I dont claim to be a major 
expert or anything, so I have included all the commands in full to help 
catch if I missed something :)
[...]

I still can't reproduce this. Though your error_log shows a different 
problem.

after adding "PerlOptions +Autoload" to make the httpd.conf read as 
follows :


PerlOptions +Autoload
LoadModule perl_module 
"/home/richard/modperl-2.0/src/modules/perl/mod_perl.so"


PerlOptions should come *after* you load LoadModule

[...]
__
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: All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev

2002-12-06 Thread Richard Curtis
OK, after following the instructions requested by Stas Bekman, it still 
doesnt work...
Below is a list of everything I have type.  I dont claim to be a major 
expert or anything, so I have included all the commands in full to help 
catch if I missed something :)

in /home/richard/modperl-2.0
modperl-2.0 has the following permissions :

drwxrwxr-x   18 richard  richard  4096 Dec  6 13:47 modperl-2.0

(as root)

perl ./Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1 
MP_TRACE=1

make
make test
(Make test fails)

rm t/logs/error_log

Directory perrmisons as requested :

for t/
drwxrwxr-x   17 richard  richard  4096 Dec  6 13:46 t
for t/hooks
drwxrwxr-x4 richard  richard  4096 Dec  6 13:46 hooks
for t/hooks/TestHooks
drwxrwxr-x3 richard  richard  4096 Dec  6 13:42 TestHooks

after adding "PerlOptions +Autoload" to make the httpd.conf read as 
follows :


PerlOptions +Autoload
LoadModule perl_module 
"/home/richard/modperl-2.0/src/modules/perl/mod_perl.so"


I get :

[root@linux modperl-2.0]# t/TEST -start
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -start
*** server linux:8529 shutdown
/usr/local/apache2/bin/httpd  -d /home/richard/modperl-2.0/t -f 
/home/richard/modperl-2.0/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.43 (prefork MPM)

waiting for server to start: .[Fri Dec 06 13:52:51 2002] [info] 21 
Apache:: modules loaded
[Fri Dec 06 13:52:51 2002] [info] 5 APR:: modules loaded
[Fri Dec 06 13:52:51 2002] [info] base server + 6 vhosts ready to run tests
.
waiting for server to start: ok (waited 1 secs)
server linux:8529 started
server linux:8530 listening (TestDirective::perlmodule)
server linux:8531 listening (TestDirective::perlrequire)
server linux:8532 listening (TestProtocol::eliza)
server linux:8533 listening (TestProtocol::echo)
server linux:8534 listening (TestProtocol::echo_filter)
server linux:8535 listening (TestFilter::input_msg)

Then nothing else !

Attached are both the report and error log as requested.
If there is anything else you want me to do, just shout.
Richard


report
Description: application/java-vm


error_log
Description: application/java-vm


Re: All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev

2002-12-06 Thread Richard Curtis
Hi.
   I have resolved my problems, but I am not sure if this highlights a 
possible error in the make scripts.

I realised I was root, but installing from the directory "/home/richard"
If I did the following as root (in /home/richard):
tar -xzf mod_perl.tar.gz
cd mod_perl...
perl ./Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1
make
make test

all tests fail.
By removing the mod_perlxxx directoy, and redoing all as a normal user 
(richard), this worked fine.

Richard


Hi -

I went through test failures (but not all) recently.

With Stas's help, here's what I did:



Downloaded the CVS source - Stas made a chage that


  ficed my problems. See the 2.0 docs for how-to.



If you did this under root, chown -R user:group mod_perl-2.0


  where user:group is a normal user (does not have to be
  the httpd.conf User/Group) and mod_perl-2.0 is the directory
  in which lies the CVS source.



login as that user.




run your perl Makefile.PL ..., make and make test.




if all is well (I hope), and you are installing a system-wide


  mod_perl, login back in as root _before_ you make install.

Good luck.

Aloha => Beau.

-Original Message-
From: Stephen Clouse [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 3:33 PM
To: Richard Curtis
Cc: [EMAIL PROTECTED]
Subject: Re: All tests fail with Apache/2.0.43 (Unix)
mod_perl/1.99_07-dev


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Dec 05, 2002 at 09:47:04PM +, Richard Curtis wrote:


Hi.
  I have just installed and compiled perl 5.6.1, compiled Apache
2.0.43 (with ssl support), and tried to get mod_perl 1.99_07-dev to
work.

mod_perl compiles, but when I run "make test" all tests fail.

Below is the first bit of output from the t/logs/error_log

I have looked on the newsgroups and google for answers but I am now lost.

Can anybody help to shed some more light on this ?
More info can be made available if people need it.


[snip]


[Thu Dec 05 21:18:23 2002] [error] Can't locate TestHooks/trans.pm in
@INC (@INC contains:
/home/richard/mod_perl-1.99_07/t



More than likely permissions problems on your mod_perl directory --
particularly if you're building mod_perl as root (since Apache runs as
nobody
in that case).

- --
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE97/5MA4aoazQ9p2cRAr/WAKDPF9s8NT8yMJjQKfk1/wka8xFEogCg8nMA
OrvQKgjpKmW12EEU7O3o6AI=
=fHlk
-END PGP SIGNATURE-








RE: All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev

2002-12-05 Thread Beau E. Cox
Hi -

I went through test failures (but not all) recently.

With Stas's help, here's what I did:

> Downloaded the CVS source - Stas made a chage that
  ficed my problems. See the 2.0 docs for how-to.

> If you did this under root, chown -R user:group mod_perl-2.0
  where user:group is a normal user (does not have to be
  the httpd.conf User/Group) and mod_perl-2.0 is the directory
  in which lies the CVS source.

> login as that user.

> run your perl Makefile.PL ..., make and make test.

> if all is well (I hope), and you are installing a system-wide
  mod_perl, login back in as root _before_ you make install.

Good luck.

Aloha => Beau.

-Original Message-
From: Stephen Clouse [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 3:33 PM
To: Richard Curtis
Cc: [EMAIL PROTECTED]
Subject: Re: All tests fail with Apache/2.0.43 (Unix)
mod_perl/1.99_07-dev


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Dec 05, 2002 at 09:47:04PM +, Richard Curtis wrote:
> Hi.
>I have just installed and compiled perl 5.6.1, compiled Apache
> 2.0.43 (with ssl support), and tried to get mod_perl 1.99_07-dev to
> work.
>
> mod_perl compiles, but when I run "make test" all tests fail.
>
> Below is the first bit of output from the t/logs/error_log
>
> I have looked on the newsgroups and google for answers but I am now lost.
>
> Can anybody help to shed some more light on this ?
> More info can be made available if people need it.
[snip]
> [Thu Dec 05 21:18:23 2002] [error] Can't locate TestHooks/trans.pm in
> @INC (@INC contains:
>  /home/richard/mod_perl-1.99_07/t

More than likely permissions problems on your mod_perl directory --
particularly if you're building mod_perl as root (since Apache runs as
nobody
in that case).

- --
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE97/5MA4aoazQ9p2cRAr/WAKDPF9s8NT8yMJjQKfk1/wka8xFEogCg8nMA
OrvQKgjpKmW12EEU7O3o6AI=
=fHlk
-END PGP SIGNATURE-





Re: All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev

2002-12-05 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Dec 05, 2002 at 09:47:04PM +, Richard Curtis wrote:
> Hi.
>I have just installed and compiled perl 5.6.1, compiled Apache 
> 2.0.43 (with ssl support), and tried to get mod_perl 1.99_07-dev to 
> work.
> 
> mod_perl compiles, but when I run "make test" all tests fail.
> 
> Below is the first bit of output from the t/logs/error_log
> 
> I have looked on the newsgroups and google for answers but I am now lost.
> 
> Can anybody help to shed some more light on this ?
> More info can be made available if people need it.
[snip]
> [Thu Dec 05 21:18:23 2002] [error] Can't locate TestHooks/trans.pm in 
> @INC (@INC contains:
>  /home/richard/mod_perl-1.99_07/t 

More than likely permissions problems on your mod_perl directory --
particularly if you're building mod_perl as root (since Apache runs as nobody
in that case).

- -- 
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE97/5MA4aoazQ9p2cRAr/WAKDPF9s8NT8yMJjQKfk1/wka8xFEogCg8nMA
OrvQKgjpKmW12EEU7O3o6AI=
=fHlk
-END PGP SIGNATURE-



Re: All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev

2002-12-05 Thread yo _
maybe its failing becuase it needs the module TestHooks::Trans. Try 
installing that perl module (you most likely don't have it since you have a 
clean perl 5.6.1 installation) and then run the tests again. I'm only half 
sure about this.
-rian






From: Richard Curtis <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev
Date: Thu, 05 Dec 2002 21:47:04 +

Hi.
   I have just installed and compiled perl 5.6.1, compiled Apache 2.0.43   
  (with ssl support), and tried to get mod_perl 1.99_07-dev to work.

mod_perl compiles, but when I run "make test" all tests fail.

Below is the first bit of output from the t/logs/error_log

I have looked on the newsgroups and google for answers but I am now lost.

Can anybody help to shed some more light on this ?
More info can be made available if people need it.

Thanks
Richard

[Thu Dec 05 21:18:22 2002] [info] Init: Initializing OpenSSL library
[Thu Dec 05 21:18:22 2002] [info] Init: Seeding PRNG with 0 bytes of 
entropy
[Thu Dec 05 21:18:22 2002] [info] Init: Generating temporary RSA private 
keys (512/1024 bi
ts)
[Thu Dec 05 21:18:22 2002] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Thu Dec 05 21:18:22 2002] [warn] Init: Session Cache is not configured 
[hint: SSLSessionC
ache]
[Thu Dec 05 21:18:22 2002] [info] Init: Initializing (virtual) servers for 
SSL
[Thu Dec 05 21:18:22 2002] [info] Server: Apache/2.0.43, Interface: 
mod_ssl/2.0.43, Librar
y: OpenSSL/0.9.6g
END in modperl_extra.pl, pid=6928
[Thu Dec 05 21:18:22 2002] [info] Init: Initializing OpenSSL library
[Thu Dec 05 21:18:22 2002] [info] Init: Seeding PRNG with 0 bytes of 
entropy
[Thu Dec 05 21:18:22 2002] [info] Init: Generating temporary RSA private 
keys (512/1024 bi
ts)
[Thu Dec 05 21:18:23 2002] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Thu Dec 05 21:18:23 2002] [info] Init: Initializing (virtual) servers for 
SSL
[Thu Dec 05 21:18:23 2002] [info] Server: Apache/2.0.43, Interface: 
mod_ssl/2.0.43, Librar
y: OpenSSL/0.9.6g
[Thu Dec 05 21:18:23 2002] [notice] Apache/2.0.43 (Unix) 
mod_perl/1.99_07-dev Perl/v5.6.1
mod_ssl/2.0.43 OpenSSL/0.9.6g configured -- resuming normal operations
[Thu Dec 05 21:18:23 2002] [info] Server built: Dec  5 2002 20:29:02
[Thu Dec 05 21:18:23 2002] [debug] prefork.c(1039): AcceptMutex: sysvsem 
(default: sysvsem
)
[Thu Dec 05 21:18:23 2002] [error] Can't locate TestHooks/trans.pm in @INC 
(@INC contains:
 /home/richard/mod_perl-1.99_07/t 
/home/richard/mod_perl-1.99_07/blib/lib/Apache2 /home/ri
chard/mod_perl-1.99_07/blib/arch/Apache2 
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/A
pache2 /home/richard/mod_perl-1.99_07/Apache-Test/lib 
/home/richard/mod_perl-1.99_07/lib /
home/richard/mod_perl-1.99_07/blib/lib 
/home/richard/mod_perl-1.99_07/blib/arch /home/rich
ard/mod_perl-1.99_07/t/response /home/richard/mod_perl-1.99_07/t/protocol 
/home/richard/mo
d_perl-1.99_07/t/hooks /home/richard/mod_perl-1.99_07/t/filter 
/home/richard/mod_perl-1.99
_07/t/htdocs/testdirective/perlmodule-vh 
/home/richard/mod_perl-1.99_07/t/htdocs/testdirec
tive/main /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 
/usr/local/lib/
perl5/site_perl/5.6.1/i686-linux /usr/local/lib/perl5/site_perl/5.6.1 
/usr/local/lib/perl5
/site_perl) at (eval 18) line 3.


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



All tests fail with Apache/2.0.43 (Unix) mod_perl/1.99_07-dev

2002-12-05 Thread Richard Curtis
Hi.
   I have just installed and compiled perl 5.6.1, compiled Apache 
2.0.43 (with ssl support), and tried to get mod_perl 1.99_07-dev to 
work.

mod_perl compiles, but when I run "make test" all tests fail.

Below is the first bit of output from the t/logs/error_log

I have looked on the newsgroups and google for answers but I am now lost.

Can anybody help to shed some more light on this ?
More info can be made available if people need it.

Thanks
Richard

[Thu Dec 05 21:18:22 2002] [info] Init: Initializing OpenSSL library
[Thu Dec 05 21:18:22 2002] [info] Init: Seeding PRNG with 0 bytes of entropy
[Thu Dec 05 21:18:22 2002] [info] Init: Generating temporary RSA private 
keys (512/1024 bi
ts)
[Thu Dec 05 21:18:22 2002] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Thu Dec 05 21:18:22 2002] [warn] Init: Session Cache is not configured 
[hint: SSLSessionC
ache]
[Thu Dec 05 21:18:22 2002] [info] Init: Initializing (virtual) servers 
for SSL
[Thu Dec 05 21:18:22 2002] [info] Server: Apache/2.0.43, Interface: 
mod_ssl/2.0.43, Librar
y: OpenSSL/0.9.6g
END in modperl_extra.pl, pid=6928
[Thu Dec 05 21:18:22 2002] [info] Init: Initializing OpenSSL library
[Thu Dec 05 21:18:22 2002] [info] Init: Seeding PRNG with 0 bytes of entropy
[Thu Dec 05 21:18:22 2002] [info] Init: Generating temporary RSA private 
keys (512/1024 bi
ts)
[Thu Dec 05 21:18:23 2002] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Thu Dec 05 21:18:23 2002] [info] Init: Initializing (virtual) servers 
for SSL
[Thu Dec 05 21:18:23 2002] [info] Server: Apache/2.0.43, Interface: 
mod_ssl/2.0.43, Librar
y: OpenSSL/0.9.6g
[Thu Dec 05 21:18:23 2002] [notice] Apache/2.0.43 (Unix) 
mod_perl/1.99_07-dev Perl/v5.6.1
mod_ssl/2.0.43 OpenSSL/0.9.6g configured -- resuming normal operations
[Thu Dec 05 21:18:23 2002] [info] Server built: Dec  5 2002 20:29:02
[Thu Dec 05 21:18:23 2002] [debug] prefork.c(1039): AcceptMutex: sysvsem 
(default: sysvsem
)
[Thu Dec 05 21:18:23 2002] [error] Can't locate TestHooks/trans.pm in 
@INC (@INC contains:
 /home/richard/mod_perl-1.99_07/t 
/home/richard/mod_perl-1.99_07/blib/lib/Apache2 /home/ri
chard/mod_perl-1.99_07/blib/arch/Apache2 
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/A
pache2 /home/richard/mod_perl-1.99_07/Apache-Test/lib 
/home/richard/mod_perl-1.99_07/lib /
home/richard/mod_perl-1.99_07/blib/lib 
/home/richard/mod_perl-1.99_07/blib/arch /home/rich
ard/mod_perl-1.99_07/t/response 
/home/richard/mod_perl-1.99_07/t/protocol /home/richard/mo
d_perl-1.99_07/t/hooks /home/richard/mod_perl-1.99_07/t/filter 
/home/richard/mod_perl-1.99
_07/t/htdocs/testdirective/perlmodule-vh 
/home/richard/mod_perl-1.99_07/t/htdocs/testdirec
tive/main /usr/local/lib/perl5/5.6.1/i686-linux 
/usr/local/lib/perl5/5.6.1 /usr/local/lib/
perl5/site_perl/5.6.1/i686-linux /usr/local/lib/perl5/site_perl/5.6.1 
/usr/local/lib/perl5
/site_perl) at (eval 18) line 3.