FastCGI: server error


I have installed Perl 5.8 (at Jesse's most severe recommendation) and

reinstalled RT3.0.3. I’m using RH7.3, Mysql 4.0.12, mod_fastcgi 2.4.0 and
Apache 1.3.27-2. All went well (relatively) until I attempted to start the
Apache server and get the following error:

[Fri Jul 4 11:19:56 2003] [notice] FastCGI: process manager initialized
(pid 14984)
[Fri Jul 4 11:19:56 2003] [warn] FastCGI: server
"/usr/local/rt3/bin/mason_handler.fcgi" started (pid 14985)
[Fri Jul 4 11:19:57 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux)
mod_fastcgi/2.4.0 mod_python/2.7.8 Python/1.5.2 mod_ssl/2.8.12
OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2 mod_perl/1.26 mod_throttle/3.1.2
configured – resuming normal operations
[Fri Jul 4 11:19:57 2003] [notice] suEXEC mechanism enabled (wrapper:
[Fri Jul 4 11:19:57 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
Can’t locate /usr/local/rt3/etc/ in @INC (@INC contains:
/usr/local/rt3/local/lib /usr/local/rt3/lib
/usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at
/usr/local/rt3/lib/ line 105.
Compilation failed in require at /usr/local/rt3/bin/mason_handler.fcgi line
[Fri Jul 4 11:20:03 2003] [warn] FastCGI: server
"/usr/local/rt3/bin/mason_handler.fcgi" (pid 14985) terminated by calling
exit with status ‘13’

Here is the output from the installation:

[root@hilo rt-3-0-3]# PERL=/usr/local/bin/perl
./configure --prefix=/usr/local/rt3 --with-web-group=apache --with-web-user=
checking for a BSD-compatible install… /usr/bin/install -c
checking for perl… /usr/local/bin/perl
checking for chosen layout… RT3
configure: creating ./config.status
config.status: creating sbin/rt-setup-database
config.status: creating sbin/rt-test-dependencies
config.status: creating Makefile
config.status: creating etc/
config.status: creating lib/
config.status: creating lib/t/00smoke.t
config.status: creating lib/t/01harness.t
config.status: creating lib/t/02regression.t
config.status: creating lib/t/
config.status: creating lib/t/
config.status: creating bin/mason_handler.fcgi
config.status: creating bin/mason_handler.scgi
config.status: creating bin/mason_handler.svc
config.status: creating bin/rt-commit-handler
config.status: creating bin/rt-crontool
config.status: creating bin/rt-mailgate
config.status: creating bin/
[root@hilo rt-3-0-3]# /usr/local/bin/perl
sbin/rt-test-dependencies --with-mysql --with-fastcgi
MASON dependencies:
Params::Validate 0.02…found
Cache::Cache …found
Exception::Class …found
HTML::Mason 1.16…found
MLDBM …found
Errno …found
FreezeThaw …found
Digest::MD5 …found
CGI::Cookie 1.20…found
Storable …found
Apache::Session 1.53…found
FASTCGI dependencies:
CGI …found
FCGI …found
CGI::Fast …found
MAILGATE dependencies:
HTML::TreeBuilder …found
HTML::FormatText …found
Getopt::Long …found
LWP::UserAgent …found
CLI dependencies:
Getopt::Long 2.24…found
CORE dependencies:
Digest::MD5 …found
DBI 1.18…found
Test::Inline …found
Class::ReturnValue 0.40…found
DBIx::SearchBuilder 0.86…found
Text::Template …found
File::Spec 0.8…found
HTML::Entities …found
Net::Domain …found
Log::Dispatch 2.0…found
Locale::Maketext 1.04…found
Locale::Maketext::Lexicon 0.25…found
Locale::Maketext::Fuzzy …found
MIME::Entity 5.108…found
Mail::Mailer 1.57…found
Net::SMTP …found
Text::Wrapper …found
Time::ParseDate …found
File::Temp …found
Term::ReadKey …found
Text::Autoformat …found
Text::Quoted …found
DEV dependencies:
Regexp::Common …found
Time::HiRes …found
Test::Inline …found
WWW::Mechanize …found
MYSQL dependencies:
DBD::mysql 2.1018…found
[root@hilo rt-3-0-3]# PERL=/usr/local/bin/perl make install
mkdir -p //usr/local/rt3/etc
cp etc/ //usr/local/rt3/etc/
[ -f //usr/local/rt3/etc/ ] || cp etc/
chgrp rt //usr/local/rt3/etc/
chown root //usr/local/rt3/etc/
chgrp rt //usr/local/rt3/etc/
chown root //usr/local/rt3/etc/
Installed configuration. about to install rt in /usr/local/rt3
mkdir -p //usr/local/rt3/var/log
mkdir -p //usr/local/rt3/var/mason_data
mkdir -p //usr/local/rt3/var/mason_data/cache
mkdir -p //usr/local/rt3/var/mason_data/etc
mkdir -p //usr/local/rt3/var/mason_data/obj
mkdir -p //usr/local/rt3/var/session_data
mkdir -p //usr/local/rt3/share/html
mkdir -p //usr/local/rt3/local/html
mkdir -p //usr/local/rt3/local/etc
mkdir -p //usr/local/rt3/local/po
[ -d //usr/local/rt3/lib ] || mkdir //usr/local/rt3/lib
cp -rp lib/* //usr/local/rt3/lib
mkdir -p //usr/local/rt3/etc
cp -rp
mkdir -p //usr/local/rt3/bin
chmod +x bin/rt-mailgate
cp -rp
mkdir -p //usr/local/rt3/sbin
chmod +x sbin/rt-setup-database
cp -rp
[ -d //usr/local/rt3/share/html ] || mkdir //usr/local/rt3/share/html
cp -rp ./html/* //usr/local/rt3/share/html
cp -rp ./local/html/* //usr/local/rt3/local/html
cp: cannot stat ./local/html/*': No such file or directory make: [local-install] Error 1 (ignored) cp -rp ./local/po/* //usr/local/rt3/local/po cp: cannot stat./local/po/’: No such file or directory
make: [local-install] Error 1 (ignored)
cp -rp ./local/etc/
cp: cannot stat `./local/etc/*’: No such file or directory
make: [local-install] Error 1 (ignored)

RT 3.0.0 - RT 3.0.2 would accidentally create a file instead of a dir

[ -f //usr/local/rt3/share/doc ] && rm //usr/local/rt3/share/doc
make: [doc-install] Error 1 (ignored)
[ -d //usr/local/rt3/share/doc ] || mkdir //usr/local/rt3/share/doc
cp -rp ./README //usr/local/rt3/share/doc

Make the libraries readable

chmod 0755 //usr/local/rt3
chown -R root //usr/local/rt3/lib
chgrp -R bin //usr/local/rt3/lib
chmod -R u+rwX,go-w,go+rX //usr/local/rt3/lib
chmod 0755 //usr/local/rt3/bin
chmod 0755 //usr/local/rt3/bin
chmod 0755 //usr/local/rt3/etc
chmod 0500 //usr/local/rt3/etc/*
#TODO: the config file should probably be able to have its

owner set seperately from the binaries.

chown -R root //usr/local/rt3/etc
chgrp -R rt //usr/local/rt3/etc
chmod 0550 //usr/local/rt3/etc/
chmod 0550 //usr/local/rt3/etc/

Make the interfaces executable and setgid rt

chown root //usr/local/rt3/bin/ //usr/local/rt3/bin/rt-mailgate
//usr/local/rt3/bin/rt-crontool //usr/local/rt3/bin/mason_handler.fcgi
chgrp rt //usr/local/rt3/bin/ //usr/local/rt3/bin/rt-mailgate
//usr/local/rt3/bin/rt-crontool //usr/local/rt3/bin/mason_handler.fcgi
chmod 0755 //usr/local/rt3/bin/ //usr/local/rt3/bin/rt-mailgate
//usr/local/rt3/bin/rt-crontool //usr/local/rt3/bin/mason_handler.fcgi
chmod g+s //usr/local/rt3/bin/mason_handler.fcgi

Make the web ui readable by all.

chmod -R u+rwX,go-w,go+rX //usr/local/rt3/share/html
chown -R root //usr/local/rt3/share/html
chgrp -R bin //usr/local/rt3/share/html

Make the web ui’s data dir writable

chmod 0770 //usr/local/rt3/var/mason_data
chown -R apache //usr/local/rt3/var/mason_data
chgrp -R apache //usr/local/rt3/var/mason_data
Congratulations. RT has been installed.

You must now configure RT by editing /usr/local/rt3/etc/

(You will definitely need to set RT’s database password before continuing.
Not doing so could be very dangerous)

After that, you need to initialize RT’s database by running
’make initialize-database’
[root@hilo rt-3-0-3]# PERL=/usr/local/bin/perl make initialize-database
/usr/local/bin/perl //usr/local/rt3/sbin/rt-setup-database --action
init --dba root --prompt-for-dba-passwordIn order to create a new database
and grant RT access to that database,
this script needs to connect to your mysql instance on localhost as root.
Please specify that user’s database password below. If the user has no
password, just press return.

Password: Now creating a database for RT.
Creating mysql database rt3.
Now populating database schema.
Creating database schema.
schema sucessfully inserted
Now inserting database ACLs
Now inserting RT core system objects
Checking for existing system user…not found. This appears to be a new
Creating system user…done.
Now inserting RT data
Creating Superuser ACL…Creating groups…
Creating users…[Fri Jul 4 21:18:03 2003] [warning]: Use of uninitialized
value in subtraction (-) at
line 96.
10.[Fri Jul 4 21:18:03 2003] [warning]: Use of uninitialized value in
subtraction (-) at
line 96.
Creating queues…1.2.done.
Creating ACL…2.3.done.
Creating ScripActions…
Creating ScripConditions…
Creating templates…
Creating scrips…
[root@hilo rt-3-0-3]#

Here is the associated excerpt from the httpd.conf:

<VirtualHost *:666>
DocumentRoot /usr/local/rt3/share/html
AddHandler fastcgi-script fcgi fcgi fpl
AddDefaultCharset UTF-8
FastCgiServer /usr/local/rt3/bin/mason_handler.fcgi
ScriptAlias / /usr/local/rt3/bin/mason_handler.fcgi/

SetHandler fastcgi-script
PerlHandler RT::Mason

Any help would be apprecaited.

Best Regards,

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.