[rt-users] RT Installation

Mik J mikydevel at yahoo.fr
Mon Aug 27 10:39:05 EDT 2012


Thank you Christian for the link it really helped,

I looked at that page
http://wiki-archive.bestpractical.com/view/ManualApacheConfig
and the one you gave me

And they said that only mod_perl 1.9x causes problems. Actually I use version 1.31

The reason why I use Apache 1.3.29 and mod-perl 1.31 is because they are provided with OpenBSD (I use version 5.1 which has been release in may)

I tried this configuration for my virtualhost configuration

<VirtualHost *>
    ServerAdmin root at localhost
    DocumentRoot /htdocs
    ServerName 192.168.1.1
    <Location /rty/>
        AddDefaultCharset UTF-8
        SetHandler perl-script
        PerlHandler Plack::Handler::Apache1
        PerlSetVar psgi_app /var/www/htdocs/rty/sbin/rt-server
        PerlRequire /var/www/htdocs/rty/monstartup.pl
        Options ExecCGI Indexes FollowSymLinks
        PerlSendHeader On
        Order allow,deny
        Allow from all
    </Location>
    <Perl>
      use Plack::Handler::Apache1;
      Plack::Handler::Apache1->preload("/var/www/htdocs/rty/sbin/rt-server");
    </Perl>
    ErrorDocument 404 /404.html
    ErrorLog logs/192.168.1.1-error_log
    CustomLog logs/192.168.1.1-access_log common
</VirtualHost>

I have now the following error in my logs when my Apache is chrooted

[Mon Aug 27 14:17:37 2012] [error]: could not find component for initial path '/share/html' (component roots are: '/var/www/htdocs/rty/local/html', '/var/www/htdocs/rty/share/html') (/var/www/htdocs/rty/sbin/../lib/RT/Interface/Web/Handler.pm:208)

If I remove the chroot I have this error
[Mon Aug 27 16:24:00 2012] [error] [client 192.168.1.111] File does not exist: /var/www/htdocs/Install/index.html
It's trying to look the index.html in /var/www/htdocs/Install/ instead of /var/www/htdocs/rty/share/html/Install/

Both problems seem to be path related. I'm going to keep on searching but by chance if anyone had this problem, I'll be pleased to hear it


I have been able to run RT in standalone four hours ago, I was very happy about that.




>________________________________
> De : Christian Loos <cloos at netcologne.de>
>À : rt-users at lists.fsck.com
>Cc : "rt-users at lists.bestpractical.com" <rt-users at lists.bestpractical.com> 
>Envoyé le : Lundi 27 août 2012 14h03
>Objet : Re: [rt-users] RT Installation
> 
>Am 27.08.2012 09:29, schrieb Mik J:
>> Hello Christian,
>> 
>> Thank you for your answer.
>> 
>> I didn't install RT 4.0.6 because there was a compatibility version issue with URI (>= 1.59). Mine was older.
>> Now that I have and updated URI perl module, I installed RT 4.0.6
>> My second problem is the Apache virtualhost configuration. I use Apache 1.3.29
>> So far it looks like this:
>> <VirtualHost *>
>>     ServerAdmin root at localhost
>>     DocumentRoot /htdocs
>>     ServerName 192.168.99.1
>>     PerlModule Apache::PerlRun
>>     <Location /rtx/>
>>         AddDefaultCharset UTF-8
>>         SetHandler perl-script
>>         PerlHandler Apache::PerlRun
>>         PerlRequire /var/www/htdocs/rty/mystartup.pl
>>         Options ExecCGI Indexes FollowSymLinks
>>         PerlSendHeader On
>>         Order allow,deny
>>         Allow from all
>>     </Location>
>>     ErrorDocument 404 /404.html
>>     ErrorLog logs/192.168.99.1-error_log
>>     CustomLog logs/192.168.99.1-access_log common
>> </VirtualHost>
>> 
>> Should I use RT::Mason as the PerlHandler ? (Many wikis talk about it)
>> In my setup I have Apache chrooted, so mod_perl loads the installed modules at startup (I specify the list in mystartup.pl)
>> As you can see RT is installed in /htdocs/rty directory. Do you have any comment on my Apache configuration ?
>> 
>> Thank you
>
>You should read docs/web_deployment.pod or the online version:
>https://github.com/bestpractical/rt/blob/stable/docs/web_deployment.pod
>
>Notice that mod_perl 1.xx (which I think apache 1.3 is using) isn't
>supported.
>
>Chris
>
>
>
>




More information about the rt-users mailing list