[Rt-devel] Problems using RT.pm under a web environment

Rolf Grossmann rg at progtech.net
Fri Jul 29 10:02:37 EDT 2005


Simon Wistow wrote:

> For a variety of reasons I want users to be able to create Queues via a 
> web interface.
> 
> I have a bit of code which looks like
[...]
> which works fine from the command line but fails dismally from within a 
> CGI with the error
> 
> [Fri Jul 29 12:04:14 2005] [error] [client 172.16.11.34] Couldn't 
> require MPC::SoftwareCatalogue::Rt : Can't locate 
> /opt/rt3/etc/RT_SiteConfig.pm in @INC (@INC contains: /opt/rt3/local/lib 
> /opt/rt3/lib 
> [ ... ]

Check that the web server can read your RT_SiteConfig.pm. It proably has 
different access rights and since RT_SiteConfig.pm contains your 
database access data, it's not publically readable.

Rolf


More information about the Rt-devel mailing list