You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jonathan Vafai <jo...@nyu.edu> on 2000/06/15 05:40:20 UTC

corrupted output

Hi-

I've been using mod_perl for a few months now.

Our site just went into production, and now that
we're getting a bit of use out of it, we're
occasionally seeing people get pages with
improperly formatted HTML and sometimes
headers are showing up in the output, and
the rest of the page gets rendered as text,
not HTML.


Essentially, this is our configuration:

<Location /perl-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
PerlFreshRestart On
PerlModule Apache::DBI
PerlRequire /usr/local/apache/conf/startup.pl


The startup.pl has our most commonly used modules
preloaded...nothing too complicated.  

Can anyone suggest where to look to fix this?

(One thing i should mention is that we're getting
a lot of defunct httpd processes, b/c I think I have
bad forks/execs sprinkled in the code)
Jon 

start up message

Posted by Jie Gao <J....@isu.usyd.edu.au>.
Hi All,

-- config info -----------------------------------------------------------
Apache/1.3.12 (Unix) mod_perl/1.24
$  perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris
    uname='sunos duo 5.7 generic_106541-11 sun4u sparc sunw,ultra-60 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc -B/usr/ccs/bin/', optimize='-O3', gccversion=2.95.2 19991024 (release)
    cppflags='-I/usr/local/include -I/opt/local/include'
    ccflags ='-I/usr/local/include -I/opt/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/opt/local/lib'


Characteristics of this binary (from libperl): 
  Built under solaris
  Compiled at Jun 14 2000 20:30:20
  @INC:
    /usr/local/lib/perl5/5.00503/sun4-solaris
    /usr/local/lib/perl5/5.00503
    /usr/local/lib/perl5/site_perl/5.005/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.005
-------------------------------------------------------------------------


I am getting the following message at start-up:

$ ../bin/apachectl configtest
Subroutine handler redefined at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Apache/Registry.pm line 27.
Subroutine compile redefined at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Apache/Registry.pm line 173.
Subroutine parse_cmdline redefined at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Apache/Registry.pm line 189.
Subroutine DESTROY redefined at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Apache/Registry.pm line 213.
Syntax OK

The same config worked fine with Apache 1.3.6/mod_perl/1.21.

Thanks,



Jie


One cgi test fails w/ "CGI open of tmpfile: Permission denied"

Posted by Jie Gao <J....@isu.usyd.edu.au>.
Hi All,

I have had the subject problem just now. And there is no specific
answer about a solution in the archive. The one that got me
out of this problem is:

chmod 1777 /var/tmp



Jie

------------------------------------------------------------------
make test output:

 $ TEST -v modules/cgi.t
 modules/cgi.........module CGI is installed
 1..5
 ok 1
 ok 2
 ok 3
 ServerError:
 CGI open of tmpfile: Permission denied