Has anyone have luck setting up and configuring RT on Ubuntu 12.04. I have done everything thus far, but I am having issue with my apache2 configuration. This is what I have in my configuration:
<VirtualHost *:80>
AddDefaultCharset UTF-8
perlsetEnv RT_SITE_CONFIG /etc/rt4/RT_SiteConfig.pm
DocumentRoot "/opt/rt4/share/html"
<Location />
Order allow,deny
Allow from all
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>
Has anyone have luck setting up and configuring RT on Ubuntu 12.04. I have done everything
thus far, but I am having issue with my apache2 configuration. This is what I have in my
configuration:
Since you haven’t given the error you get, it’s hard to say what’s
going on.
As Kevin said, an error would help, tho the only differences I see in
yours from ours is “SetHandler perl-script” and I also remember having
to add a “LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so”
line just before the Virtual host line. (If anyone can tell me where it
/should/ go, it would be appreciated. It landed there when I was
fighting with 9.04?)
-MattOn 06/20/2012 12:01 PM, Borngunners wrote:
Has anyone have luck setting up and configuring RT on Ubuntu 12.04. I
have done everything thus far, but I am having issue with my apache2
configuration. This is what I have in my configuration:
<VirtualHost *:80>
AddDefaultCharset UTF-8
perlsetEnv RT_SITE_CONFIG /etc/rt4/RT_SiteConfig.pm
DocumentRoot "/opt/rt4/share/html"
<Location />
Order allow,deny
Allow from all
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
use Plack::Handler::Apache2;
As Kevin said, an error would help, tho the only differences I see in yours from ours is
“SetHandler perl-script” and I also remember having to add a "LoadModule perl_module
SetHandler perl-script is not recommended.
SetHandler modperl is the documented configuration and is correct
Internal Server Error
The server encountered an internal error ormisconfiguration and was unable to completeyour request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred,and anything you might have done that may havecaused the error.
More information about this error may be availablein the server error log.
As Kevin said, an error would help, tho the only differences I see in yours
from ours is
“SetHandler perl-script” and I also remember having to add a "LoadModule
perl_module
SetHandler perl-script is not recommended.
SetHandler modperl is the documented configuration and is correct
-kevin
/usr/lib/apache2/modules/mod_perl.so" line just before the Virtual host
line. (If anyone can
tell me where it should go, it would be appreciated. It landed there when
I was fighting with
9.04?)
-Matt
Has anyone have luck setting up and configuring RT on Ubuntu 12.04. I
have done everything
thus far, but I am having issue with my apache2 configuration. This is
what I have in my
configuration:
<VirtualHost *:80>
AddDefaultCharset UTF-8
perlsetEnv RT_SITE_CONFIG /etc/rt4/RT_SiteConfig.pm
DocumentRoot "/opt/rt4/share/html"
<Location />
Order allow,deny
Allow from all
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>
#tail -n2 /etc/apache2/sites-available/default
#Include "/opt/rt4/apache2-modperl2.conf"
</VirtualHost>
When I comment out "use Plack::Handler::Apache2;", apache2 does not give
Excerpts from Borngunners’s message of Wed Jun 20 17:21:01 -0400 2012:
This is the error message:
Internal Server Error
The server encountered an internal error ormisconfiguration and was unable to completeyour request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred,and anything you might have done that may havecaused the error.
More information about this error may be availablein the server error log.
I just installed libplack-perl using the following command suggested sudo apt-get install libplack-perl
After installing it, I decided to include “use Plack::Handler::Apache2” in my apache2 configuration. This is the following error message I got:
Starting web server apache2 Syntax error on line 28 of /etc/apache2/sites-enabled/000-default:
Can’t locate JSON.pm in @INC (@INC contains: /opt/rt4/sbin/…/local/lib /opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/…/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2) at /opt/rt4/sbin/…/lib/RT/Interface/Web.pm line 73.\nBEGIN failed–compilation aborted at /opt/rt4/sbin/…/lib/RT/Interface/Web.pm line 73.\nCompilation failed in require at /opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValue.pm line 54.\nBEGIN failed–compilation aborted at /opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValue.pm line 54.\nCompilation failed in require at /opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValues.pm line 55.\nBEGIN failed–compilation aborted at /opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValues.pm line 55.\nCompilation failed in require at /opt/rt4/sbin/…/lib/RT/CustomField.pm line 63.\nBEGIN failed–compilation aborted at /opt/rt4/sbin/…/lib/RT/CustomField.pm line 63.\nCompilation failed in require at /opt/rt4/sbin/…/lib/RT/System.pm line 122.\nBEGIN failed–compilation aborted at /opt/rt4/sbin/…/lib/RT/System.pm line 122.\nCompilation failed in require at /opt/rt4/sbin/…/lib/RT.pm line 503.\n
Action ‘start’ failed.
The Apache error log may have more information.
And after looking into the apache2 error log, this is the erroe message I get:
$
[Thu Jun 21 11:26:15 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 21 11:26:19 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Thu Jun 21 11:26:37 2012] [notice] caught SIGTERM, shutting down
if I comment out “use Plack::Handler::Apache2”, I won’t have any error message after starting apache2.
I just installed libplack-perl using the following command suggested sudo apt-get install
libplack-perl
After installing it, I decided to include “use Plack::Handler::Apache2” in my apache2
configuration. This is the following error message I got:
Have you installed any of the RT dependencies on this machine?
The README explains how to run make testdeps and make fixdeps. You’ll
need to run those and either install from CPAN or translate the needed
perl modules into the appropriate Ubuntu packages.
Sounds like you didnt finish the ‘make fixdeps’ part of the setup. Some
items (the last time I installed from the tarball) will not / can not be
installed that way. In which case it’ll say in the last few lines about
how it could not install ‘Thing::subthing’ then just head on over to
cpan and install it manually. Looking at my server, it looks like
DateTime, GD, prefork, and XML-RSS are the packages I had to manually
install. Tho I’m not positive.On 06/21/2012 8:33 AM, Borngunners wrote:
I just installed libplack-perl using the following command suggested
sudo apt-get install libplack-perl
After installing it, I decided to include “use
Plack::Handler::Apache2” in my apache2 configuration. This is the
following error message I got:
Starting web server apache2 Syntax error on line 28 of
/etc/apache2/sites-enabled/000-default:
Can’t locate JSON.pm in @INC (@INC contains:
/opt/rt4/sbin/…/local/lib
/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/…/lib
/etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14
/usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2) at
/opt/rt4/sbin/…/lib/RT/Interface/Web.pm line 73.\nBEGIN
failed–compilation aborted at
/opt/rt4/sbin/…/lib/RT/Interface/Web.pm line 73.\nCompilation failed
in require at /opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValue.pm line
54.\nBEGIN failed–compilation aborted at
/opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValue.pm line
54.\nCompilation failed in require at
/opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValues.pm line 55.\nBEGIN
failed–compilation aborted at
/opt/rt4/sbin/…/lib/RT/ObjectCustomFieldValues.pm line
55.\nCompilation failed in require at
/opt/rt4/sbin/…/lib/RT/CustomField.pm line 63.\nBEGIN
failed–compilation aborted at /opt/rt4/sbin/…/lib/RT/CustomField.pm
line 63.\nCompilation failed in require at
/opt/rt4/sbin/…/lib/RT/System.pm line 122.\nBEGIN failed–compilation
aborted at /opt/rt4/sbin/…/lib/RT/System.pm line 122.\nCompilation
failed in require at /opt/rt4/sbin/…/lib/RT.pm line 503.\n
Action ‘start’ failed.
The Apache error log may have more information.
And after looking into the apache2 error log, this is the erroe
message I get:
$
[Thu Jun 21 11:26:15 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 21 11:26:19 2012] [notice] Apache/2.2.22 (Ubuntu)
PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Thu Jun 21 11:26:37 2012] [notice] caught SIGTERM, shutting down
if I comment out “use Plack::Handler::Apache2”, I won’t have any error
message after starting apache2.
I ran make fixdeps and other dependencies manually. I also ran apache2 to start the apache server. This is the respond I got after running the apache command:
Starting web server apache2 [Thu Jun 21 17:26:51 2012] [warning]: The ActiveStatus configuration has been replaced by the new Lifecycles
functionality. You should set the ‘active’ property of the ‘default’
lifecycle and add transition rules; see RT_Config.pm for documentation. (/opt/rt4/sbin/…/lib/RT/Config.pm:766)
[ OK ]
Now, I am not able to login as root and the default password. I am not able to login using ldap also.
Sounds like you didnt finish the ‘make fixdeps’ part of the setup. Some items (the last time I installed from the tarball) will not / can not be installed that way. In which case it’ll say in the last few lines about how it could not install ‘Thing::subthing’ then just head on over to cpan and install it manually. Looking at my server, it looks like DateTime, GD, prefork, and XML-RSS are the packages I had to manually install. Tho I’m not positive.
I just installed libplack-perl using the following command suggested sudo apt-get install libplack-perl
After installing it, I decided to include “use Plack::Handler::Apache2” in my apache2 configuration. This is the following error message I got:
root@helpdesks:/etc/apache2/sites-available# /etc/init.d/apache2 start
* Starting web server apache2 Syntax error on line 28 of /etc/apache2/sites-enabled/000-default:
Can't locate JSON.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/../lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2) at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 54.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 54.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 55.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 55.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT/CustomField.pm line 63.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/CustomField.pm line 63.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT/System.pm line 122.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/System.pm line 122.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT.pm line 503.\n
Action 'start' failed.
The Apache error log may have more information.
And after looking into the apache2 error log, this is the erroe message I get:
$
[Thu Jun 21 11:26:15 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 21 11:26:19 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Thu Jun 21 11:26:37 2012] [notice] caught SIGTERM, shutting down
if I comment out "use Plack::Handler::Apache2", I won't have any error message after starting apache2.
Thanks