I get an Internal Server Error in the browser when trying
to access the URI /hello.
Apache and modperl version: Sun Jun 01 18:51:42 2003] [notice] Apache/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.46 OpenSSL/0.9.6b configured -- resuming normal operations
When submitting bug reports, please follow these guidelines: http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
[...]
package Apache::hello;
use strict;
use Apache::RequestRec (); use Apache::RequestIO ();
sub handler { my $request = shift; # what does shift operate on @_? $request->content_type('text/html');
$request->print(<<END); # what does the ) do in print? <HTML> <BODY> <H1>Hello There</H1> </BODY> </HTML> END
return "Apache::OK"; }
Where did you take this example from? you should return a constant Apache::OK, not a string "Apache::OK". You need to import this constant before you can use it. Here is a skeleton:
use Apache::Const -compile => 'OK';
sub handler { ... return Apache::OK; }
1;
Relevant httpd error_log: [Sun Jun 01 19:04:46 2003] [notice] child pid 2861 exit signal Segmentation fault (11)
Relevant http access_log: 127.0.0.1 - - [01/Jun/2003:19:04:46 -0400] "GET /hello HTTP/1.1" 500 670
I am not sure if the problem is with apache or modperl. I could not find a core file under httpd ServerRoot.
Take a look at: http://perl.apache.org/docs/2.0/devel/debug/c.html#Getting_the_core_File_Dumped
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com