RT 4.4.0 Apache loads text of rt-server fcgi rather than login

Hi All,

Fresh Install of 4.4.0 on Cent7 latest

Installed latests CPAN

configured with mysql apache fastsgi

tested and fixed all deps

Installed with no errors both server and db

Apache loads 80 and 443 with no errors

tested stand alone server with no errors on 8080, see login, logged in
and everything is there and running (dashboard, queues, etc.)

stopped stand alone and started apache and see the
/opt/rt4/sbin/rt-server.fcgi file in the browser. (literally the text of
the file)

Tried changing the scriptalias path to /opt/rt4/sbin/rt-server but that
just gave a 500 error.

Tried Selinux permissive with same results.

I’m guessing a fastcgi problem or the wrong scriptalias path, any
thoughts or direction? (As I am not seeing anything in the logs)

Thanks,
Brad

Hi Brad,

Hi All,

Fresh Install of 4.4.0 on Cent7 latest

Installed latests CPAN

configured with mysql apache fastsgi

tested and fixed all deps

Installed with no errors both server and db

Apache loads 80 and 443 with no errors

tested stand alone server with no errors on 8080, see login, logged in and
everything is there and running (dashboard, queues, etc.)

stopped stand alone and started apache and see the
/opt/rt4/sbin/rt-server.fcgi file in the browser. (literally the text of the
file)

Did you follow the install guide for configuring Apache for FastCGI?

What does your Apache configs look like?

Tried changing the scriptalias path to /opt/rt4/sbin/rt-server but that just
gave a 500 error.

What is in your Apache errors log?

-m

Hi Matt,

I did follow a guide not sure if it was the most recent or the one
required by RT though, used apache.org I think.

Here is the siteconf, the httpd.conf and ssl.conf are base (not edited,
except for servername and cipher suite)

ServerName

LoadModule fcgid_module modules/mod_fcgid.so

SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

AddDefaultCharset UTF-8

      ScriptAlias /rt /opt/rt4/sbin/rt-server.fcgi

      DocumentRoot "/opt/rt4/share/html"
      <Location /rt>
              Require all granted

          Options +ExecCGI
          AddHandler fastcgi-script fcgi
      </Location>

ProxyRequests Off

I dont see anything in the RT logs or httpd logs (other than access requests) no errors warning or any other info pointing to a problem.

All are currently running in debug.

Thanks,
BradOn 02/19/2016 11:59 AM, Matt Zagrabelny wrote:

Hi Brad,

On Fri, Feb 19, 2016 at 10:49 AM, Brad bradzynda42@comcast.net wrote:

Hi All,

Fresh Install of 4.4.0 on Cent7 latest

Installed latests CPAN

configured with mysql apache fastsgi

tested and fixed all deps

Installed with no errors both server and db

Apache loads 80 and 443 with no errors

tested stand alone server with no errors on 8080, see login, logged in and
everything is there and running (dashboard, queues, etc.)

stopped stand alone and started apache and see the
/opt/rt4/sbin/rt-server.fcgi file in the browser. (literally the text of the
file)
Did you follow the install guide for configuring Apache for FastCGI?

What does your Apache configs look like?

Tried changing the scriptalias path to /opt/rt4/sbin/rt-server but that just
gave a 500 error.
What is in your Apache errors log?

-m

Hi Matt,

I did follow a guide not sure if it was the most recent or the one required
by RT though, used apache.org I think.

https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi

Here is the siteconf, the httpd.conf and ssl.conf are base (not edited,
except for servername and cipher suite)

The docs have a line like:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300

ServerName

LoadModule fcgid_module modules/mod_fcgid.so

SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

AddDefaultCharset UTF-8

     ScriptAlias /rt /opt/rt4/sbin/rt-server.fcgi

The docs have a trailing slash on rt-server.fcgi. Not sure if that matters.

-m

Hi Matt,

yum install mod_fcgid
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
Package mod_fcgid-2.3.9-4.el7.x86_64 already installed and latest version
Nothing to do

added to siteconf:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300

restarted httpd and it errors:

Invalid command ‘FastCgiServer’, perhaps misspelled or defined by a
module not included in the server configuration

Now I dont see any reference for where yum puts this but a locate pulls:
/usr/lib/tmpfiles.d/mod_fcgid.conf
/usr/lib64/httpd/modules/mod_fcgid.so
/usr/share/doc/mod_fcgid-2.3.9
/usr/share/doc/mod_fcgid-2.3.9/CHANGES-FCGID
/usr/share/doc/mod_fcgid-2.3.9/ChangeLog
/usr/share/doc/mod_fcgid-2.3.9/LICENSE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/NOTICE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/README-FCGID
/usr/share/doc/mod_fcgid-2.3.9/STATUS-FCGID
/usr/share/doc/mod_fcgid-2.3.9/fixconf.sed
/usr/share/doc/mod_fcgid-2.3.9/mod_fcgid.html.en

I do see some directions fromwww.fastcgi.com/mod_fastcgi/INSTALL for a
binary build but nothing in reference to a package install but this does
look correct, doesn’t it?

/usr/lib64/httpd/modules/mod_fcgid.so

and the new httpd grabs these on start…?

Thanks,
BradOn 02/19/2016 12:23 PM, Matt Zagrabelny wrote:

On Fri, Feb 19, 2016 at 11:18 AM, Brad bradzynda42@comcast.net wrote:

Hi Matt,

I did follow a guide not sure if it was the most recent or the one required
by RT though, used apache.org I think.
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi

Here is the siteconf, the httpd.conf and ssl.conf are base (not edited,
except for servername and cipher suite)
The docs have a line like:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300

ServerName

LoadModule fcgid_module modules/mod_fcgid.so

SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

AddDefaultCharset UTF-8

      ScriptAlias /rt /opt/rt4/sbin/rt-server.fcgi

The docs have a trailing slash on rt-server.fcgi. Not sure if that matters.

-m

Hi Brad,

for starters mod_fastcgi is not the same as mod_fcgid, you need to
configure it differently.
Look on
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fcgid
vs https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi
Just ctrl+c,ctrl+v that code to your apache config, modify directory to
rt if it differs and it should work using mod_fcgid.

Best regards,
Piotr SzymborskiOn 2016-02-19 18:49, Brad wrote:

Hi Matt,

yum install mod_fcgid
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
Package mod_fcgid-2.3.9-4.el7.x86_64 already installed and latest version
Nothing to do

added to siteconf:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout 300

restarted httpd and it errors:

Invalid command ‘FastCgiServer’, perhaps misspelled or defined by a
module not included in the server configuration

Now I dont see any reference for where yum puts this but a locate pulls:
/usr/lib/tmpfiles.d/mod_fcgid.conf
/usr/lib64/httpd/modules/mod_fcgid.so
/usr/share/doc/mod_fcgid-2.3.9
/usr/share/doc/mod_fcgid-2.3.9/CHANGES-FCGID
/usr/share/doc/mod_fcgid-2.3.9/ChangeLog
/usr/share/doc/mod_fcgid-2.3.9/LICENSE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/NOTICE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/README-FCGID
/usr/share/doc/mod_fcgid-2.3.9/STATUS-FCGID
/usr/share/doc/mod_fcgid-2.3.9/fixconf.sed
/usr/share/doc/mod_fcgid-2.3.9/mod_fcgid.html.en

I do see some directions fromwww.fastcgi.com/mod_fastcgi/INSTALL for a
binary build but nothing in reference to a package install but this does
look correct, doesn’t it?

/usr/lib64/httpd/modules/mod_fcgid.so

and the new httpd grabs these on start…?

Thanks,
Brad

On 02/19/2016 12:23 PM, Matt Zagrabelny wrote:

On Fri, Feb 19, 2016 at 11:18 AM, Brad bradzynda42@comcast.net wrote:

Hi Matt,

I did follow a guide not sure if it was the most recent or the one
required
by RT though, used apache.org I think.
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi

Here is the siteconf, the httpd.conf and ssl.conf are base (not edited,
except for servername and cipher suite)
The docs have a line like:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout
300

ServerName

LoadModule fcgid_module modules/mod_fcgid.so

SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

AddDefaultCharset UTF-8

      ScriptAlias /rt /opt/rt4/sbin/rt-server.fcgi

The docs have a trailing slash on rt-server.fcgi. Not sure if that
matters.

-m


RT 4.4 and RTIR Training Sessions
(http://bestpractical.com/services/training.html)

  • Hamburg Germany - March 14 & 15, 2016
  • Washington DC - May 23 & 24, 2016

Hi Piotr,

Ahhh

did a yum search for fastcgi and thats what was available, didnt even
look that closely at the mod name.

Thanks,
BradOn 02/19/2016 01:25 PM, Piotr Szymborski wrote:

Hi Brad,

for starters mod_fastcgi is not the same as mod_fcgid, you need to
configure it differently.
Look on
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fcgid vs
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi
Just ctrl+c,ctrl+v that code to your apache config, modify directory
to rt if it differs and it should work using mod_fcgid.

Best regards,
Piotr Szymborski

On 2016-02-19 18:49, Brad wrote:

Hi Matt,

yum install mod_fcgid
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
Package mod_fcgid-2.3.9-4.el7.x86_64 already installed and latest
version
Nothing to do

added to siteconf:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5 -idle-timeout
300

restarted httpd and it errors:

Invalid command ‘FastCgiServer’, perhaps misspelled or defined by a
module not included in the server configuration

Now I dont see any reference for where yum puts this but a locate pulls:
/usr/lib/tmpfiles.d/mod_fcgid.conf
/usr/lib64/httpd/modules/mod_fcgid.so
/usr/share/doc/mod_fcgid-2.3.9
/usr/share/doc/mod_fcgid-2.3.9/CHANGES-FCGID
/usr/share/doc/mod_fcgid-2.3.9/ChangeLog
/usr/share/doc/mod_fcgid-2.3.9/LICENSE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/NOTICE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/README-FCGID
/usr/share/doc/mod_fcgid-2.3.9/STATUS-FCGID
/usr/share/doc/mod_fcgid-2.3.9/fixconf.sed
/usr/share/doc/mod_fcgid-2.3.9/mod_fcgid.html.en

I do see some directions fromwww.fastcgi.com/mod_fastcgi/INSTALL for a
binary build but nothing in reference to a package install but this does
look correct, doesn’t it?

/usr/lib64/httpd/modules/mod_fcgid.so

and the new httpd grabs these on start…?

Thanks,
Brad

On 02/19/2016 12:23 PM, Matt Zagrabelny wrote:

On Fri, Feb 19, 2016 at 11:18 AM, Brad bradzynda42@comcast.net wrote:

Hi Matt,

I did follow a guide not sure if it was the most recent or the one
required
by RT though, used apache.org I think.
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi

Here is the siteconf, the httpd.conf and ssl.conf are base (not
edited,
except for servername and cipher suite)
The docs have a line like:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5
-idle-timeout 300

ServerName

LoadModule fcgid_module modules/mod_fcgid.so

SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

AddDefaultCharset UTF-8

      ScriptAlias /rt /opt/rt4/sbin/rt-server.fcgi

The docs have a trailing slash on rt-server.fcgi. Not sure if that
matters.

-m


RT 4.4 and RTIR Training Sessions
(http://bestpractical.com/services/training.html)

  • Hamburg Germany - March 14 & 15, 2016
  • Washington DC - May 23 & 24, 2016

Hi All,

Set it up as Piotr pointed out but now getting an Internal error:

[Sun Feb 21 16:51:48.198523 2016] [mpm_prefork:notice] [pid 32464]
AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
PHP/5.4.16 mod_perl/2.0.9dev Perl/v5.16.3 configured – resuming normal
operations

Can’t locate UNIVERSAL/require.pm in @INC (@INC contains:
/opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/opt/rt4/sbin/…/lib/RT.pm line 60.
BEGIN failed–compilation aborted at/opt/rt4/sbin/…/lib/RT.pm line 60.
Compilation failed in require at /opt/rt4/sbin/rt-server.fcgi line 86.

From browser:
500 Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator at to
inform them of the time this error occurred, and the actions you
performed just before this error.

More information about this error may be available in the server error log.

Then I see the at the bottom of the logs:

mod_fcgid: error reading data from FastCGI server

core:error End of script output before headers: rt-server.fcgi

At this point do I need to re-install with a different configure
–with-web-handler=fcgid instead of --with-web-handler=fastcgi ?

Thanks,
BradOn 02/19/2016 01:47 PM, Brad wrote:

Hi Piotr,

Ahhh

did a yum search for fastcgi and thats what was available, didnt even
look that closely at the mod name.

Thanks,
Brad

On 02/19/2016 01:25 PM, Piotr Szymborski wrote:

Hi Brad,

for starters mod_fastcgi is not the same as mod_fcgid, you need to
configure it differently.
Look on
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fcgid
vs
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi
Just ctrl+c,ctrl+v that code to your apache config, modify directory
to rt if it differs and it should work using mod_fcgid.

Best regards,
Piotr Szymborski

On 2016-02-19 18:49, Brad wrote:

Hi Matt,

yum install mod_fcgid
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
Package mod_fcgid-2.3.9-4.el7.x86_64 already installed and latest
version
Nothing to do

added to siteconf:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5
-idle-timeout 300

restarted httpd and it errors:

Invalid command ‘FastCgiServer’, perhaps misspelled or defined by a
module not included in the server configuration

Now I dont see any reference for where yum puts this but a locate
pulls:
/usr/lib/tmpfiles.d/mod_fcgid.conf
/usr/lib64/httpd/modules/mod_fcgid.so
/usr/share/doc/mod_fcgid-2.3.9
/usr/share/doc/mod_fcgid-2.3.9/CHANGES-FCGID
/usr/share/doc/mod_fcgid-2.3.9/ChangeLog
/usr/share/doc/mod_fcgid-2.3.9/LICENSE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/NOTICE-FCGID
/usr/share/doc/mod_fcgid-2.3.9/README-FCGID
/usr/share/doc/mod_fcgid-2.3.9/STATUS-FCGID
/usr/share/doc/mod_fcgid-2.3.9/fixconf.sed
/usr/share/doc/mod_fcgid-2.3.9/mod_fcgid.html.en

I do see some directions fromwww.fastcgi.com/mod_fastcgi/INSTALL for a
binary build but nothing in reference to a package install but this
does
look correct, doesn’t it?

/usr/lib64/httpd/modules/mod_fcgid.so

and the new httpd grabs these on start…?

Thanks,
Brad

On 02/19/2016 12:23 PM, Matt Zagrabelny wrote:

On Fri, Feb 19, 2016 at 11:18 AM, Brad bradzynda42@comcast.net wrote:

Hi Matt,

I did follow a guide not sure if it was the most recent or the one
required
by RT though, used apache.org I think.
https://www.bestpractical.com/docs/rt/4.4/web_deployment.html#mod_fastcgi

Here is the siteconf, the httpd.conf and ssl.conf are base (not
edited,
except for servername and cipher suite)
The docs have a line like:

FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 5
-idle-timeout 300

ServerName

LoadModule fcgid_module modules/mod_fcgid.so

SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

AddDefaultCharset UTF-8

      ScriptAlias /rt /opt/rt4/sbin/rt-server.fcgi

The docs have a trailing slash on rt-server.fcgi. Not sure if that
matters.

-m


RT 4.4 and RTIR Training Sessions
(http://bestpractical.com/services/training.html)

  • Hamburg Germany - March 14 & 15, 2016
  • Washington DC - May 23 & 24, 2016

RT 4.4 and RTIR Training Sessions
(http://bestpractical.com/services/training.html)

  • Hamburg Germany - March 14 & 15, 2016
  • Washington DC - May 23 & 24, 2016

Hi All,

Set it up as Piotr pointed out but now getting an Internal error:

[Sun Feb 21 16:51:48.198523 2016] [mpm_prefork:notice] [pid 32464]
AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
PHP/5.4.16 mod_perl/2.0.9dev Perl/v5.16.3 configured – resuming normal
operations

Can’t locate UNIVERSAL/require.pm in @INC (@INC contains:
/opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/opt/rt4/sbin/…/lib/RT.pm line 60.
BEGIN failed–compilation aborted at /opt/rt4/sbin/…/lib/RT.pm line 60.
Compilation failed in require at /opt/rt4/sbin/rt-server.fcgi line 86.

From browser:
500 Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator at to
inform them of the time this error occurred, and the actions you
performed just before this error.

More information about this error may be available in the server error log.

Then I see the at the bottom of the logs:

mod_fcgid: error reading data from FastCGI server

core:error End of script output before headers: rt-server.fcgi

At this point do I need to re-install with a different configure
–with-web-handler=fcgid instead of --with-web-handler=fastcgi ?

If you use with fcgid then use the right configs for that handler. If
you use fastcgi, then use the right configs for that handler.

https://www.bestpractical.com/docs/rt/4.4.0/web_deployment.html

-m

Hi Matt,

For configuring fcgid I do not see a configure web-handler choice for
fcgid in configure --help.

It has fastcgi (default) modperl1 modperl2 and standalone. What is the
correct configure to use with fcgid?

Currently I am using fastcgi which has produced the below errors.

Thanks,
BradOn 02/21/2016 01:59 PM, Matt Zagrabelny wrote:

On Sun, Feb 21, 2016 at 11:20 AM, Brad bradzynda42@comcast.net wrote:

Hi All,

Set it up as Piotr pointed out but now getting an Internal error:

[Sun Feb 21 16:51:48.198523 2016] [mpm_prefork:notice] [pid 32464]
AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
PHP/5.4.16 mod_perl/2.0.9dev Perl/v5.16.3 configured – resuming normal
operations

Can’t locate UNIVERSAL/require.pm in @INC (@INC contains:
/opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/opt/rt4/sbin/…/lib/RT.pm line 60.
BEGIN failed–compilation aborted at /opt/rt4/sbin/…/lib/RT.pm line 60.
Compilation failed in require at /opt/rt4/sbin/rt-server.fcgi line 86.

From browser:
500 Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator at to
inform them of the time this error occurred, and the actions you
performed just before this error.

More information about this error may be available in the server error log.

Then I see the at the bottom of the logs:

mod_fcgid: error reading data from FastCGI server

core:error End of script output before headers: rt-server.fcgi

At this point do I need to re-install with a different configure
–with-web-handler=fcgid instead of --with-web-handler=fastcgi ?
If you use with fcgid then use the right configs for that handler. If
you use fastcgi, then use the right configs for that handler.

https://www.bestpractical.com/docs/rt/4.4.0/web_deployment.html

-m