[rt-users] RT 3.6.6 - httpd won't start
Ruslan Zakirov
ruz at bestpractical.com
Thu May 15 04:20:04 EDT 2008
Those errors suggest me that your apache server is running under user
that is not "apache". Look for Group and User derictives in your
httpd.conf. Also, the permissions you posted below are wierd in terms
of layout. By default RT has the following dirs:
rt3/var
rt3/var/mason_data
There is no "rt3/mason_data". May be your server actually runs under
"apache" but you've ignored the fact that ./configure has options
--with-web-user and --with-web-group and tried to fix it later and
failed. You can re-run configure script and make install again to fix
permissions.
On Wed, May 14, 2008 at 11:02 PM, Shannon Adams
<shannon_adams68 at yahoo.com> wrote:
> Sorry about not copying rt_users. It was an oversight. It wasn't intentional as I need all the help I can get!
>
> I finally overcame httpd not starting up. However, now when I browse to the RT URL - I am getting the error message below. httpd is started as root. What should the permissions be under the /opt/rt3 structure? I don't recall changing anything after the initial installation.
>
> Permissions under /opt/rt3:
> drwxrwxrwx 6 apache apache 4096 2008-05-12 15:30 var
> drwxrwx--- 5 apache apache 4096 2008-05-12 10:16 mason_data
> drwxr-xr-x 2 apache apache 4096 2008-05-12 17:49 obj
>
> Here is the error that pops up in the browser.
>
> mkdir /opt/rt3/var/mason_data/obj/2362954981: Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Compiler/ToObject.pm line 107
>
>
> Trace begun at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
> HTML::Mason::Exceptions::rethrow_exception('mkdir /opt/rt3/var/mason_data/obj/2362954981: Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Compiler/ToObject.pm line 107^J') called at /usr/lib/perl5/5.8.8/Carp.pm line 269
> Carp::croak('mkdir /opt/rt3/var/mason_data/obj/2362954981: Permission denied') called at /usr/lib/perl5/5.8.8/File/Path.pm line 168
> File::Path::mkpath('/opt/rt3/var/mason_data/obj/2362954981', 0, 509) called at /usr/lib/perl5/5.8.8/File/Path.pm line 161
> File::Path::mkpath('/opt/rt3/var/mason_data/obj/2362954981/standard', 0, 509) called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Compiler/ToObject.pm line 107
> HTML::Mason::Compiler::ToObject::compile_to_file(undef, 'file', '/opt/rt3/var/mason_data/obj/2362954981/standard/index.html.obj', 'source', 'HTML::Mason::ComponentSource=HASH(0xbbf5eeac)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Interp.pm line 434
> HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0xbb14cc74)', '/index.html') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 245
> eval {...} at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 230
> HTML::Mason::Request::_initialize('HTML::Mason::Request::ApacheHandler=HASH(0xbbf5ed80)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 210
> HTML::Mason::Request::new('HTML::Mason::Request::ApacheHandler', 'error_mode', 'output', 'autoflush', 0, 'error_format', 'html', 'interp', 'HTML::Mason::Interp=HASH(0xbb14cc74)', 'comp', '/index.html', 'args', 'ARRAY(0xbbe939dc)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0xbb149fdc)', 'apache_req', 'Apache2::RequestRec=SCALAR(0xbaef9ec4)', 'container', 'HASH(0xbbf303dc)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 97
> HTML::Mason::Request::ApacheHandler::new('HTML::Mason::Request::ApacheHandler', 'error_mode', 'output', 'autoflush', 0, 'error_format', 'html', 'interp', 'HTML::Mason::Interp=HASH(0xbb14cc74)', 'comp', '/index.html', 'args', 'ARRAY(0xbbe939dc)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0xbb149fdc)', 'apache_req', 'Apache2::RequestRec=SCALAR(0xbaef9ec4)', 'container', 'HASH(0xbbf303dc)') called at /usr/lib/perl5/vendor_perl/5.8.8/Class/Container.pm line 275
> Class::Container::call_method('HTML::Mason::Interp=HASH(0xbb14cc74)', 'request', 'new', 'interp', 'HTML::Mason::Interp=HASH(0xbb14cc74)', 'comp', '/index.html', 'args', 'ARRAY(0xbbe939dc)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0xbb149fdc)', 'apache_req', 'Apache2::RequestRec=SCALAR(0xbaef9ec4)', 'container', 'HASH(0xbbf303dc)') called at /usr/lib/perl5/vendor_perl/5.8.8/Class/Container.pm line 353
> Class::Container::create_delayed_object('interp', 'HTML::Mason::Interp=HASH(0xbb14cc74)', 'comp', '/index.html', 'args', 'ARRAY(0xbbe939dc)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0xbb149fdc)', 'apache_req', 'Apache2::RequestRec=SCALAR(0xbaef9ec4)', 'container', 'HASH(0xbbf303dc)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Interp.pm line 348
> HTML::Mason::Interp::make_request('HTML::Mason::Interp=HASH(0xbb14cc74)', 'comp', '/index.html', 'args', 'ARRAY(0xbbe939dc)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0xbb149fdc)', 'apache_req', 'Apache2::RequestRec=SCALAR(0xbaef9ec4)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 869
> eval {...} at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 868
> HTML::Mason::ApacheHandler::prepare_request('HTML::Mason::ApacheHandler=HASH(0xbb149fdc)', 'Apache2::RequestRec=SCALAR(0xbaef9ec4)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 823
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xbb149fdc)', 'Apache2::RequestRec=SCALAR(0xbaef9ec4)') called at /opt/rt3/bin/webmux.pl line 125
> eval {...} at /opt/rt3/bin/webmux.pl line 125
> RT::Mason::handler('Apache2::RequestRec=SCALAR(0xbaef9ec4)') called at -e line 0
> eval {...} at -e line 0
>
> Thanks,
>
> Shannon
>
> ----- Original Message ----
> From: Ruslan Zakirov <ruz at bestpractical.com>
> To: Shannon Adams <shannon_adams68 at yahoo.com>
>
>
> Cc: RT users <rt-users at lists.bestpractical.com>
> Sent: Tuesday, May 13, 2008 10:56:20 PM
> Subject: Re: [rt-users] RT 3.6.6 - httpd won't start
>
> Never drop rt-users@ from list of recipients of your emails. If you
> want me or other qualified admins and RT developers help privately
> then please contact sales at bestpractical.com otherwise stick with
> rt-users@ so other people can help you as well and may be solve their
> problems by reading this thread.
>
> We're not distant disk readers :), so we couldn't help you without
> additional info and error message suggest you where to look for real
> error message: "More information about this error may be available in
> the server error log."
>
> On Wed, May 14, 2008 at 5:32 AM, Shannon Adams
> <shannon_adams68 at yahoo.com> wrote:
> > This is so frustrating. Now, I am getting this when browsing to rtbak.bigrocksports.com (DNS has rtbak as 10.9.10.251):
> >
> >
> > Internal Server Error
> > The server encountered an internal error or
> > misconfiguration and was unable to complete
> > your request.
> > Please contact the server administrator, root at localhost and inform them of the time the error occurred,
> > and anything you might have done that may have
> > caused the error.
> > More information about this error may be available
> > in the server error log.
> > ________________________________
> >
> > Apache/2.2.8 (Fedora) Server at rtbak.bigrocksports.com Port 80
> > Here is exactly how my rt3.conf looks now:
> >
> >
> > <VirtualHost 10.9.10.251>
> > ServerName itadmintest.bigrocksports.com
> > DocumentRoot /opt/rt3/share/html
> > AddDefaultCharset UTF-8
> > PerlRequire /opt/rt3/bin/webmux.pl
> > <Directory /opt/rt3/share/html>
> > Order allow,deny
> > Allow from all
> > SetHandler perl-script
> > PerlHandler RT::Mason
> > </Directory>
> > </VirtualHost>
> >
> > Thanks again for helping me through this!
> >
> > Shannon
> >
> > ----- Original Message ----
> > From: Ruslan Zakirov <ruz at bestpractical.com>
> > To: Shannon Adams <shannon_adams68 at yahoo.com>
> >
> >
> > Sent: Tuesday, May 13, 2008 9:25:10 PM
> > Subject: Re: [rt-users] RT 3.6.6 - httpd won't start
> >
> > I hope you've changed properties of vistual host to something like:
> >
> > <VirtualHost 10.9.10.251>
> > ServerName itadmintest.bigrocksports.com
> > DocumentRoot /opt/rt3/share/html
> > AddDefaultCharset UTF-8
> > PerlRequire /opt/rt3/bin/webmux.pl
> > <Directory /opt/rt3/share/html>
> > Order allow,deny
> > Allow from all
> > SetHandler perl-script
> > PerlHandler RT::Mason
> > </Directory>
> > </VirtualHost>
> >
> > On Wed, May 14, 2008 at 5:07 AM, Shannon Adams
> > <shannon_adams68 at yahoo.com> wrote:
> > > Okay, getting close. I got rid of my rt3.conf and used the one you provided below. Now, I receive the following when I browse to rtbak.bigrocksports.com:
> > >
> > > "FEDORA TEST PAGE
> > >
> > > This page is used to test the proper operation of the Apache HTTP server
> > > after it has been installed. If you can read this page, it means that the web
> > > server installed at this site is working properly, but has not yet been
> > > configured."
> > >
> > > I don't know how to configure FastCGI. It doesn't matter to me which is used mod_perl of FCGI. I have been fighting with this for days now and just want to get it to work.
> > >
> > > Thank you very much for helping me through this. It looks like it is closer to working now. Do you know what I need to do next to get the RT login screen to show up instead of the Fedora test page?
> > >
> > >
> > > Shannon
> > >
> > > ----- Original Message ----
> > > From: Ruslan Zakirov <ruz at bestpractical.com>
> > >
> > >
> > > To: Shannon Adams <shannon_adams68 at yahoo.com>
> > > Sent: Tuesday, May 13, 2008 8:58:38 PM
> > > Subject: Re: [rt-users] RT 3.6.6 - httpd won't start
> > >
> > > As far as I can see:
> > > * mixed all suggestions from that manual in one place
> > > * as you want to run only RT on a vhost xxx.your-domain.com then you
> > > don't need any Alias and other things that map RT to "/rt" location on
> > > that virtual host
> > > * Here is the minimal config for an IP based virtual host I just
> > > successfully started after wrting it from scratch:
> > >
> > > Listen 8080
> > > <VirtualHost *:8080>
> > > ServerName localhost:8080
> > > DocumentRoot /opt/rt3/share/html
> > > AddDefaultCharset UTF-8
> > > PerlRequire /opt/rt3/bin/webmux.pl
> > > <Directory /opt/rt3/share/html>
> > > Order allow,deny
> > > Allow from all
> > > SetHandler perl-script
> > > PerlHandler RT::Mason
> > > </Directory>
> > > </VirtualHost>
> > >
> > > That's all. it just works with mod_perl2 on apache2
> > >
> > > Do you know how to configure FastCGI? Let me help you with mod_perl
> > > then you'll decide if you want to switch to FCGI or not.
> > >
> > > On Wed, May 14, 2008 at 3:34 AM, Shannon Adams
> > > <shannon_adams68 at yahoo.com> wrote:
> > > > Hi Ruslan,
> > > >
> > > > Thanks for the response.
> > > >
> > > > 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?
> > > >
> > > > Right now, 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: Ruslan Zakirov <ruz at bestpractical.com>
> > > > To: jmoseley at corp.xanadoo.com
> > > > Cc: Shannon Adams <shannon_adams68 at yahoo.com>; rt-users at lists.bestpractical.com; rt-users-bounces at lists.bestpractical.com
> > > > Sent: Tuesday, May 13, 2008 6:42:08 PM
> > > > Subject: Re: [rt-users] RT 3.6.6 - httpd won't start
> > > >
> > > > IMPORTANT:
> > > >
> > > > If you are using mod_perl 2.x and Apache2 then there is NO NEED in
> > > > Apache2::compat !!!
> > > >
> > > > If you're using mod_perl 1.9* and Apache2 then you MUST UPGRADE to MP
> > > > 2.x or forget about mod_perl at all and use FastCGI instead.
> > > >
> > > > If you're using mod_perl1 + apache1 then... then just use it :)
> > > >
> > > > Point me to the doc where you guys find that shitty "compat" thing so
> > > > I can rip it out forever!
> > > >
> > > > On Wed, May 14, 2008 at 1:39 AM, <jmoseley at corp.xanadoo.com> wrote:
> > > > > 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 at 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: sales at bestpractical.com
> > > > >
> > > > >
> > > > > 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: sales at bestpractical.com
> > > > >
> > > > >
> > > > > Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> > > > > Buy a copy at http://rtbook.bestpractical.com
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Best regards, Ruslan.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Best regards, Ruslan.
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Best regards, Ruslan.
> >
> >
> >
> >
> >
>
>
>
> --
> Best regards, Ruslan.
>
>
>
>
>
--
Best regards, Ruslan.
More information about the rt-users
mailing list