[rt-users] RT boilerplate error: Log file '/local/rt3/var/log/rt.log' couldn't be written or created

Thomas Sibley trs at bestpractical.com
Fri Feb 24 13:49:14 EST 2012


On 02/24/2012 12:49 PM, Richard McMahon wrote:
> #!/usr/bin/perl -w
> use strict;
> use lib qw(/opt/rt3/local/lib /opt/rt3/lib);
> use RT;
> # Load the config file
> RT::LoadConfig();

Between RT::LoadConfig() and RT::Init(), you should be able to insert
lines like so to change the variables you need:

    RT->Config->Set( LogDir => '...' );

or to disable logging to the file and only log elsewhere (syslog,
screen) as configured:

    RT->Config->Set( LogToFile => undef );

> # Connect to the database and get RT::SystemUser
> # loaded
> RT::Init();

Thomas



More information about the rt-users mailing list