Fastcgi setup (debian, rt3.6, apache2

I’m trying to use libapache2-mod-fcgid (debian apparently has a problem
with the fastcgi license). It looks like it’s already setup in
/etc/apache/modes-enabled/.

What am i missing? Google helped a little, but i can’t find a solution.

Starting web server (apache2)…Syntax error on line 27 of
/etc/request-tracker3.6/apache2-fastcgi.conf:
Invalid command ‘FastCgiServer’, perhaps misspelled or defined by a
module not included in the server configuration
failed!

Tom Vier tom@triadsys.com
Sysadmin - Support Technician
Triad Systems Engineering, Inc.

I’m trying to use libapache2-mod-fcgid (debian apparently has a problem

libapache2-mod-fastcgi != libapache2-mod-fcgid

install libapache2-mod-fastcgi, and it should works :wink:

I’m trying to use libapache2-mod-fcgid (debian apparently has a problem
with the fastcgi license). It looks like it’s already setup in
/etc/apache/modes-enabled/.

What am i missing? Google helped a little, but i can’t find a solution.

Starting web server (apache2)…Syntax error on line 27 of
/etc/request-tracker3.6/apache2-fastcgi.conf:
Invalid command ‘FastCgiServer’, perhaps misspelled or defined by a
module not included in the server configuration
failed!

Hi,

as I recall, you don’t need the ‘FastCgiServer’ directive at all with
mod_fcgid. There’s an example configuration file shipped in newer Debian
packages in unstable; see eg.

http://svn.debian.org/wsvn/pkg-request-tracker/packages/request-tracker3.6/trunk/debian/conf/apache2-fcgid.conf?op=file

Hope this helps,
Niko Tyni ntyni@debian.org

Same problem, unfortunately. I have both installed. Apache complains
that FastCgiIpcDir and FastCgiServer are invalid commands, when i
include rt’s apache2 conf file in sites-enabled/rt.

I have these files, so i looks to me like it should be loading those
modules.

tom:/etc/apache2# cat mods-available/fastcgi.conf

AddHandler fastcgi-script .fcgi
#FastCgiWrapper /usr/lib/apache2/suexec2
FastCgiIpcDir /var/lib/apache2/fastcgi

tom:/etc/apache2# cat mods-available/fcgid.conf

AddHandler fcgid-script .fcgi
SocketPath /var/lib/apache2/fcgid/sock
IPCConnectTimeout 20

and i’ve tried with both fastcgi:

lrwxrwxrwx 1 root root 30 2007-12-26 11:29 fastcgi.conf →
…/mods-available/fastcgi.conf
lrwxrwxrwx 1 root root 30 2007-12-26 11:29 fastcgi.load →
…/mods-available/fastcgi.load

and fcgid modules enabled (never both, in case they conflict).

Tom Vier tom@triadsys.com
Sysadmin - Support Technician
Triad Systems Engineering, Inc.

Emmanuel Lacour wrote:> On Fri, Dec 21, 2007 at 04:49:04PM -0500, Tom Vier wrote:

I’m trying to use libapache2-mod-fcgid (debian apparently has a problem

libapache2-mod-fastcgi != libapache2-mod-fcgid

install libapache2-mod-fastcgi, and it should works :wink:

I got it working. The suexec module wasn’t enabled and i was including
the rt config inside a virtual host (i just moved it up a level to the
first line of site-enabled/rt).

Tom Vier tom@triadsys.com
Sysadmin - Support Technician
Triad Systems Engineering, Inc.

Tom Vier wrote:

Now i’m stumped. I have both apache2 and mysql running on this machine.
RT works if i access using 127.0.0.1 or it’s lan address. However, if i
try the lan address from another machine on the lan, only the login
screen works. After you click login, the browser goes to /index.html
(empty file in /var/www/) instead of /rt/index.html. The html source
shows the post action as “index.html” from a local browser and from
another machine (using both firefox and ie).

/etc/apache2/sites-enabled:

Include /etc/request-tracker3.6/apache2-fastcgi.conf

NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost

     DocumentRoot /var/www/
     <Directory />
             Options FollowSymLinks
             AllowOverride None

tried these two lines, no help:

Order allow,deny

Allow from all

     </Directory>

     <Directory /var/www/>
             Options Indexes FollowSymLinks MultiViews
             AllowOverride None
             Order allow,deny
             allow from all
             # This directive allows us to have apache2's default 

start page
# in /apache2-default/, but still have / go to the
right place

disabling this makes no diff:

RedirectMatch ^/$ /apache2-default/

     </Directory>

     ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
     <Directory "/usr/lib/cgi-bin">
             AllowOverride None
             Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
             Order allow,deny
             Allow from all
     </Directory>

     ErrorLog /var/log/apache2/error.log

     # Possible values include: debug, info, notice, warn, error, crit,
     # alert, emerg.
     LogLevel debug

     CustomLog /var/log/apache2/access.log combined
     ServerSignature On

 Alias /doc/ "/usr/share/doc/"
 <Directory "/usr/share/doc/">
     Options Indexes MultiViews FollowSymLinks
     AllowOverride None

Order deny,allow

Deny from all

Allow from 127.0.0.0/255.0.0.0 ::1/128

 </Directory>

/etc/request-tracker3.6/apache2-fastcgi.conf:

You might want to enable this line

AddDefaultCharset UTF-8

These are set properly by the libapache2-mod-fastcgi package

AddHandler fastcgi-script fcgi
#FastCgiIpcDir /var/run/fastcgi

Tell FastCGI to trigger on the handler

FastCgiServer /usr/share/request-tracker3.6/libexec/mason_handler.fcgi

Bypass FastCGI for images

Alias /rt/NoAuth/images /usr/share/request-tracker3.6/html/NoAuth/images

Use the handler for everything else

ScriptAlias /rt /usr/share/request-tracker3.6/libexec/mason_handler.fcgi

<Location /var/www/rt/>
DirectoryIndex /rt/html/index.html

these made no diff:

Order deny,allow

Allow from all

Tom Vier tom@triadsys.com
Sysadmin - Support Technician
Triad Systems Engineering, Inc.

Tom Vier wrote: