Probs reloading rt3.0.2 config

Hi,

I’ve just got RT3.0.2 installed onto a FreeBSD 4.7 box running Apache
1.3.27 and mod_perl with a MySQL database. The inital configuration
appears to have started quite happily and I can use it using the
defaults and the inital database setup without problem.

When I came to setup the RT::WebBaseURL and RT::rtname and various other
configuration directives in RT_SiteConfig.pm I haven’t managed to get
the changed values to load and be used by the web interface.

Trying to run webmux.pl and RT::LoadConfig() directly from the command
line (after adding a couple of debug print statements to RT.pm or
webmux.pl) and examine the results shows the code is correctly loading
the new values, but mod_perl appears to still be using the cached
defaults, even after running apachectl restart.

I’ve put Apache::StatINC into the VirtualHost modPerl handlers so I
could see if it was reloading cleanly and RT_Config.pm and
RT_SiteConfig.pm are both reloaded when changed, with the following
dumped to the Apache error log

Apache::StatINC: process 57922 adding /usr/local/rt3/bin/webmux.p to
@INC
Apache::StatINC: process 57922 reloading /usr/local/rt3/bin/webmux.pl.
Apache::StatINC: process 57922 adding /usr/local/rt3/etc/RT_Config.p to
@INC
Apache::StatINC: process 57922 failed to reload
/usr/local/rt3/etc/RT_Config.pm. Can’t locate /usr/local/rt3/etc/RT_Con
fig.pm at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/StatINC.pm line
47.
Apache::StatINC: process 57922 reloading RT.pm.
Apache::StatINC: process 57922 adding /usr/local/rt3/etc/RT_SiteConfig.p
to @INC
Apache::StatINC: process 57922 failed to reload
/usr/local/rt3/etc/RT_SiteConfig.pm. Can’t locate /usr/local/rt3/etc/RT
_SiteConfig.pm at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/StatINC.pm line
47.

I have compared the install against another RT3.0.2 system I’ve
installed on a Linux box, which is suffering no such problm like this
and re-reads the RT_Config/RT_SiteConfig files on an apachectl restart
without a problem.

While I probably expect Apache::StatINC is interferring, I was getting
no debug output in any other form without it from mod_perl or otherwise,
and RT_Config.pm does appear to be looking for RT::Set. I have tried
creating a Set() in the RT package to perform the same job as the local
Set sub in LoadConfig() but RT_Config.pm still cannot see RT::Set to use
it.

I’d suspect something about mod_perl, except it has picked up the
database configuration, although admittedly changing anything from the
inital install doesn’t appear to work.

Anyone seen anything similar to this or have any ideas on why my RT
install is acting this way?

Best Regards,
Chris Fewtrell chris@uk.clara.net

Anyone seen anything similar to this or have any ideas on why my RT

install is acting this way?

Did you already try a ‘apachectl stop; apachectl start’? Just a restart is
not sufficient.

Regards,

Martin

Anyone seen anything similar to this or have any ideas on why my RT

install is acting this way?

Did you already try a ‘apachectl stop; apachectl start’? Just a restart is
not sufficient.

I hadn’t.

Just have and it has worked. I wasn’t aware there was a diff between
restart and a stop/start.

Thanks :slight_smile:

Best Regards,
Chris Fewtrell chris@uk.clara.net