Have you read Ruslan's email yet?  If you are running mod_perl 2.x, you
don't need: PerlModule Apache2::compat

I'd remove that first and then see if things work before worrying about
which version of mod_perl you have or switching to FastCGI.

But, to answer your questions:

More than likely, if you're running Apache 2.2.8, you are running mod_perl
2.x.  To find out the version of mod_perl, use the package managment system
for that operating system.  For Linux systems, simply do: yum info
mod_perl.

You can also do a rpm query:  rpm -qa | grep mod_perl

If installed via source, go back and look at the source package.  There are
other methods as well.

As for FastCGI, it's a bit more complicated and depends on the flavor:

There's the Apache mod_fastcgi module available from www.fastcgi.com

Then there is mod_fcgid available from fastcgi.coremail.cn

Depending on the Linux distro, either or both may be available via yum.
For Fedora, the latter version was available for 6/7, not sure about 8 (yum
info mod_fcgid).

Since I am using mod_fcgid, here's my Apache RT config:

LoadModule fcgid_module modules/mod_fcgid.so

# Use FastCGI to process .fcg .fcgi & .fpl scripts
# Don't do this if mod_fastcgi is present, as it will try to do the same
thing
<IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
</IfModule>

# Sane place to put sockets and shared memory file
SocketPath run/mod_fcgid
SharememPath run/fcgid_shm

# Main instance
#FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 360 -processes
4
Alias /rt/NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/



James Moseley




                                                                           
             Shannon Adams                                                 
             <shannon_adams68@                                             
             yahoo.com>                                                 To 
                                       [EMAIL PROTECTED]           
             05/13/2008 06:35                                           cc 
             PM                                                            
                                                                   Subject 
                                       Re: [rt-users] RT 3.6.6 - httpd     
                                       won't start                         
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi James,

Thanks for the response.  After making the correction, httpd now starts.

I am running Apache/2.2.8.  I am not sure how to tell what version of
mod_perl I am running.  How can I tell what version I am using or
better yet, what do I need to change in the in the following rt3.conf
to switch to FastCGI?

httpd starts - but I get the following when browsing to
rtbak.bigrocksports.com:

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.

rt3.conf follows:

<VirtualHost 10.9.10.251>
  ServerName itadmintest.bigrocksports.com
  DocumentRoot /opt/rt3/share/html
  AddDefaultCharset UTF-8

  PerlModule Apache2::compat

  Alias /rt "/opt/rt3/share/html"
  PerlModule Apache::DBI
  PerlRequire /opt/rt3/bin/webmux.pl

  <Directory /opt/rt3/share/html>
    AllowOverride All
    Options ExecCGI FollowSymLinks
    <IfModule mod_access.c>
        Order allow,deny
      Allow from all
    </IfModule>
  </Directory>

  <Location /rt>
    RewriteEngine On
    RedirectMatch permanent (.*)/$ $1/index.html
    AddDefaultCharset UTF-8
    SetHandler perl-script
    PerlHandler RT::Mason
  </Location>

</VirtualHost>


Thanks for the help,
Shannon

----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Shannon Adams <[EMAIL PROTECTED]>
Cc: rt-users@lists.bestpractical.com;
[EMAIL PROTECTED]
Sent: Tuesday, May 13, 2008 5:39:39 PM
Subject: Re: [rt-users] RT 3.6.6 - httpd won't start

I think there's a typo in the Wiki, at least on the last line:

# this line applies to Apache2+mod_perl2 only
   # Below line might be incorrect, I had to use:
   #     PerlModule Apache2::compat
   # mod_perl 2.0.1 from FC4 Linux
   PerlModule Apache2 Apache::compat

Sould be: PerlModule Apache2::compat

Look at the error logs, it's trying to find an Apache2 perl module that
doesn't exist.



James Moseley





             Shannon Adams
             <shannon_adams68@
            yahoo.com>                                                 To
             Sent by:                  rt-users@lists.bestpractical.com
             rt-users-bounces@                                          cc
             lists.bestpractic
            al.com                                                Subject
                                       [rt-users] RT 3.6.6 - httpd won't
                                       start
             05/13/2008 04:04
             PM








I went through the manual installation Wiki and cleaned up my rt3.conf.  I
think it should be correct now.  However, httpd won't start.  Here is what
I get in the error_log:

Tue May 13 15:46:51 2008] [error] Can't locate Apache2.pm in @INC (@INC
contains: /opt/rt3/local/lib /opt/rt3/lib /usr/lib/perl5/site_perl/5.8.8
/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7
/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6
/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5
/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 209) line
3.\n
[Tue May 13 15:46:51 2008] [error] Can't load Perl module Apache2 for
server itadmin_test.bigrocksports.com:0, exiting...


httpd -v shows:
Server version: Apache/2.2.8 (Unix)
Server built:   Jan 28 2008 06:24:44

rt3.conf:
<VirtualHost 10.9.10.251>
   ServerName itadmin_test.bigrocksports.com
   DocumentRoot /opt/rt3/share/html
   AddDefaultCharset UTF-8

   # this line applies to Apache2+mod_perl2 only
   # Below line might be incorrect, I had to use:
   #     PerlModule Apache2::compat
   # mod_perl 2.0.1 from FC4 Linux
   PerlModule Apache2 Apache::compat

  Alias /rt "/opt/rt3/share/html"
  PerlModule Apache::DBI
  PerlRequire /opt/rt3/bin/webmux.pl

  <Directory /opt/rt3/share/html>
    AllowOverride All
    Options ExecCGI FollowSymLinks
    <IfModule mod_access.c>
        Order allow,deny
      Allow from all
    </IfModule>
  </Directory>

  <Location /rt>
    RewriteEngine On
    RedirectMatch permanent (.*)/$ $1/index.html
    AddDefaultCharset UTF-8
    SetHandler perl-script
    PerlHandler RT::Mason
  </Location>

</VirtualHost>

Do you see anything that would cause httpd not to start?

Shannon




_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com





_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to