This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Anyone got mod_perl working?


Hallo Dan,

Am 2002-01-02 um 08:57 schriebst du:

> has anyone out there got mod_perl working under cygwin?

Yes (I guess).

> I'd love to see your notes.

> At the moment, I get stuck during the "make test" phase. The error_log is

`make test' failed for me too, but after installing apache the server runs
and some basic tests with perl-scripts are working.

The User and Group must exist:

#Configuration directives specific to mod_perl
ServerRoot ./t
User nobody
Group nogroup
Port 8529
ServerName localhost
DocumentRoot ./t/docs

I changed this to use absolute paths and then I get another error:

#Configuration directives specific to mod_perl
ServerRoot /stuff/web/apache/modperl/t
User nobody
Group nogroup
Port 8529
ServerName localhost
DocumentRoot /stuff/web/apache/modperl/t/docs

error_log:
...
/var/run/httpd.scoreboard: Permission denied
Cannot open scoreboard file:

Now I added below PidFile in the test httpd.conf file:
ScoreBoardFile logs/httpd.scoreboard

The test is running now, but many failures.

Main problem in the first row are wrong paths (IMO):
...
[Wed Jan  2 16:53:53 2002] [error] ./t/net/perl/action.pl/LoadClass.pm not found or unable to stat
[Wed Jan  2 16:53:55 2002] [error] [client 127.0.0.1] script not found or unable to stat: ./t/net/perl/cgi.pl

I changed all ./t into absolute paths and get this now (all tests successful):
==============================================================================
$ make test
...
cp t/conf/mod_perl_srm.conf t/conf/srm.conf
../apache_1.3.20/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/bin/perl t/TEST 0
../blib/lib ../blib/arch /usr/lib/perl5/5.6.1/cygwin-multi /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/cygwin-multi /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl ../.
modules/actions.......ok                                                     
modules/cgi...........ok                                                     
modules/constants.....ok                                                     
modules/cookie........skipped test on this platform
modules/embperl.......skipped test on this platform
modules/eperl.........skipped test on this platform
modules/file..........ok                                                     
modules/httpdconf.....ok                                                     
modules/include.......ok                                                     
modules/log...........ok                                                     
modules/module........skipped test on this platform
modules/perlrun.......ok                                                     
modules/perlrunxs.....skipped test on this platform
modules/psections.....ok                                                     
modules/request.......skipped test on this platform
modules/sandwich......skipped test on this platform
modules/src...........ok                                                     
modules/ssi...........ok                                                     
modules/stage.........skipped test on this platform
modules/status........ok                                                     
modules/symbol........ok                                                     
modules/uri...........ok                                                     
modules/util..........ok                                                     
internal/api..........ok                                                     
internal/auth.........ok                                                     
internal/croak........ok                                                     
internal/dirmagic.....ok                                                     
internal/error........ok                                                     
internal/headers......ok                                                     
internal/hooks........ok                                                     
internal/http-get.....ok 4/16Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 388.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 389.
Use of uninitialized value in hex at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 390.
internal/http-get.....ok 7/16Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 388.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 389.
Use of uninitialized value in hex at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 390.
internal/http-get.....ok 8/16Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 388.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 389.
Use of uninitialized value in hex at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 390.
internal/http-get.....ok 9/16Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 388.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 389.
Use of uninitialized value in hex at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 390.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 388.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 389.
Use of uninitialized value in hex at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 390.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 388.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 389.
Use of uninitialized value in hex at /usr/lib/perl5/site_perl/5.6.1/Net/HTTP.pm line 390.
internal/http-get.....ok                                                     
internal/http-post....ok                                                     
internal/proxy........ok                                                     
internal/redirect.....ok                                                     
internal/rwrite.......ok                                                     
internal/stacked......ok                                                     
internal/table........ok                                                     
internal/taint........ok                                                     
All tests successful, 8 tests skipped.
Files=38, Tests=402, 114 wallclock secs (22.19 cusr + 34.70 csys = 56.89 CPU)
uh,oh httpd dumped core!

make: *** [run_tests] Error 2


And in error_log:
=================
[Wed Jan  2 17:28:43 2002] [warn] pid file /stuff/web/apache/modperl/t/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[notice] Destruction->DESTROY called for $global_object
Subroutine fileparse_set_fstype redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 153.
Subroutine fileparse redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 167.
Subroutine basename redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 224.
Subroutine dirname redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 237.
[Wed Jan  2 17:28:46 2002] [warn] [notice] child_init for process 653, report any problems to [no address given]

[Wed Jan  2 17:29:10 2002] [warn] [client 127.0.0.1] log __ANON__ OK
Use of uninitialized value in subroutine entry at /stuff/web/apache/modperl/t/net/perl/api.pl line 222, <fh00001b> line 1.
*** The following [error] is expected, no cause for alarm ***
[Wed Jan  2 17:29:49 2002] [error] Missing right curly or square bracket at /stuff/web/apache/modperl/t/docs/badsyntax.pl line 9, at end of line
syntax error at /stuff/web/apache/modperl/t/docs/badsyntax.pl line 9, at EOF
Compilation failed in require at /stuff/web/apache/modperl/t//docs/startup.pl line 251, <fh00001b> line 1.

*** The following [error] is expected, no cause for alarm ***
[Wed Jan  2 17:29:50 2002] [error] Apache::Death at /dev/null line 0

*** The following [error] is expected, no cause for alarm ***
[Wed Jan  2 17:29:51 2002] [error] Missing right curly or square bracket at /stuff/web/apache/modperl/t/docs/badsyntax.pl line 9, at end of line
syntax error at /stuff/web/apache/modperl/t/docs/badsyntax.pl line 9, at EOF
Compilation failed in require at /stuff/web/apache/modperl/t//docs/startup.pl line 251, <fh00001b> line 1.

*** The following [error] is expected, no cause for alarm ***
[Wed Jan  2 17:29:52 2002] [error] Apache::Death at /dev/null line 0

[Wed Jan  2 17:30:14 2002] [error] Syswrite error. Bytes wrote=2080. Real bytes sent = 2085

[Wed Jan  2 17:30:15 2002] [error] Syswrite error. Bytes wrote=160. Real bytes sent = 165

[Wed Jan  2 17:30:15 2002] [error] Syswrite error. Bytes wrote=80. Real bytes sent = 85

[Wed Jan  2 17:30:16 2002] [error] Syswrite error. Bytes wrote=80. Real bytes sent = 85

[Wed Jan  2 17:30:16 2002] [error] Syswrite error. Bytes wrote=80. Real bytes sent = 85

[Wed Jan  2 17:30:17 2002] [error] Syswrite error. Bytes wrote=80. Real bytes sent = 85


What is this `Syswrite error'?

Further investigation desired;)

Gerrit
-- 
=^..^=                                        mailto:gp@familiehaase.de


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]