Problems with apache configuration

Hi,

I just tried installing RT for the last two days on my local machine.
The installation itself worked out fine (testdeps was a big help), but
now I’m struggling with the apache configuration.

I’m using Mandrake 7.2 which has a perl enhanced apache installed as
default. mod_perl seems to work fine (in fact, the error log says that
it does). I added the lines listed in the installation guide to my
httpd-perl.conf as listed below.

#RT2 configuration
PerlModule Apache::DBI
PerlFreshRestart On
PerlRequire /opt/rt2/bin/webmux.pl
<Location /rt2>
    SetHandler perl-script
    PerlHandler RT::Mason
</Location>

But that doesn’t do all the trick. I added a link from my htdocs
directory to /opt/rt2/WebRT/html (ln -s /opt/rt2/WebRT/html rt2).
Calling http://localhost/rt2 gives me some plain text as result, but no
web interface. I tried several versions of linking from the htdocs
directory to rt2 but none of them worked.

Can anyone tell me what to do in order to get this running?

Thanks,

Thorsten

Can anyone tell me what to do in order to get this running?

You forgot the Alias specifying where Apache can find RT. Please delete
the softlink first to avoid confusion. You don’t need it.

Something like
Alias /rt2 /path/to/rt2/WebRT/html
should be in your httpd.conf

See http://www.helgrim.com/rtdocs/installation.html#76

Regards,

Martin

Martin Schapendonk, martin@schapendonk.org, Phone: +31 (0)6 55770237
Student Information Systems and Management at Tilburg University

Martin Schapendonk wrote:>On Tue, 9 Oct 2001, Thorsten Sturm wrote:

Can anyone tell me what to do in order to get this running?

You forgot the Alias specifying where Apache can find RT. Please delete
the softlink first to avoid confusion. You don’t need it.

Something like
Alias /rt2 /path/to/rt2/WebRT/html
should be in your httpd.conf

See http://www.helgrim.com/rtdocs/installation.html#76

Regards,

Martin

That does at least part of the trick. Thanks for the hint. But
unfortunately, I’m stuck again.

I can now start RT and get the login page. Logging in as root works
fine, too. But being on the overview page is some kind of dead end for
me. Every click on one of the provided links (even on logout) results in
an error message, saying the " The requested URL
/perl/rt2/WebRT/html/User/Prefs.html was not found on this server.". I
tried a few configurations and even set $webpath in RT’s config.pm (this
is where WebRT/html comes from). rt2 is a symlink in the perl-docs
directory of apache.

Can you tell me, how to configure RT to use the rest of the pages?

Thanks again,

Thorsten

I can now start RT and get the login page. Logging in as root works

fine, too. But being on the overview page is some kind of dead end for

me. Every click on one of the provided links (even on logout) results in

an error message, saying the " The requested URL

/perl/rt2/WebRT/html/User/Prefs.html was not found on this server.". I

tried a few configurations and even set $webpath in RT’s config.pm (this

is where WebRT/html comes from). rt2 is a symlink in the perl-docs

directory of apache.

Your $WebPath in config.pm should contain “/rt2” and NOT
"/perl/rt2/WebRT/html" which is just the location in your file system
(and has nothing to do with the web location of RT).

Did you stop and start Apache on every change to see the result?
(not just a restart, really stop and start Apache).

Regards,

Martin

Martin Schapendonk, martin@schapendonk.org, Phone: +31 (0)6 55770237
Student Information Systems and Management at Tilburg University

Martin Schapendonk wrote:>On Tue, 9 Oct 2001, Thorsten Sturm wrote:

I can now start RT and get the login page. Logging in as root works

fine, too. But being on the overview page is some kind of dead end for

me. Every click on one of the provided links (even on logout) results in

an error message, saying the " The requested URL

/perl/rt2/WebRT/html/User/Prefs.html was not found on this server.". I

tried a few configurations and even set $webpath in RT’s config.pm (this

is where WebRT/html comes from). rt2 is a symlink in the perl-docs

directory of apache.

Your $WebPath in config.pm should contain “/rt2” and NOT
"/perl/rt2/WebRT/html" which is just the location in your file system
(and has nothing to do with the web location of RT).

Did you stop and start Apache on every change to see the result?
(not just a restart, really stop and start Apache).

Regards,

Martin

O.K. That does the trick. Now I can see the web interface logging myself
in and play around a little. But at least there seem to be one thing
missing, which I think is an apache issue as well. When I click on one
of the links, the provided destination points to some other directory in
most of the cases. From HTML I would assume to automatically look for a
index.html in those directories (which is available in all of them). But
my own apache seems to forget about this feature. All I see is the
directory itself (say the files and directories it contains). Clicking
on index.html then brings me to the place I wanted to.

I’m sure there is a configuration entry missing in my httpd.conf. Can
anyone tell me what is missing there?

Thanks,

Thorsten

I’m sure there is a configuration entry missing in my httpd.conf. Can

anyone tell me what is missing there?

Yep, it’s called (how surprising ;-)) DirectoryIndex and it should
contain at least “index.html”.

Locate it in your httpd.conf (and if it isn’t there add it) and make
sure it reads at least:

DirectoryIndex index.html

Regards,

Martin

Martin Schapendonk, martin@schapendonk.org, Phone: +31 (0)6 55770237
Student Information Systems and Management at Tilburg University