This is the information i gathered based on your request:
>From httpd-error.log:
[Mon Jan 15 15:50:36 2007] [notice] Apache/1.3.34 (Unix) mod_perl/1.29
configure
d -- resuming normal operations
Here is one of the files Recipes.pm
------------------------------------------------
package Recipes;
use strict;
use Apache::Constants;
use RecipePrintTool;
use RecipeTool;
use MyRecipeTool;
use RecipeReviews;
use RecipeEmailTool;
use RecipeSearchTool;
sub handler
{
my $r = shift;
my @uri = split /\//, $r->uri();
my $prg;
if ($uri[3] eq "print_recipe")
{
$prg = RecipePrintTool->new($r);
}
elsif ($uri[3] eq "my_recipe")
{
$prg = MyRecipeTool->new($r);
}
elsif ($uri[3] eq "recipe_reviews")
{
$prg = RecipeReviews->new($r);
}
elsif ($uri[3] eq "email_recipe")
{
$prg = RecipeEmailTool->new($r);
}
elsif ($uri[3] eq "recipe_search")
{
$prg = RecipeSearchTool->new($r);
}
else
{
$prg = RecipeTool->new($r);
}
$prg->Main();
$r->push_handlers( PerlHandler => 'Handlers::Finish_Page' );
return OK;
}
1;
__END__
-----------------------------------------------------------------------------
Should I run it as a Registry or as a Handler?
These are the only changes that I've made to the httpd.conf file.
I changed the DocumentRoot to : DocumentRoot
"/usr/home/httpd/domains/www.ehunter.com/ehunter_html"
then I added go as an Alias. Recipes.pm is inside the folder Handlers. I'm
trying to execute Recipes.pm by going to http://localhost/go/Recipes but
nothing.
Alias /go/ /usr/home/httpd/domains/www.ehunter.com/ehunter_perl/Handlers/
PerlModule go::Recipes
<Location /go/>
SetHandler perl-script
PerlHandler go::Recipes
Options +ExecCGI
PerlSendHeader On
allow from all
</Location>
--
View this message in context:
http://www.nabble.com/Making-.pm-files-run.-tf3016257.html#a8380720
Sent from the mod_perl - General mailing list archive at Nabble.com.