Re: [rt-users] RT Installation

2012-08-27 Thread Mik J
- Mail original -

 De : Christian Loos cl...@netsandbox.de
  In the documentations that I read they say that I'll have to access the 
 URL http://192.168.1.1/rt
  But if I list the directory /var/www/htdocs/rt there is no webpage
 
  # ls /var/www/htdocs/rtx/
  bin             etc             local             share
  docs            lib                sbin            var
 
  I would like to mention that I change the http.conf, 
 configuredRT_SiteConfig.pm and ran make initialize-database
  I ran the ./configure command in the first step of my installation and I 
 would expect to see in the /var/www/htdocs/rt directory a file such as 
 index.pl 
 or index.html
 
  Does anyone have an idea ?
  For those who doesn't have an idea could you ls the rt directory.
 
  Thank you
 
 
 In your case what you are locking for is in:
 /var/www/htdocs/rt/share/html/
 
 Also 4.0.6 is the current version and 4.0.7 will be release in the next
 days/weeks. So you should use an more recent version for an new
 installation.
 
 Chris


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@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



Re: [rt-users] RT Installation

2012-08-27 Thread Mik J
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@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 cl...@netcologne.de
À : rt-us...@lists.fsck.com
Cc : rt-users@lists.bestpractical.com rt-users@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@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







[rt-users] RT Installation

2012-08-25 Thread Mik J
Hello,

I'm trying to install RT and I'm a bit confused.
I have read many documentations.

During the install process I did
# cd rt-4.0.5
# ./configure --with-db-database=rtrackerdb --with-db-rt-user=rt 
--with-db-rt-pass='rtpwd' --with-db-dba=mydba --prefix=/var/www/htdocs/rt 

In the documentations that I read they say that I'll have to access the URL 
http://192.168.1.1/rt
But if I list the directory /var/www/htdocs/rt there is no webpage

# ls /var/www/htdocs/rtx/
bin etc local share
docs    lib    sbin    var

I would like to mention that I change the http.conf, configuredRT_SiteConfig.pm 
and ran make initialize-database
I ran the ./configure command in the first step of my installation and I would 
expect to see in the /var/www/htdocs/rt directory a file such as index.pl or 
index.html

Does anyone have an idea ?
For those who doesn't have an idea could you ls the rt directory.

Thank you