Re: Error with apache with mod_perl

2001-08-01 Thread Doug MacEachern

On Mon, 30 Jul 2001, Mauricio Amorim wrote:

> Hi, my name is Mauricio
 
> 2) I install mod_perl 1.1.26 with the following options:
> cd mod_perl_1.1.26
> perl Makefile.PL APACHE_SRC=../apache.1.3.20/src USE_APACI=1 USE_DSO=1 

you should have seen this warning:
Your Perl is uselargefiles enabled, but Apache is not, suggestions:
*) Rebuild mod_perl with Makefile.PL PERL_USELARGEFILES=0
*) Rebuild Apache with CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
*) Rebuild Perl with Configure -Uuselargefiles
*) Let mod_perl build Apache (USE_DSO=1 instead of USE_APXS=1)

try the first option.





Error with apache with mod_perl

2001-07-30 Thread Mauricio Amorim




Hi, my name is Mauricio
I'm from Brazil
 
I am trying install apache 1.3.20 with mod_perl 
1.1.26 on Solaris 2.6
The output of gcc -v is:
Reading specs from 
/net/gnu/stow/gcc-2.95.2-5.6/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specsgcc 
version 2.95.2 19991024 (release)
 
The steps of instalattion 
realized are:
 
1) I install perl 5.6.1 with the following 
options:
 
sh Configure -Duseshrolib -Ubincompat5005 
-Dcc=gcc 
make
make test
make install
 
2) I install mod_perl 1.1.26 with the following 
options:
cd mod_perl_1.1.26
perl Makefile.PL APACHE_SRC="../apache.1.3.20/src" 
USE_APACI=1 USE_DSO=1 
make
make test
make install
 
question: Is right use USE_APACI=1 with USE_DSO=1 
(next) ?
 
3) I install apache 1.3.20 with the following 
options:
    ./configure 
--prefix=/home/masilva/local/apachelocal --enable-module=so 
    make
    make install
 
I change httpd.conf:
 
#httpd.conf
LoadModule 
perl_module    
libexec/libperl.so
 
Alias /perl/ 
/home/masilva/local/apachelocal/cgi-bin/perl/PerlModule 
Apache::PerlRun  SetHandler 
perl-script  PerlHandler Apache::PerlRun  Options 
ExecCGI  allow from all  PerlSendHeader On  
PerlSetVar PerlRunOnce On

I started apache with apachectl start wthout 
problems.
I tried use Apache::Registry too.
But when in the browser (netscape) i write in Location:
"http://hermes:8081/perl/ag1/ag1.pl"
The browser alert:
The document contain no data
Try again later or contact .
 
The error_log display:
[Mon Jul 30 11:52:53 2001] [notice] Apache/1.3.20 (Unix) 
mod_perl/1.26 configured -- resuming normal operations[Mon Jul 30 11:56:50 
2001] [notice] child pid 21024 exit signal Segmentation Fault (11), possible 
coredump in /home/masilva/local/apachelocal
 
Anybody know what i can be doing of error 
?
 
The apache function normally without error when i 
start with Apache::Perlrun or Registry disable.
 
Thank you.