On Mon, 27 Mar 2000, Mayur Joshi wrote:

} browser I get a Netscape error. 'The document contains no data'
} When I see the error_log, it says signal segmentation fault. I want to know
} where is the real prpblem.
} 
} I guess from the error netscape gives, it must be that the Pel program is
} not returning proper headers to Apache. But then I dunno why the error log
} says Signal Segmentation Fault.

These errors mean that your perl program has crashed before sending any
data.  It has caused a segmentation fault either in perl or in apache (the
latter has near zero probability).  Check if the system dumps core.

If you are using mod_perl, then the perl programs will be run within the
server.  Try using a simple shell script as a CGI program:

#!/bin/bash

echo -e "Content-Type: text/html\n";
echo "Hello";

See what happens when you execute this script through the browser.

} Can anyone send send their httpd.conf file to me. I will compare yours with
} mine.

these are the lines that affect perl in my httpd:

LoadModule perl_module        modules/libperl.so

AddModule mod_perl.c

If these are not commented, then apache will look for libperl.so and
expect to have mod_perl.c compiled in.  Try commenting them out to see
what happens.

In srm.conf this will enable the perl module if you have it.  Comment this
out too to see what happens.

Alias /perl/ /home/httpd/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>

Philip


===========
And on the seventh day, He exited from append mode.

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to