Installation problems with Freeside [error] Undefined subroutine &HTML::Mason::handler called.

Chris LaDuke chris at affinitytalk.com
Wed Jul 30 15:30:40 PDT 2003


I hope this isn't data overload, but as I've tried everything I can think
of, I thought I should put everything I could in here.

I am using Freeside ver 1.4.0
I am using HTML::Mason 1.22
I am using perl v 5.8.0
I am using DBI::PG
Postgres version 7.3.2
I am using apache version 1.3.28 with mod_perl 1.28 and mod_ssl
2.8.15-1.3.28
Redhat 9
I am launching apache as root but have specified freeside as the user/group
in httpd.conf

I have followed each of the steps in the Installation instructions I believe
to the letter.  I have successfully created the freeside DB and user in
postgres.

It seems to connect to the database Ok (when running make create-database,
however it only authenticates when I do the make as the username freeside,
which I believe is because of the "sameuser" function of postgres)

I can log into the site and see the index page and subsequent pages fine.
When I click on *any* cgi I get the traditional "internal server error or
misconfiguration" message in my browser.

My apache server is throwing the following in the error log:
[error] Undefined subroutine &HTML::Mason::handler called.
I typically get this error with permissions problems so my dir list is
below, which I know isnt entirely "safe" but I just started chown'ing things
to freeside in the hopes that something would start working.

My httpd.conf looks like so:

PerlModule HTML::Mason
<Directory /usr/local/apache/htdocs/freeside-masondocs>
<Files ~ (\.cgi)>
AddHandler perl-script .cgi
PerlHandler HTML::Mason
</Files>
<Perl> require "/usr/local/etc/freeside/handler.pl";
</Perl>
</Directory>

The makefile I used in the src/freeside dir looks like this.

#!/usr/bin/make

DATASOURCE = DBI:Pg:dbname=freeside
#DATASOURCE=DBI:mysql:freeside

DB_USER = freeside
DB_PASSWORD= freeside

#TEMPLATE = asp
TEMPLATE = mason

#ASP_GLOBAL = /usr/local/etc/freeside/asp-global

FREESIDE_DOCUMENT_ROOT = /usr/local/apache/htdocs/freeside-masondocs

INIT_FILE = /usr/bin/freeside-queued

HTTPD_RESTART = /usr/local/apache/bin/apachectl restart
INSTALLGROUP = root

#edit the stuff below to have the daemons start

QUEUED_USER=afreesideuser (replaced)
PASSWD_USER = nostart
PASSWD_MACHINE = localhost

SIGNUP_USER = nostart
SIGNUP_MACHINE = localhost
SIGNUP_AGENTNUM = 2
SIGNUP_REFNUM = 2

It seems to connect to the database Ok (when running make create-database)

I typically get this error with permissions problems so here is my dir list,
which I know isnt entirely "safe"
/usr/local/etc/freeside
drwxr-xr-x    2 freeside root         4096 Jul 30 13:48
cache.DBI:Pg:dbname=freeside
drwxr-xr-x    2 freeside root         4096 Jul 30 13:48
conf.DBI:Pg:dbname=freeside
drwxr-xr-x    2 freeside root         4096 Jul 30 13:51
counters.DBI:Pg:dbname=freeside
-rw-rw-r--    1 freeside freeside    73787 Jul 30 13:50
dbdef.DBI:Pg:dbname=freeside
drwxr-xr-x    2 freeside root         4096 Jul 30 13:48
export.DBI:Pg:dbname=freeside
-rw-------    1 freeside root           20 Jul 30 13:53 htpasswd
-rw-r--r--    1 root     root           28 Jul 30 13:53 mapsecrets
-rw-rw-r--    1 freeside freeside      120 Jul 30 13:56
queuelog.DBI:Pg:dbname=freeside
-rw-------    1 freeside root           41 Jul 30 13:48 secrets

Everything in /usr/local/apache/htdocs/freeside-masondocs is set to UID
freeside and GID root

PS AUX looks like this:
freeside  9948  0.0  1.8 11816 7116 ?        S    12:37   0:00 [httpd]
freeside  9949  0.0  1.8 11808 7108 ?        S    12:37   0:00 [httpd]
freeside  9950  0.0  1.9 12032 7376 ?        S    12:37   0:00 [httpd]
freeside  9951  0.0  1.8 11816 7116 ?        S    12:37   0:00 [httpd]
freeside  9952  0.0  1.8 11816 7116 ?        S    12:37   0:00 [httpd]
freeside  9953  0.0  1.8 11808 7108 ?        S    12:38   0:00 [httpd]
freeside 10816  0.5  3.4 18532 13380 ?       S    13:56   0:04
[freeside-queued]
postgres 10817  0.0  0.9 10576 3744 ?        S    13:56   0:00 postgres:
freeside freeside [local] idle in transaction

I've been fiddeling with this for hours and am determined to get it going.
If someone has some suggestions, it would be greatly appreciated!




More information about the freeside-users mailing list