Problem starting Apache after installing RT

Apache - 2.0.49
Perl - 5.8.4
MySQL - 4.0.20
RT- 3.0.11

This is a clean system running Fedora set up as a server

I’ve had to do a lot more then the instructions on installing on Fedora, but
I now have it really close.

After I add the new text to /usr/local/apache2/conf/httpd.conf

namely:

ServerName hkrt.hkusa.com
DocumentRoot /usr/local/rt3/share/html
AddDefaultCharset UTF-8

PerlSetVar MasonArgsMethod CGI
PerlModule Apache2 Apache::compat
RewriteEngine On
RewriteRule ^(.*)/$ $1/index.html [PT]


PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl

<Location />
    SetHandler perl-script
    PerlHandler RT::Mason
</Location>

I get this error when I try to start my server
( /usr/local/apache2/bin/apachectl start)

“Syntax error on line 1057 of /usr/local/apache2/conf/httpd.conf:
Invalid command ‘PerlSetVar’, perhaps mis-spelled or defined by a module not
included in the server configuration”

Any ideas?
Thanks

You don’t have mod_perl properly installed or you don’t have LoadModule
directive in Apache conf.

Brett Barnhart wrote:

I think part of the problem is that I now have 2 servers installed… time
to start over from scratch… each time I get a little farther!

mod-perl is not installed correctly

OK… I am getting much closer now, so I decided not to start over.

Now I am getting the error message

"Invalid command ‘RewriteEngine’, perhaps mis-spelled or defined by a module
not included in the server configuration"From: Ruslan U. Zakirov
To: Brett Barnhart
Cc: ‘rt-users@lists.bestpractical.com’
Sent: 6/9/2004 2:04 PM
Subject: Re: [rt-users] Problem starting Apache after installing RT

You don’t have mod_perl properly installed or you don’t have LoadModule
directive in Apache conf.

Brett Barnhart wrote:

Apache - 2.0.49
Perl - 5.8.4
MySQL - 4.0.20
RT- 3.0.11

This is a clean system running Fedora set up as a server

I’ve had to do a lot more then the instructions on installing on
Fedora, but
I now have it really close.

After I add the new text to /usr/local/apache2/conf/httpd.conf

namely:

ServerName hkrt.hkusa.com
DocumentRoot /usr/local/rt3/share/html
AddDefaultCharset UTF-8

PerlSetVar MasonArgsMethod CGI
PerlModule Apache2 Apache::compat
RewriteEngine On
RewriteRule ^(.*)/$ $1/index.html [PT]


PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl

<Location />
    SetHandler perl-script
    PerlHandler RT::Mason
</Location>

I get this error when I try to start my server
( /usr/local/apache2/bin/apachectl start)

“Syntax error on line 1057 of /usr/local/apache2/conf/httpd.conf:
Invalid command ‘PerlSetVar’, perhaps mis-spelled or defined by a
module not
included in the server configuration”

Any ideas?
Thanks


The rt-users Archives

RT Developer and Administrator training is coming to LA, DC and
Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Brett Barnhart wrote:

OK… I am getting much closer now, so I decided not to start over.

Now I am getting the error message

"Invalid command ‘RewriteEngine’, perhaps mis-spelled or defined by a module
not included in the server configuration"
Same with mod_rewrite :slight_smile:

I am inching my way there…

How do I fix this error?

mkdir /usr/local/rt3/var/mason_data/obj: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Compiler/ToObject.pm line
102

This is the raw error

mkdir /usr/local/rt3/var/mason_data/obj: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Compiler/ToObject.pm line
102

Trace begun at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Exceptions.pm
line 131
HTML::Mason::Exceptions::rethrow_exception(‘mkdir
/usr/local/rt3/var/mason_data/obj: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Compiler/ToObject.pm line
102^J’) called at /usr/local/lib/perl5/5.8.4/Carp.pm line 191
Carp::croak(‘mkdir /usr/local/rt3/var/mason_data/obj: Permission denied’)
called at /usr/local/lib/perl5/5.8.4/File/Path.pm line 162
File::Path::mkpath(’/usr/local/rt3/var/mason_data/obj’, 0, 509) called at
/usr/local/lib/perl5/5.8.4/File/Path.pm line 155
File::Path::mkpath(’/usr/local/rt3/var/mason_data/obj/standard’, 0, 509)
called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Compiler/ToObject.pm line
102
HTML::Mason::Compiler::ToObject::compile_to_file(undef, ‘file’,
’/usr/local/rt3/var/mason_data/obj/standard/index.html’, ‘source’,
‘HTML::Mason::ComponentSource=HASH(0x9c69548)’) called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Interp.pm line 308
HTML::Mason::Interp::load(‘HTML::Mason::Interp=HASH(0x9c5dc50)’,
’/index.html’) called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 198
eval {…} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm
line 186
HTML::Mason::Request::_initialize(‘HTML::Mason::Request::ApacheHandler=HASH(
0x9c69590)’) called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 166
HTML::Mason::Request::new(‘HTML::Mason::Request::ApacheHandler’,
‘error_mode’, ‘output’, ‘autoflush’, 1, ‘error_format’, ‘html’, ‘interp’,
‘HTML::Mason::Interp=HASH(0x9c5dc50)’, ‘comp’, ‘/index.html’, ‘args’,
‘ARRAY(0x9523a4c)’, ‘ah’, ‘HTML::Mason::ApacheHandler=HASH(0x9b04a14)’,
‘apache_req’, ‘Apache::RequestRec=SCALAR(0x9b03cac)’, ‘container’,
‘HASH(0x9c68f84)’) called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 60
HTML::Mason::Request::ApacheHandler::new(‘HTML::Mason::Request::ApacheHandle
r’, ‘error_mode’, ‘output’, ‘autoflush’, 1, ‘error_format’, ‘html’,
‘interp’, ‘HTML::Mason::Interp=HASH(0x9c5dc50)’, ‘comp’, ‘/index.html’,
‘args’, ‘ARRAY(0x9523a4c)’, ‘ah’,
‘HTML::Mason::ApacheHandler=HASH(0x9b04a14)’, ‘apache_req’,
‘Apache::RequestRec=SCALAR(0x9b03cac)’, ‘container’, ‘HASH(0x9c68f84)’)
called at /usr/local/lib/perl5/site_perl/5.8.4/Class/Container.pm line 265
Class::Container::call_method(‘HTML::Mason::Interp=HASH(0x9c5dc50)’,
‘request’, ‘new’, ‘interp’, ‘HTML::Mason::Interp=HASH(0x9c5dc50)’, ‘comp’,
’/index.html’, ‘args’, ‘ARRAY(0x9523a4c)’, ‘ah’,
‘HTML::Mason::ApacheHandler=HASH(0x9b04a14)’, ‘apache_req’,
‘Apache::RequestRec=SCALAR(0x9b03cac)’, ‘container’, ‘HASH(0x9c68f84)’)
called at /usr/local/lib/perl5/site_perl/5.8.4/Class/Container.pm line 343
Class::Container::create_delayed_object(‘interp’,
‘HTML::Mason::Interp=HASH(0x9c5dc50)’, ‘comp’, ‘/index.html’, ‘args’,
‘ARRAY(0x9523a4c)’, ‘ah’, ‘HTML::Mason::ApacheHandler=HASH(0x9b04a14)’,
‘apache_req’, ‘Apache::RequestRec=SCALAR(0x9b03cac)’, ‘container’,
‘HASH(0x9c68f84)’) called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Interp.pm line 213
HTML::Mason::Interp::make_request(‘HTML::Mason::Interp=HASH(0x9c5dc50)’,
‘comp’, ‘/index.html’, ‘args’, ‘ARRAY(0x9523a4c)’, ‘ah’,
‘HTML::Mason::ApacheHandler=HASH(0x9b04a14)’, ‘apache_req’,
‘Apache::RequestRec=SCALAR(0x9b03cac)’) called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 863
eval {…} at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 862
HTML::Mason::ApacheHandler::prepare_request(‘HTML::Mason::ApacheHandler=HASH
(0x9b04a14)’, ‘Apache::RequestRec=SCALAR(0x9b03cac)’) called at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 789
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(
0x9b04a14)’, ‘Apache::RequestRec=SCALAR(0x9b03cac)’) called at
/usr/local/rt3/bin/webmux.pl line 138
eval {…} at /usr/local/rt3/bin/webmux.pl line 138
RT::Mason::handler(‘Apache::RequestRec=SCALAR(0x9b03cac)’) called at -e line
0
eval {…} at -e line 0-----Original Message-----
From: Brett Barnhart
To: 'Ruslan U. Zakirov '; Brett Barnhart
Cc: '‘rt-users@lists.bestpractical.com’ '
Sent: 6/9/2004 3:37 PM
Subject: RE: [rt-users] Problem starting Apache after installing RT

I am inching my way there…

How do I fix this error?

mkdir /usr/local/rt3/var/mason_data/obj: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Compiler/ToObject.pm
line 102

Brett Barnhart wrote:

I am inching my way there…

How do I fix this error?

mkdir /usr/local/rt3/var/mason_data/obj: Permission denied at
/usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Compiler/ToObject.pm line
102

Reinstall RT using configure options: --with-web-user, --with-web-group.
It must be user that apache runs with.

This is a silly question, but how can I tell what version of mod_perl I have
installed?

I’ve tried mod_perl -version
perl mod_perl -version

Thanks!
Brett

Brett Barnhart wrote:

This is a silly question, but how can I tell what version of mod_perl I have
installed?

I’ve tried mod_perl -version
perl mod_perl -version
:slight_smile:
look into main apache error log after startup

OK, I just tried to restart httpd after upgrading Perl and I am getting
this error.

httpd failed. The error was: Starting httpd: Syntax error on line 10 of
/etc/httpd/conf.d/perl.conf:
Cannot load /etc/httpd/modules/mod_perl.so into server: libperl.so: cannot
open shared object file: No such file or directory

I’ve double checked, and mod_perl.so is in this directory.
Any suggestions?
(I am getting a crash course in Linux this last week).

Thanks!
BrettFrom: Ruslan U. Zakirov
To: Brett Barnhart
Cc: ‘rt-users@lists.bestpractical.com’
Sent: 6/10/2004 9:04 AM
Subject: Re: [rt-users] Problem starting Apache after installing RT

Brett Barnhart wrote:

This is a silly question, but how can I tell what version of mod_perl
I have
installed?

I’ve tried mod_perl -version
perl mod_perl -version
:slight_smile:
look into main apache error log after startup

Thanks!
Brett

Brett Barnhart wrote:

OK, I just tried to restart httpd after upgrading Perl and I am getting
this error.

httpd failed. The error was: Starting httpd: Syntax error on line 10 of
/etc/httpd/conf.d/perl.conf:
Cannot load /etc/httpd/modules/mod_perl.so into server: libperl.so: cannot
open shared object file: No such file or directory

I’ve double checked, and mod_perl.so is in this directory.
Any suggestions?
(I am getting a crash course in Linux this last week).

Thanks!
Brett

Brett.

There is several step-by-step guides:
http://wiki.bestpractical.com/?InstallationGuides

mod_perl is well documented project.

  1. You need working perl 5.8.3 or greater.
  2. Then you should instal Apache+mod_perl

a) Apache1+mp1:

Is static compilation and it is recomended.

b) Apache2+mp2 is not recomended for production use yet, but in any case
you can find install docs there too.

  1. And only when you finally get positive answer on next question
    mod_perl: mod_perl Installation
    you can return to RT install process.

     		Best regards. Ruslan.