[afnog] RT web page wont display after configuration

Pamela Pomary ppomary at ug.edu.gh
Thu Apr 29 18:11:30 UTC 2010


Hello folks,
I have installed rt38 with apache2-modperl2 on freebsd 8.0. I have configured
RT_SiteConfig.pm and /apache22/Includes/http-local.conf files as directed
by RT's wiki website http://wiki.bestpractical.com/view/UserManual. I get
the following message when i want to view the web page 
http://monitor.ug.edu.gh/rt/

###################http://monitor.ug.edu.gh/rt##########################
$m->comp('/Elements/Header', Title=>loc("RT at a glance"), Refresh =>
$session{'home_refresh_interval'}||RT->Config->Get('HomePageRefreshInterval',
$session{'CurrentUser'} )); % if (0) { %# -->


You're almost there!
You haven't yet configured your webserver to run RT. You appear to have
installed RT's web interface correctly, but haven't yet configured your
web server to "run" the RT server which powers the web interface. The next
step is to edit your webserver's configuration file to instruct it to use
RT's mod_perl, FastCGI or SpeedyCGI handler. If you need commercial
support, please contact us at sales at bestpractical.com.
######################################################################

I have included mod_perl in /apache22/Includes/http-local.conf

When i checked httpd-error.log, it complains of some missing perl modules:
#########################httpd-error.log###############################

[Thu Apr 29 12:40:37 2010] [error] Can't locate File/ShareDir.pm in @INC
(@INC contains: /usr/local/share/rt38/lib
/usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/BSDPAN
/usr/local/lib/perl5/site_perl/5.10.1/mach
/usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach
/usr/local/lib/perl5/5.10.1 . /usr/local) at
/usr/local/lib/perl5/site_perl/5.10.1/RT/Plugin.pm line 53.\nBEGIN
failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.10.1/RT/Plugin.pm line 53.\nCompilation
failed in require at /usr/local/lib/perl5/site_perl/5.10.1/RT.pm line
584.\nBEGIN failed--compilation aborted at /usr/local/bin/webmux.pl line
102.\nCompilation failed in require at (eval 4) line 1.\n
[Thu Apr 29 12:40:37 2010] [error] Can't load Perl file:
/usr/local/bin/webmux.pl for server monitor.ug.edu.gh:0, exiting...
################################################################
Below is my RT_SiteConfig.pm and /apache22/Includes/http-local.conf
respectively:


###############RT_SiteConfig.pm#################

Set( $rtname , "ug.edu.gh");
Set($Organization , "ug.edu.gh");
Set($MinimumPasswordLength , "5");
Set($Timezone , 'GMT');
Set($DatabaseType ,'mysql');
Set($DatabaseHost , 'localhost');
Set($DatabaseRTHost , 'localhost');
Set($DatabaseUser , 'root');
Set($DatabasePassword , '1234asdf');
Set($DatabaseName , 'mysql');
Set($DatabasePort , '');
Set($DatabaseRequireSSL , undef);
Set($UseSQLForACLChecks, 1);
Set($OwnerEmail , 'root');
Set($LoopsToRTOwner , 1);
Set($StoreLoops , undef);
Set($MaxAttachmentSize , 10000000);
Set($TruncateLongAttachments , undef);
Set($DropLongAttachments , undef);
Set($ParseNewMessageForTicketCcs , undef);
Set($RTAddressRegexp , '^monitor at ug.edu.gh$');
Set($CanonicalizeEmailAddressMatch , '@monitor\.ug.edu\.gh$');
Set($CanonicalizeEmailAddressReplace , '@ug.edu.gh');
Set($CanonicalizeOnCreate, 0);
Set($SenderMustExitInExternalDatabase , undef);
Set($ValidateUserEmailAddress,undef);
Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
Set($ExtraSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
       ? qr/\[(?{RT::EmailSubjectTagRegex}) #\d+\]/
       : qr/\[\Q$RT::rtname\E #\d+\]/));
Set($MailCommand , 'sendmailpipe');
Set($MailCommand , 'sendmailpipe');
Set($SendmailArguments , "-oi -t");
Set($SendmailBounceArguments , '-f "<>"');
Set($SendmailPath , "/usr/sbin/sendmail");
Set($SMTPServer, undef);
Set($SMTPFrom,undef);
Set($SMTPDebug, 0);
Set(@MailParams, ());
Set($CorrespondAddress , 'ppomary at ug.edu.gh');
Set($CommentAddress , 'ppomary at ug.edu.gh');
Set($DashboardAddress, 'ppomary at ug.edu.gh');
Set($UseFriendlyFromLine, 1);
Set($FriendlyFromLineFormat, "\"%s via RT\" <%s>");
Set($WebPath, "/rt");
Set($WebBaseURL , "http://monitor.ug.edu.gh");
Set($WebURL , $WebBaseURL . $WebPath . "/");
##############################################


#######/apache22/Includes/http-local.conf#######

<VirtualHost 41.204.63.200:80>
   ServerName monitor.ug.edu.gh
   ServerAdmin ppomary at ug.edu.gh

   DocumentRoot /usr/local/share/rt38/html
   AddDefaultCharset UTF-8
   PerlRequire /usr/local/bin/webmux.pl

   <Directory /usr/local/share/rt38/html/>
       order allow,deny
       Allow from all


       SetHandler perl-script
       PerlResponseHandler RT::Mason
     </Directory>
Alias /rt/ /usr/local/share/rt38/html/
ErrorLog /var/log/httpd-error.log
TransferLog /var/log/apache2.access
</VirtualHost>
###############################################

Counting on your usual help.

Thank You.

-- 
Pamela Pomary
ICT Assistant (Network Administration)
ICT Directorate
University of Ghana
Tel:+233 244 994 020
g-mail:ppomary at gmail.com
yahoo-mail: mawua2005 at yahoo.com
skype:ppomary




More information about the afnog mailing list