Re: Problem with modperl
Hello Escario, Tuesday, April 10, 2001, 6:41:49 PM, you wrote: EJ> Hello, EJ> I've compiled mod_perl as a Apache module with apxs after I installing EJ> apache. EJ> So I load mod_perl with this in the httpd.conf : EJ> LoadModule Perllibexec/modperl.so EJ> Next apache restart correctly ... EJ> When I try to get any of the web page, Netscpe return me : EJ> This document contains no data ... EJ> but why ? EJ> thanks I've got similiar effects. It helped me USE_LARGEFILES=0 (at perl Makefile.PL of mod_perl) as I compiled earlier Perl without large files. I use Apache 1.3.19, mod_perl 1.25, perl 5.6. -- Best regards, Mirek mailto:[EMAIL PROTECTED]
Re: Problem with modperl
Hi there, I've had similar problems before with a stock install of Redhat 6.x and their installation of apache + mod_perl (dso) + php It's been a long time now but if my memory serves me correctly (probably not) loading mod_perl before php in the httpd.conf file worked (in some instances). Read the guide regarding mod_perl as dso. You should probably try to compile it into apache. Escario Julien wrote: > Here's exactly the line in httpd.conf : > LoadModule perl_modulelibexec/libperl.so > I'm gone on http://perl.apache.org/guide/ but nothing is said on my > case. > I forgot a detail : I'm using mod_vhost_alias , is mod_perl compatible ? > > On apache restart here's what I get in error_log : > [Tue Apr 10 19:45:15 2001] [notice] SIGHUP received. Attempting to > restart > [Tue Apr 10 19:45:16 2001] [notice] Apache/1.3.19 (Unix) mod_perl/1.25 > PHP/4.0.4pl1 configured -- resuming normal operations > And now when trying to get a doc : > [Tue Apr 10 19:46:23 2001] [notice] child pid 1500 exit signal > Segmentation fault (11) > [Tue Apr 10 19:47:23 2001] [notice] child pid 1503 exit signal > Segmentation fault (11) > So it's because Apache is SegFaulting ? > Why can I solve this problem ? > > "G.W. Haywood" wrote: > > >> Hi there, >> >> On Tue, 10 Apr 2001, Escario Julien wrote: >> >> >>> This document contains no data ... >>> but why ? >> >> Could be lots of reasons. Often it's because Apache is segfaulting. >> Look in the error_log, it might tell you. Have you read the guide? >> http://perl/apache.org/guide >> >> 73, >> Ged. -- Daniel Bohling NewsFactor Network
Re: Problem with modperl
Hi again, On Tue, 10 Apr 2001, Escario Julien wrote: > I forgot a detail : I'm using mod_vhost_alias , is mod_perl compatible ? It probably isn't the problem, I use it too. But don't take my word for it. > [Tue Apr 10 19:46:23 2001] [notice] child pid 1500 exit signal > Segmentation fault (11) > So it's because Apache is SegFaulting ? Yup. > Why can I solve this problem ? Look in the file .../mod_perl/SUPPORT in your filesystem. You need to reduce everything to its simplest and work up from there. There's a good debugging section in the Guide. I'd start by compiling static instead of DSO, that's been known to cause problems in the past, but you might want to search the List archives for mention of the combination of modules etc. that you are using. There may be someone on the list who has more experience of your setup, I've never used PHP. You *did* compile your Perl with the same compiler that you used for mod_perl etc... didn't you? 73, Ged.
Re: Problem with modperl
Here's exactly the line in httpd.conf : LoadModule perl_modulelibexec/libperl.so I'm gone on http://perl.apache.org/guide/ but nothing is said on my case. I forgot a detail : I'm using mod_vhost_alias , is mod_perl compatible ? On apache restart here's what I get in error_log : [Tue Apr 10 19:45:15 2001] [notice] SIGHUP received. Attempting to restart [Tue Apr 10 19:45:16 2001] [notice] Apache/1.3.19 (Unix) mod_perl/1.25 PHP/4.0.4pl1 configured -- resuming normal operations And now when trying to get a doc : [Tue Apr 10 19:46:23 2001] [notice] child pid 1500 exit signal Segmentation fault (11) [Tue Apr 10 19:47:23 2001] [notice] child pid 1503 exit signal Segmentation fault (11) So it's because Apache is SegFaulting ? Why can I solve this problem ? "G.W. Haywood" wrote: > Hi there, > > On Tue, 10 Apr 2001, Escario Julien wrote: > > > This document contains no data ... > > but why ? > > Could be lots of reasons. Often it's because Apache is segfaulting. > Look in the error_log, it might tell you. Have you read the guide? > http://perl/apache.org/guide > > 73, > Ged.
Re: Problem with modperl
Hi there, On Tue, 10 Apr 2001, Escario Julien wrote: > This document contains no data ... > but why ? Could be lots of reasons. Often it's because Apache is segfaulting. Look in the error_log, it might tell you. Have you read the guide? http://perl/apache.org/guide 73, Ged.
Problem with modperl
Hello, I've compiled mod_perl as a Apache module with apxs after I installing apache. So I load mod_perl with this in the httpd.conf : LoadModule Perllibexec/modperl.so Next apache restart correctly ... When I try to get any of the web page, Netscpe return me : This document contains no data ... but why ? thanks
still: problem with modperl as module
>> i have the modperl in /root/.cpan/build/mod_perl-1.2.24 > Funny place to put it. that's right :) but i must confess, i didn't find the "right" place yet... i changed that to /tools/CPAN/build/mod_perl-1.2.24 > Is that where you have Apache too? More > commonly things are in /usr/src/ or /usr/local/. I had some problems > with 'make test' a while ago when the directories were laid out in an > unusual way. ok, apache is under /tools/apache_1.3.14, installation is in /usr/local/httpd >> perl Makefile.PL USE_APXS=1 WITH_APXS=/sbin/apxs EVERYTHING=1 > Have you tried it without APXS? yes, but then i cannot do anything, because with perl Makefile.PL APACHE_SRC=/tools/apache_1.3.14/src DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 i get the ugly message: * WARNING * Apache Version 1.3.0 required, aborting... * WARNING * >> 1. the "make install" installs the library in /usr/lib/apache >> and i dont know where i can do that in my >> /usr/local/httpd/libexec, > Don't understand what you're saying. You can move the library if you > like. that's right, but we have so many options what to do and where to do put it... where can i say "go to MY libdir" ? >> 2. the "make install" tries to update the (wrong) >> /etc/httpd/httpd.conf > 'make install' doesn't update an existing httpd.conf as far as I know. > If you have junk config files lying around get rid of them, things are > confusing enough as it is. hmm, make install told me: [activating module 'perl' in /etc/httpd/httpd.conf] just another configuration thing... i just wanted to do anything with apache in /usr/local/httpd, so my httpd.conf resides in /usr/local/httpd/conf/ perhaps it would be better to have a "straight" way of doing things, but how??? Kindly regards Ulrich
problem with modperl as module
i have a installation / configuration problem using mod_perl apache is version 1.3.14 perl is 5.6.0 the apache was made by ./config \ --prefix=/usr/local/httpd \ --enable-modules=most \ --enable-shared=max i have the modperl in /root/.cpan/build/mod_perl-1.2.24 and i made it via perl Makefile.PL USE_APXS=1 WITH_APXS=/sbin/apxs EVERYTHING=1 (in order to get a loadable module) now there are 2 problems: 1. the "make install" installs the library in /usr/lib/apache and i dont know where i can do that in my /usr/local/httpd/libexec, where my other modules are located. 2. the "make install" tries to update the (wrong) /etc/httpd/httpd.conf whereas i wanted to do it in my /usr/local/httpd/conf/httpd.conf make test results in: Can't make test with APXS (yet) Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Platform: osname=linux, osvers=2.2.16, archname=i686-linux uname='linux laphroaig 2.2.16 #1 wed aug 2 20:22:26 gmt 2000 i686 unknown ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef Compiler: cc='cc', optimize='-O2', gccversion=2.95.2 19991024 (release) cppflags='-fno-strict-aliasing -I/usr/local/include' ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 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 -lndbm -lgdbm -ldb -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 (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Nov 2 2000 23:01:23 @INC: /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl