New install on Gentoo--Undefined subroutine &RT::M ason::handler

The guide shows how to install with virtual hosting. I am not using
virtual

hosting, so I have tried to make the appropriate changes to the apache
configs.

What “appropriate changes” did you make?

I added this to /etc/apache/conf/commonapache.conf…

LoadModule perl_module extramodules/libperl.so AddModule mod_perl.c

<Directory /var/www/localhost/htdocs/rt>
Options -All -Multiviews
AllowOverride None
Order deny,allow
allow from all

<Location /rt>
SetHandler perl-script
PerlHandler RT::Mason
PerlSetEnv PERL5LIB /usr/lib

…rather than doing it the virtual hosts way.

When apache starts it notes that mod_perl is already on, so it’s skipping my
turning it on here. So that’s probably redundant. But it doesn’t seem to
have hurt it.

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
Thank you for your cooperation

I added this to /etc/apache/conf/commonapache.conf…

LoadModule perl_module extramodules/libperl.so AddModule mod_perl.c

<Directory /var/www/localhost/htdocs/rt>
Options -All -Multiviews
AllowOverride None
Order deny,allow
allow from all

<Location /rt>
SetHandler perl-script
PerlHandler RT::Mason
PerlSetEnv PERL5LIB /usr/lib

…rather than doing it the virtual hosts way.

Where did you put the following lines listed in the README?

AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
"Dances with Wolverines" - unlikley movies

Where did you put the following lines listed in the README?

AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

Ummmm…nowhere. Oops. :slight_smile:

After putting them in commonapache.conf, I’m no longer getting the error
message in the subject line. Now I’m just getting a 404:

The requested URL /rt/index.html was not found on this server.

…when /var/www/localhost/htdocs/rt quite clearly contains this:

zimmerdale rt # pwd
/var/www/localhost/htdocs/rt
zimmerdale rt # ls -la
total 64
drwxr-xr-x 12 root root 4096 Mar 15 17:24 .
drwxr-xr-x 3 root root 4096 Mar 15 14:59 …
drwxr-xr-x 8 root root 4096 Mar 15 14:59 Admin
drwxr-xr-x 3 root root 4096 Mar 15 14:59 Approvals
drwxr-xr-x 2 root root 4096 Mar 15 14:59 Elements
drwxr-xr-x 3 root root 4096 Mar 15 14:59 NoAuth
drwxr-xr-x 3 root root 4096 Mar 15 14:59 REST
drwxr-xr-x 3 root root 4096 Mar 15 14:59 Search
drwxr-xr-x 4 root root 4096 Mar 15 14:59 SelfService
drwxr-xr-x 4 root root 4096 Mar 15 14:59 Ticket
drwxr-xr-x 3 root root 4096 Mar 15 14:59 Tools
drwxr-xr-x 4 root root 4096 Mar 15 14:59 User
-rwxr-xr-x 1 root root 6885 Mar 15 14:59 autohandler
-rwxr-xr-x 1 root root 3788 Mar 15 14:59 index.html
-rwxr-xr-x 1 root root 1039 Mar 15 14:59 l
zimmerdale rt #

Hmmmm…what am I missing here?
Kendric Beachey

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
Thank you for your cooperation

The requested URL /rt/index.html was not found on this server.

How is DocumentRoot defined?

Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
"Q: What is a dedicated word processor?
A: One that would give it’s life for the user." - computer quiz answer

The requested URL /rt/index.html was not found on this server.

How is DocumentRoot defined?

In apache.conf:

DocumentRoot /var/www/localhost/htdocs

Kendric Beachey

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
Thank you for your cooperation

From: Russell Mosemann [mailto:mose@ns.cune.edu]

The requested URL /rt/index.html was not found on this server.

How is DocumentRoot defined?

In apache.conf:

DocumentRoot /var/www/localhost/htdocs

What do the apache logs say about the attempt to access the document?

Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
"Refigerator theory - You can only prove that the light is on. You
can’t prove that the light is off."

What do the apache logs say about the attempt to access the document?

In /var/log/apache/access_log:

10.12.32.200 - - [16/Mar/2005:09:34:49 -0600] “GET /rt/ HTTP/1.1” 404 297
"-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041123
Firefox/1.0"
10.12.32.200 - - [16/Mar/2005:09:34:50 -0600] "GET /favicon.ico HTTP/1.1"
404 295 “-” "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041123 Firefox/1.0"
10.12.32.200 - - [16/Mar/2005:09:34:50 -0600] "GET /favicon.ico HTTP/1.1"
404 295 “-” “Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041123 Firefox/1.0”

In /var/log/apache/error_log:

[Wed Mar 16 09:35:26 2005] [error] [client 10.12.32.200] File does not
exist: /var/www/localhost/htdocs/favicon.ico
[Wed Mar 16 09:35:26 2005] [error] [client 10.12.32.200] File does not
exist: /var/www/localhost/htdocs/favicon.ico
1

Hmmmm. Not sure why Firefox is asking for the favicon twice.

Anyway, in the browser window it says:

Not Found
The requested URL /rt/index.html was not found on this server.

Apache/1.3.33 Server at zimmerdale.garmin.com Port 80

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
Thank you for your cooperation

10.12.32.200 - - [16/Mar/2005:09:34:49 -0600] “GET /rt/ HTTP/1.1” 404 297

This shows that the browser is trying to access the rt directory.
How is DirectoryIndex defined?

Not Found
The requested URL /rt/index.html was not found on this server.

The only things that come to mind at the moment are:

  1. The document root is not correct such that the rt directory does not
    occur under the current document root.
  2. The permissions of the rt directory or a parent directory do not
    allow access by apache.
  3. The rt directory (or parent directory) doesn’t exist or is misspelled.
  4. index.html doesn’t really exist or is misspelled.
  5. The permissions on index.html don’t allow apache to read it.
  6. You are trying to access the /rt/ directory and DirectoryIndex does
    not include index.html as one of the default documents.
  7. Your setup is a little quirky and requires the Rewrite rule to
    map directory access to the index.html document. This was discussed
    a few days ago on the list and should be in the Wiki somewhere.

Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
"When it absolutely, positively has to be destroyed overnight."

  • Marine bumper sticker

Hmmmm. Here is how DirectoryIndex is defined, in commonapache.conf:

DirectoryIndex index.html index.php index.php3 index.shtml index.cgi
index.pl index.htm Default.htm default.htm

The permissions, etc that you mention all seem to be in order.

Would it help if I sent full copies of some of my config files? and/or
directory listings?
KendricFrom: Russell Mosemann [mailto:mose@ns.cune.edu]
Sent: Wednesday, March 16, 2005 11:12 AM
To: Beachey, Kendric
Cc: Rt-Users (E-mail)
Subject: RE: [rt-users] New install on Gentoo–Undefined subroutine
&RT::M ason::handler

10.12.32.200 - - [16/Mar/2005:09:34:49 -0600] “GET /rt/ HTTP/1.1” 404 297

This shows that the browser is trying to access the rt directory.
How is DirectoryIndex defined?

Not Found
The requested URL /rt/index.html was not found on this server.

The only things that come to mind at the moment are:

  1. The document root is not correct such that the rt directory does not
    occur under the current document root.
  2. The permissions of the rt directory or a parent directory do not
    allow access by apache.
  3. The rt directory (or parent directory) doesn’t exist or is misspelled.
  4. index.html doesn’t really exist or is misspelled.
  5. The permissions on index.html don’t allow apache to read it.
  6. You are trying to access the /rt/ directory and DirectoryIndex does
    not include index.html as one of the default documents.
  7. Your setup is a little quirky and requires the Rewrite rule to
    map directory access to the index.html document. This was discussed
    a few days ago on the list and should be in the Wiki somewhere.

Russell Mosemann, Ph.D. * Computing Services * Concordia University,
Nebraska
"When it absolutely, positively has to be destroyed overnight."

  • Marine bumper sticker

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Administrator and Developer training is coming to your town soon!
(Boston, San Francisco, Austin, Sydney) Contact training@bestpractical.com
for details.

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
Thank you for your cooperation

Would it help if I sent full copies of some of my config files? and/or
directory listings?

At this point you need to get to know your system intimately through some
debugging/investigative work. I have given you all of the pointers I can,
unless someone else knows something. If you can’t make your current
configuration work, then you need to think about setting up a virtual host
as described in the README.

Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
"the weak man eats only vegetables." - Romans 14:2b