1822158 Members
3412 Online
109640 Solutions
New Discussion юеВ

mod_perl on RH 7.3

 
K.C. Chan
Trusted Contributor

mod_perl on RH 7.3

I've got apache-1.3.23-11 and mod_perl 1.27 installed. But having problem with httpd.conf;
getting this error when doing "httpd -t":
Syntax error on line 1078 of /etc/httpd/conf/httpd.conf:
Invalid command 'PerlHandler', perhaps mis-spelled or defined by a module not included in the server configuration

Here's the httpd.conf:
LoadModule perl_module /usr/lib/apache/libperl.so
Alias /perl /var/www/perl

PerlHandler Apache::Registry
SetHandler perl-script
Options +ExecCGI


Does any have any idea? Thanks
Reputation of a thousand years can be determined by the conduct of an hour
5 REPLIES 5
K.C. Chan
Trusted Contributor

Re: mod_perl on RH 7.3

By the way my apache is the default rpm from redhat, so it has the core module installed:
Compiled-in modules:
http_core.c
mod_so.c
suexec: enabled; valid wrapper /usr/sbin/suexec


Reputation of a thousand years can be determined by the conduct of an hour
Stuart Browne
Honored Contributor

Re: mod_perl on RH 7.3

You need the SetHandler first.

Here's the stuff from the distribution of RH7.3:


Alias /perl /var/www/perl

SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI

One long-haired git at your service...
K.C. Chan
Trusted Contributor

Re: mod_perl on RH 7.3

Thanks. It is working now. I had the error bec. I took out out "" and when I test it with "httpd -t", it complained about the PerlHandler synthax. Later I found out the httpd -t test for statically compiled module and to avoid the error you need "" for DSO module. Go figured!!
Reputation of a thousand years can be determined by the conduct of an hour
K.C. Chan
Trusted Contributor

Re: mod_perl on RH 7.3

One thing that is not working properly, is the different size of the image, small,medium,large. When I click on them it gives these err in the log file:
File does not exist: ..../vol1//1024x768_041702-5.jpg
..../vol1//640x480_051402-10.jpg
why is the Apache::Album attaching an extra / in the path? here's my config file in httpd.conf:

Alias /nicky "/var/www/html/albums/nicky"

SetHandler perl-script
AllowOverride None
Options None
PerlHandler Apache::Album
PerlSetVar AlbumDir /nicky/albums_loc
PerlSetVar OutsideTableBorder 1
PerlSetVar InsideTableBorder 1
PerlSetVar ThumbDir /nicky/thumbs
perlSetVar SlideShowDelay 20
PerlSetVar AllowFinalResize 1
#PerlSetVar FinalResizeDir /nicky/albums_loc



Any idea? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
Stuart Browne
Honored Contributor

Re: mod_perl on RH 7.3

Afraid not, no. I've never actually used mod_perl (use PHP).
One long-haired git at your service...