Problems installing RT on Mandrake 10

Sorry but I think I may have sent this message earlier from my other
email address. This address was not subscribed to this list and I got
automatically notified of the fact. So I’m trying again. sigh…

I’m stuck installing rt-3.2.1, Can some one lend me some advice.I’m
hoping you can see where I have gone wrong. I’m thinking it is at the
Apache2 config side of this. I am running fastcgi, oh and I think I
needed to run suidperl because I sort of remember reading somewhere
that I had to if I was running apache2-suexec. So I’m running that too.

I’m confofused and tired, so forgive me if I sound dumb.

Here is my system info:

Fresh install of RT-3.2.1

Linux testme.staff 2.6.3-15mdk #1 Fri Jul 2 22:09:29 MDT 2004 i686
unknown unknown GNU/Linux

Configure parameters.
./configure --with-web-user=apache --with-web-group=apache
–with-rt-group=apache --with-rt-user=apache

MySQL server version: 4.0.18
I had created the DB with the make commands in the readme.

I have added a lot of the perl modules below via CPAN.

Make testdeps
[root@testme rt-3.2.1]# make testdeps
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --with-mysql
perl:
5.8.3…found
users:
rt group (apache)…found
bin owner (root)…found
libs owner (root)…found
libs group (bin)…found
web owner (apache)…found
web group (apache)…found
MASON dependencies:
Params::Validate 0.02…found
Cache::Cache …found
Exception::Class 1.14…found
HTML::Mason 1.23…found
MLDBM …found
Errno …found
FreezeThaw …found
Digest::MD5 2.27…found
CGI::Cookie 1.20…found
Storable 2.08…found
Apache::Session 1.53…found
XML::RSS …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::base …found
Digest::MD5 2.27…found
DBI 1.37…found
Test::Inline …found
Class::ReturnValue 0.40…found
DBIx::SearchBuilder 1.01…found
Text::Template …found
File::Spec 0.8…found
HTML::Entities …found
HTML::Scrubber 0.08…found
Net::Domain …found
Log::Dispatch 2.0…found
Locale::Maketext 1.06…found
Locale::Maketext::Lexicon 0.32…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 1.3…found
Tree::Simple 1.04…found
Scalar::Util …found
Module::Versions::Report …found
DEV dependencies:
Regexp::Common …found
Time::HiRes …found
Test::Inline …found
Apache::Test …found
HTML::Form …found
HTML::TokeParser …found
WWW::Mechanize …found
MYSQL dependencies:
DBD::mysql 2.1018…found

Installed Apache rpms and modules
apache2-common-2.0.48-5mdk
apache2-mod_disk_cache-2.0.48-5mdk
apache2-mod_cache-2.0.48-5mdk
apache2-mod_suexec-2.0.48-1mdk
apache2-source-2.0.48-6mdk
apache2-modules-2.0.48-5mdk
apache2-mod_proxy-2.0.48-5mdk
apache2-mod_php-2.0.48_4.3.4-1mdk
apache2-mod_ssl-2.0.48-5mdk
apache-devel-1.3.29-1mdk
apache2-manual-2.0.48-5mdk
apache-conf-2.0.48-1mdk
apache2-2.0.48-5mdk
apache2-mod_perl-2.0.48_1.99_11-3mdk

modutils-2.4.26-3mdk
module-init-tools-3.0-0.pre9.2mdk
apache2-mod_disk_cache-2.0.48-5mdk
apache2-mod_cache-2.0.48-5mdk
apache2-mod_suexec-2.0.48-1mdk
apache2-modules-2.0.48-5mdk
apache2-mod_proxy-2.0.48-5mdk
apache2-mod_php-2.0.48_4.3.4-1mdk
apache2-mod_ssl-2.0.48-5mdk
usermode-consoleonly-1.63-9mdk
usermode-1.63-9mdk
ghostscript-module-X-7.07-12mdk
apache2-mod_perl-2.0.48_1.99_11-3mdk

FASTCGI
I have compiled and installed mod_fastcgi for apache-2. And modified the
apache configs. Mandrake splits the apache2 config up into a number of
seperate files. The relevent files are httpd2.conf, commonHttpd.conf,
Vhosts.conf

Here are the conf settings

commonhttpd.conf

Web root cgi stuff - not sure what I am doing here.

<Directory /var/www/rt>
AllowOverride All
Options ExecCGI

Order allow,deny
Allow from all

Where the RT stuff was installed via make.

<Directory /opt/rt3/bin>
AllowOverride All
Options ExecCGI

Order allow,deny
Allow from all

Do I have to split the mason_handler.fcgi* out and put it into
/var/www/rt and then enable Apache to run cgi stuff from there? And then
do I have to enable Apache to run cgi stuff from /opt/rt3/bin?

FastcgiIpcDir "/tmp" FastCgiWrapper /usr/sbin/apache2-suexec FastCgiServer /var/www/rt/mason_handler.fcgi -idle-timeout 120 -user apache -group apache -processes 4

Httpd2.conf files
I added the mod_fastcgi file at the bottom of all these modules.
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
##LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
##LoadModule charset_lite_module modules/mod_charset_lite.so
##LoadModule case_filter_module modules/mod_case_filter.so
##LoadModule case_filter_in_module modules/mod_case_filter_in.so
##LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
##LoadModule mime_magic_module modules/mod_mime_magic.so
##LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
##LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
##LoadModule cgid_module modules/mod_cgid.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
##LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule fastcgi_module lib/apache2/mod_fastcgi.so
LoadModule fastcgi_module modules/mod_fastcgi.so

Vhosts.conf

<VirtualHost *>

    DocumentRoot /var/www/rt/share/html
    ###DocumentRoot /var/www/rt
    ServerName helpdesk.staff

AddHandler fastcgi-script fcgi
ScriptAlias / /var/www/rt/mason_handler.fcgi

AddDefaultCharset UTF-8 SetHandler fastcgi-script

I created a group called “rt” and added the apache user to it. The web
server runs as the user apache. All the files are owned by apache in the
web root, I think I even changed the /opt/rt3 files to be owned by
apache to see if that would help. Below are the /var/log/httpd/error.log
and access.log files.

Access Log.
10.0.2.239 - - [27/Sep/2004:15:29:06 +1000] “GET /~sjcsms HTTP/1.1” 403
408 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:29:10 +1000] “GET / HTTP/1.1” 403 401 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:29:41 +1000] "GET /index.html HTTP/1.1"
403 411 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like
Gecko)"
10.0.2.239 - - [27/Sep/2004:15:31:32 +1000] "GET /index.html HTTP/1.1"
403 411 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like
Gecko)"
10.0.2.239 - - [27/Sep/2004:15:31:36 +1000] “GET / HTTP/1.1” 403 401 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:31:44 +1000] “GET / HTTP/1.1” 403 401 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:31:47 +1000] “GET / HTTP/1.1” 403 401 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:37:43 +1000] “GET / HTTP/1.1” 500 740 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:38:37 +1000] “GET / HTTP/1.1” 500 740 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:40:38 +1000] "GET /index.html HTTP/1.1"
500 740 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like
Gecko)"
10.0.2.239 - - [27/Sep/2004:15:43:15 +1000] "GET /index.html HTTP/1.1"
500 740 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like
Gecko)"
10.0.2.239 - - [27/Sep/2004:15:45:10 +1000] "GET /index.html HTTP/1.1"
500 740 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like
Gecko)"
10.0.2.239 - - [27/Sep/2004:15:54:02 +1000] “GET / HTTP/1.1” 500 740 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:54:43 +1000] “GET /mason_handler.fcgi
HTTP/1.1” 404 415 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux)
(KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:54:51 +1000] “GET /mason_handler.fcgi/
HTTP/1.1” 404 416 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux)
(KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:57:07 +1000] “GET /mason_handler.fcgi/
HTTP/1.1” 500 740 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux)
(KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:57:46 +1000] “GET / HTTP/1.1” 500 740 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:59:13 +1000] “GET / HTTP/1.1” 500 746 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:15:59:43 +1000] “GET /share/html/index.html
HTTP/1.1” 500 746 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux)
(KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:16:10:58 +1000] “GET / HTTP/1.1” 500 746 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:16:14:05 +1000] “GET / HTTP/1.1” 500 746 “-”
"Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:16:18:00 +1000] "GET /index.html HTTP/1.1"
404 413 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like
Gecko)"
10.0.2.239 - - [27/Sep/2004:16:18:11 +1000] “GET /rt/index.html
HTTP/1.1” 404 416 “-” "Mozilla/5.0 (compatible; Konqueror/3.2; Linux)
(KHTML, like Gecko)"
10.0.2.239 - - [27/Sep/2004:16:21:22 +1000] “GET / HTTP/1.1” 500 746 “-”
“Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)”

Error.log
[Mon Sep 27 16:26:33 2004] [notice] Apache-AdvancedExtranetServer/2.0.48
(Mandrake Linux/5mdk) mod_perl/1.99_11 Perl/v5.8.3 mod_fastcgi/2.4.2
mod_ssl/2.0.48 OpenSSL/0.9.7
c PHP/4.3.4 configured – resuming normal operations
[Mon Sep 27 16:26:34 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (uid 13, gid 101) started (pid 18971)
[Mon Sep 27 16:26:34 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (pid 18971) terminated by calling exit
with status ‘107’
[Mon Sep 27 16:26:35 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (uid 13, gid 101) started (pid 18972)
[Mon Sep 27 16:26:35 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (pid 18972) terminated by calling exit
with status ‘107’
[Mon Sep 27 16:26:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (uid 13, gid 101) started (pid 18973)
[Mon Sep 27 16:26:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (pid 18973) terminated by calling exit
with status ‘107’
[Mon Sep 27 16:26:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:26:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:26:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:26:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:26:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:26:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:26:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:26:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:31:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:31:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:31:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:31:40 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:36:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:36:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (uid 13, gid 101) restarted (pid 19149)
[Mon Sep 27 16:36:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (pid 19149) terminated by calling exit
with status ‘107’
[Mon Sep 27 16:36:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:36:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:36:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:36:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:41:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds
[Mon Sep 27 16:41:36 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has
been backed off to 600 seconds

I’m a little confused as for where the user apache goes and twhether the
user “rt-user” in the site config it the rt user in the database, etc.
So I could have stuffed that part of the config up too.

I hope you can help. My boss wants this quote “Fully installed and
configured by the end of the week”. Got to love e’m hey?

Chris

RT_SiteConfig.txt (2.92 KB)

I’m stuck installing rt-3.2.1, Can some one lend me some advice.I’m
hoping you can see where I have gone wrong. I’m thinking it is at the
Apache2 config side of this. I am running fastcgi, oh and I think I
needed to run suidperl because I sort of remember reading somewhere
that I had to if I was running apache2-suexec. So I’m running that too.

Chris, please don’t take this the wrong way, but you’ve posted a huge long
note with configurations and error logs etc, but you don’t say up front
WHAT the problem is you are having. Make it easy for people to help you!

  • what are you trying to do
  • what problem do you have
  • what have you tried to fix it
  • supporting data (config, error logs, etc)

Maybe that was all in your original post, but it’s too long to plough
through looking for your errors to see if it is something I can help with.

Keith

Keith Edmunds wrote:

I’m stuck installing rt-3.2.1, Can some one lend me some advice.I’m
hoping you can see where I have gone wrong. I’m thinking it is at the
Apache2 config side of this. I am running fastcgi, oh and I think I
needed to run suidperl because I sort of remember reading somewhere
that I had to if I was running apache2-suexec. So I’m running that too.

Chris, please don’t take this the wrong way, but you’ve posted a huge long
note with configurations and error logs etc, but you don’t say up front
WHAT the problem is you are having. Make it easy for people to help you!

Thanks Keith,

and thanks for your reply. I’ll try to answer there questions more
concisely.

  • what are you trying to do

I’m installing RT on Our School’s Mandrake Linux Server. RT will act at
the help desk for the School’s IT department

  • what problem do you have

Apache starts but the error log shows the following message, and I
cannot get any of the RT pages to display.

[Mon Sep 27 16:26:34 2004] [warn] FastCGI: server
"/opt/rt3/bin/mason_handler.fcgi" (uid 13, gid 101) started (pid 18971)

Additionally, I get an error in my browser that says something like the
server was misconfigured; cannot remember exactly, I’mat home right now.

  • what have you tried to fix it

I have tried applying the recommendations in the FASTCGI documentation.
And variations.

From:
http://wiki.bestpractical.com/index.cgi?FastCGIConfiguration

  • supporting data (config, error logs, etc)

Other than the apache logs, where else can I grab error info?

Maybe that was all in your original post, but it’s too long to plough
through looking for your errors to see if it is something I can help with.

Keith


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

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Once again, thanks.

Sincerely,
Chris