<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=FastCGIConfiguration</id>
	<title>FastCGIConfiguration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=FastCGIConfiguration"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;action=history"/>
	<updated>2026-08-22T15:19:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=26505&amp;oldid=prev</id>
		<title>Mdfinn: Some nowiki tags were not closing properly because of indents; fixed.</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=26505&amp;oldid=prev"/>
		<updated>2017-06-30T13:33:58Z</updated>

		<summary type="html">&lt;p&gt;Some nowiki tags were not closing properly because of indents; fixed.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:33, 30 June 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l206&quot;&gt;Line 206:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 206:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        &lt;/del&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you are using mod_fcgid, you&amp;#039;ll want to add something like the following to your httpd.conf:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you are using mod_fcgid, you&amp;#039;ll want to add something like the following to your httpd.conf:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l283&quot;&gt;Line 283:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 283:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        &lt;/del&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuring RT3 to run with nginx ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuring RT3 to run with nginx ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l398&quot;&gt;Line 398:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 398:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;#!/usr/bin/suidperl&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;#!/usr/bin/suidperl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        &lt;/del&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;3. Add the following to /etc/httpd/conf/httpd.conf&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;3. Add the following to /etc/httpd/conf/httpd.conf&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-26415:rev-26505:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mdfinn</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=26415&amp;oldid=prev</id>
		<title>Rabin: /* Configuring RT to run as a static/external FastCGI application */</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=26415&amp;oldid=prev"/>
		<updated>2016-10-27T09:20:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuring RT to run as a static/external FastCGI application&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:20, 27 October 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l111&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You will need to set up a script that starts RT after your web server. For best results, use a [[SysV]]-style &amp;lt;code&amp;gt;/etc/init.d/&amp;lt;/code&amp;gt; script. Here is an example of such a script:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You will need to set up a script that starts RT after your web server. For best results, use a [[SysV]]-style &amp;lt;code&amp;gt;/etc/init.d/&amp;lt;/code&amp;gt; script. Here is an example of such a script:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                          &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         RTPATH=/path/to/rt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         RTPATH=/path/to/rt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l149&quot;&gt;Line 149:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 149:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                                 ;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                                 ;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         esac&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         esac&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        &lt;/del&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(this example corresponds to the lighttpd setup example)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(this example corresponds to the lighttpd setup example)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-1275:rev-26415:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Rabin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1275&amp;oldid=prev</id>
		<title>Admin: 19 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1275&amp;oldid=prev"/>
		<updated>2016-04-06T20:09:02Z</updated>

		<summary type="html">&lt;p&gt;19 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:09, 6 April 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-1274:rev-1275 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1274&amp;oldid=prev</id>
		<title>83.236.138.178: Added configuration rt 4.2.6 / nginx  with documentroot /rt</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1274&amp;oldid=prev"/>
		<updated>2015-01-14T07:51:39Z</updated>

		<summary type="html">&lt;p&gt;Added configuration rt 4.2.6 / nginx  with documentroot /rt&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{OutdatedInstallGuide}}&lt;br /&gt;
&lt;br /&gt;
As of the 12/19/2012, a fastcgi_server is in the libexec folder of your request_tracker path in debian. It is flawed in such a way (line 202; &amp;#039;&amp;#039;unless&amp;#039;&amp;#039; clause) that you cannot specify the socket file you want to use, it will always use the default one (specifying the pid file works though). For this very reason, the configuration values below correspond to the default ones of the fastcgi_server script.&lt;br /&gt;
&lt;br /&gt;
Following are the initscript and the nginx configuration necessary to use it:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
      &lt;br /&gt;
      RTPATH=&amp;quot;/usr/share/request-tracker3.8/&amp;quot;&lt;br /&gt;
      RTUSER=www-data&lt;br /&gt;
      SOCKET_FILE=/var/cache/request-tracker3.8/fastcgi.sock&lt;br /&gt;
      # if you want to use a IP connection instead, please modify the su line to start it with -p or --port option instead of the --socket one.&lt;br /&gt;
      PID_FILE=/var/cache/request-tracker3.8/fastcgi.pid&lt;br /&gt;
      &lt;br /&gt;
      case $1 in&lt;br /&gt;
          start)&lt;br /&gt;
              echo -n &amp;quot;Starting RT: &amp;quot;&lt;br /&gt;
              cd $RTPATH&lt;br /&gt;
              export FCGI_SOCKET_PATH&lt;br /&gt;
              RTUSER_GROUP=&amp;quot;`id -gn $RTUSER 2&amp;gt;/dev/null`&amp;quot;&lt;br /&gt;
              if [ -n &amp;quot;$RTUSER_GROUP&amp;quot; ]&lt;br /&gt;
              then&lt;br /&gt;
                touch $PID_FILE $SOCKET_FILE;&lt;br /&gt;
                chown $RTUSER:$RTUSER_GROUP $PID_FILE $SOCKET_FILE&lt;br /&gt;
              fi&lt;br /&gt;
              su $RTUSER -c &amp;quot;libexec/fastcgi_server --pidfile=$PID_FILE --socket=$SOCKET_FILE 2&amp;gt; /dev/null&amp;quot; &amp;amp;&lt;br /&gt;
              echo &amp;quot;Started.&amp;quot;&lt;br /&gt;
              ;;&lt;br /&gt;
      &lt;br /&gt;
          stop)&lt;br /&gt;
              echo -n &amp;quot;Stopping RT: &amp;quot;&lt;br /&gt;
              PID=&amp;quot;`cat $PID_FILE 2&amp;gt;/dev/null`&amp;quot;&lt;br /&gt;
              if [ -n &amp;quot;$PID&amp;quot; ]&lt;br /&gt;
              then&lt;br /&gt;
                  kill $PID&lt;br /&gt;
                  echo &amp;quot;Stopped.&amp;quot;&lt;br /&gt;
                  rm -f $SOCKET_FILE $PID_FILE&lt;br /&gt;
              else&lt;br /&gt;
                  echo &amp;quot;not running.&amp;quot;&lt;br /&gt;
              fi&lt;br /&gt;
              ;;&lt;br /&gt;
      &lt;br /&gt;
          restart|force-reload)&lt;br /&gt;
              $0 stop&lt;br /&gt;
              $0 start&lt;br /&gt;
              ;;&lt;br /&gt;
      &lt;br /&gt;
          *)&lt;br /&gt;
              echo &amp;quot;Usage: /etc/init.d/rt { stop | start | restart }&amp;quot;&lt;br /&gt;
              exit 1&lt;br /&gt;
              ;;&lt;br /&gt;
      esac&lt;br /&gt;
&lt;br /&gt;
 server {&lt;br /&gt;
        root /usr/share/request-tracker3.8/html;&lt;br /&gt;
        index index.html index.htm;&lt;br /&gt;
        server_name localhost debian;&lt;br /&gt;
        location / {&lt;br /&gt;
                rewrite ^/rt/(.*)$ /$1 last; # this line can be removed if the 50-debconf file is modified. (&amp;#039;&amp;#039;Set($WebPath , &amp;quot;&amp;quot;);&amp;#039;&amp;#039;)&lt;br /&gt;
                try_files $uri $uri/ index.html;&lt;br /&gt;
                fastcgi_pass    unix:/var/cache/request-tracker3.8/fastcgi.sock;&lt;br /&gt;
                include         /etc/nginx/fastcgi_params;&lt;br /&gt;
                fastcgi_param   SCRIPT_NAME &amp;quot;&amp;quot;;&lt;br /&gt;
                fastcgi_param   PATH_INFO $uri;&lt;br /&gt;
        }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;&amp;#039;&amp;#039;&amp;#039;NOTE: The information below is outdated. It is superseded by the documentation in docs/web_deployment.pod in the base RT tarball.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;[https://www.soljerome.com/blog/2011/04/22/installing-request-tracker-on-ubuntu-with-nginx/ http://soljerome.com/blog/category/linux/nginx/], 4/22/2011 blog post about setting up&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;RT 3.8&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;nginx&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;MySQL&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Ubuntu 10.04&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
-- MarkB&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;FastCGI is a variant to run RT server. You may want to read [[ManualApacheConfig]] to decide what you want to use.&lt;br /&gt;
&lt;br /&gt;
Even if you decided to use [[FastCGI]] then anyway you must read [[ManualApacheConfig]]. It&amp;#039;s sort of mandatory reading :)&lt;br /&gt;
&lt;br /&gt;
Configuring RT to run in [[FastCGI]] mode is dead simple. However, configuring Apache is hard. If you are considering a single web server to use with RT, you might like to consider a fast and simple solution such as lighttpd, nginx or any of the commercial and free web servers available that support [[FastCGI]].&lt;br /&gt;
&lt;br /&gt;
= Configuring RT 3.2 and newer to run in FastCGI mode =&lt;br /&gt;
&lt;br /&gt;
When installing RT, run:&lt;br /&gt;
&lt;br /&gt;
 ./configure \&lt;br /&gt;
   --with-web-user=&amp;quot;webuser&amp;quot; \&lt;br /&gt;
   --with-web-group=&amp;quot;webgroup&amp;quot; \&lt;br /&gt;
   --with-rt-user=&amp;quot;webuser&amp;quot; \&lt;br /&gt;
   --with-rt-group=&amp;quot;webgroup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Don&amp;#039;t forget to include other configuration options that matter to you, like --prefix. You will still need to customize [=etc/[[RT SiteConfig|RT_SiteConfig]].pm] using [=etc/[[RT Config|RT_Config]].pm] as a base, before you run `&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&amp;#039;. If you do not have `root&amp;#039; access to the server you are installing to, you can use `&amp;lt;code&amp;gt;fakeroot&amp;lt;/code&amp;gt;&amp;#039; or a similar utility to use `&amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Configuring RT to run as a dynamic FastCGI application ==&lt;br /&gt;
&lt;br /&gt;
A dynamic [[FastCGI]] application is one in which the application process is dynamically started and stopped by the webserver process, on demand.&lt;br /&gt;
&lt;br /&gt;
RT&amp;#039;s [[FastCGI]] handler defaults to assuming it is being run as as a dynamic application. So, configure your web server to start &amp;lt;code&amp;gt;bin/mason_handler.fcgi&amp;lt;/code&amp;gt; inside the RT installation directory for requests that it is to handle. The first time RT is accessed the web server will attempt to start RT.&lt;br /&gt;
&lt;br /&gt;
Note that this is a less-than-ideal approach, security wise, since the RT application runs under the same user-id as the web server. A better approach would be to have the web server somehow switch users when starting RT. This is commonly achieved via set-uid wrappers, which are generally hard to debug when things go wrong. Also, you will be relying on the process manager included with your web server.&lt;br /&gt;
&lt;br /&gt;
== Configuring RT to run as a static/external FastCGI application ==&lt;br /&gt;
&lt;br /&gt;
A static/external [[FastCGI]] application is one in which the application is started manually or independently of the webserver, and the webserver connects to it when needed. This makes it easy to setup user separation between the RT process and the webserver process, but you lose out on the ability for the webserver to dynamically determine how many RT processes need to be running.&lt;br /&gt;
&lt;br /&gt;
This is achieved by running the &amp;lt;code&amp;gt;bin/mason_handler.fcgi&amp;lt;/code&amp;gt; script as the configured RT user, setting &amp;lt;code&amp;gt;FCGI_SOCKET_PATH&amp;lt;/code&amp;gt; in the process environment to the location of the application socket, or a /hostname:port/ combination. This is a feature of the &amp;lt;code&amp;gt;CGI::Fast&amp;lt;/code&amp;gt; perl module, so you may need to upgrade your version of that module if your version does not support this feature.&lt;br /&gt;
&lt;br /&gt;
Note that the [[FastCGI]] handler for RT does not currently include a process manager, instead single threading requests. This is likely to be addressed in a later version of either &amp;lt;code&amp;gt;CGI::Fast&amp;lt;/code&amp;gt; or RT, but for small installations this is usually acceptable. A simple workaround is simply to start more than one RT daemon.&lt;br /&gt;
&lt;br /&gt;
Note that running RT in single threaded [[FastCGI]] mode is the &amp;#039;&amp;#039;&amp;#039;only&amp;#039;&amp;#039;&amp;#039; time that it is actually /safe/ to turn off the [=$[[WebFlushDbCacheEveryRequest]]] configuration option.&lt;br /&gt;
&lt;br /&gt;
You will need to set up a script that starts RT after your web server. For best results, use a [[SysV]]-style &amp;lt;code&amp;gt;/etc/init.d/&amp;lt;/code&amp;gt; script. Here is an example of such a script:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#!/bin/sh&lt;br /&gt;
                        &lt;br /&gt;
                        RTPATH=/path/to/rt&lt;br /&gt;
                        RTUSER=rt&lt;br /&gt;
                        FCGI_SOCKET_PATH=$RTPATH/var/appSocket&lt;br /&gt;
                        &lt;br /&gt;
                        case $1 in&lt;br /&gt;
                            start)&lt;br /&gt;
                                echo -n &amp;quot;Starting RT: mason_handler.fcgi&amp;quot;&lt;br /&gt;
                                cd $RTPATH&lt;br /&gt;
                                export FCGI_SOCKET_PATH&lt;br /&gt;
                                su $RTUSER -c perl bin/mason_handler.fcgi &amp;amp;amp;&lt;br /&gt;
                                echo&lt;br /&gt;
                                ;;&lt;br /&gt;
                        &lt;br /&gt;
                            stop)&lt;br /&gt;
                                echo -n &amp;quot;Stopping RT: &amp;quot;&lt;br /&gt;
                                PIDS=`ps axww | awk &amp;#039;/[m]ason_handler.fcgi/ { print $1}&amp;#039;`&lt;br /&gt;
                                if [ -n &amp;quot;$PIDS&amp;quot; ]&lt;br /&gt;
                                then&lt;br /&gt;
                                    echo -n kill -TERM $PIDS&lt;br /&gt;
                                    kill $PIDS&lt;br /&gt;
                                    echo&lt;br /&gt;
                                else&lt;br /&gt;
                                    echo RT not running&lt;br /&gt;
                                fi&lt;br /&gt;
                                ;;&lt;br /&gt;
                        &lt;br /&gt;
                            restart|force-reload)&lt;br /&gt;
                                $0 stop&lt;br /&gt;
                                $0 start&lt;br /&gt;
                                ;;&lt;br /&gt;
                        &lt;br /&gt;
                            *)&lt;br /&gt;
                                echo &amp;quot;Usage: /etc/init.d/rt { stop | start | restart }&amp;quot;&lt;br /&gt;
                                exit 1&lt;br /&gt;
                                ;;&lt;br /&gt;
                        esac&lt;br /&gt;
                        &lt;br /&gt;
                        &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(this example corresponds to the lighttpd setup example)&lt;br /&gt;
&lt;br /&gt;
= Web-server specific FastCGI notes =&lt;br /&gt;
&lt;br /&gt;
== Configuring RT to run with lighttpd ==&lt;br /&gt;
&lt;br /&gt;
A small patch needs to be applied to lighttpd 1.3.x, as its [[FastCGI]] support is slightly broken. See [[LighttpdPatch]] for the patch. Lighttpd 1.4.x does not have the problem.&lt;br /&gt;
&lt;br /&gt;
First, make sure that &amp;lt;code&amp;gt;&amp;quot;mod_fastcgi&amp;quot;&amp;lt;/code&amp;gt; is uncommented in the &amp;lt;code&amp;gt;server.modules&amp;lt;/code&amp;gt; option. Then you can use a &amp;lt;code&amp;gt;fastcgi.server&amp;lt;/code&amp;gt; configuration setting similar to:&lt;br /&gt;
&lt;br /&gt;
 fastcgi.server = ( &amp;quot;/rt&amp;quot; =&amp;amp;gt;&lt;br /&gt;
                      ( &amp;quot;rt&amp;quot; =&amp;amp;gt;&lt;br /&gt;
                          (&lt;br /&gt;
                              &amp;quot;socket&amp;quot; =&amp;amp;gt; &amp;quot;/path/to/rt/var/appSocket&amp;quot;,&lt;br /&gt;
                               &amp;quot;check-local&amp;quot; =&amp;amp;gt; &amp;quot;disable&amp;quot;&lt;br /&gt;
                          )&lt;br /&gt;
                      )&lt;br /&gt;
                  )&lt;br /&gt;
&lt;br /&gt;
Information for lighttpd is included as it is the easiest to setup open source web server that supports [[FastCGI]] that I am aware of. However, the process is just as simple using commercial web servers, like Zeus, [[LiteSpeed]] or thttpd professional, and no doubt other web servers with [[FastCGI]] support like Roxen or Pi3web.&lt;br /&gt;
&lt;br /&gt;
== Configuring RT to run with Apache ==&lt;br /&gt;
&lt;br /&gt;
RT 3.2 includes a significant change to the [[FastCGI]] handler. It is no longer &amp;quot;setgid&amp;quot; to the RT group. Perl&amp;#039;s setid support has been deprecated for the last several releases and a number of platforms don&amp;#039;t bundle the &amp;quot;sperl&amp;quot; or &amp;quot;suidperl&amp;quot; executable by default. Additionally, when perl is run [[SetUID]] or [[SetGID]], the interpreter is automatically switched into /taint mode/, in which all incoming data, no matter the source is considered suspect. At first, this seems like a great idea. But perl&amp;#039;s taint mode is a big sledgehammer used to hit small nails. Many perl libraries aren&amp;#039;t tested in taint mode and will fail when least expected. Moving away from a [[SetGID]] [[FastCGI]] handler will enable more users to have a smoother RT experience. It does require some changes in how you set up and configure RT.&lt;br /&gt;
&lt;br /&gt;
Beginning with RT 3.2, you have several choices about how to configure RT to run as a [[FastCGI]]:&lt;br /&gt;
&lt;br /&gt;
=== 1. Install RT as the user your webserver runs as ===&lt;br /&gt;
&lt;br /&gt;
Pros: Very easy to configure&lt;br /&gt;
&lt;br /&gt;
Cons: Your webserver has access to RT&amp;#039;s private database password&lt;br /&gt;
&lt;br /&gt;
==== How To ====&lt;br /&gt;
&lt;br /&gt;
First, determine whether you are using mod_fastcgi or mod_fcgid. I believe mod_fastcgi is older and supports older versions of Apache (i.e. Apache 1.x). The mod_fcgid is newer and is included with newer versions of Fedora Linux, etc. RT does not care which module is being used, but the configuration syntax is different for each module.&lt;br /&gt;
&lt;br /&gt;
If you are using mod_fastcgi (apache 1.x), you&amp;#039;ll want to add something like the following to your httpd.conf:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; Most [[FastCGI]] options are available only in apache&amp;#039;s server config context, not in virtual host sections.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# Tell FastCGI to put its temporary files somewhere sane.&lt;br /&gt;
                        FastCgiIpcDir /tmp&lt;br /&gt;
                        &lt;br /&gt;
                        # Number of processes is tunable, but you need at least 3 or 4&lt;br /&gt;
                        FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 4&lt;br /&gt;
                        &lt;br /&gt;
                        &amp;amp;lt;VirtualHost rt.example.com&amp;amp;gt;&lt;br /&gt;
                        &lt;br /&gt;
                           AddHandler fastcgi-script fcgi&lt;br /&gt;
                           ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/&lt;br /&gt;
                        &lt;br /&gt;
                        &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;br /&gt;
                        &lt;br /&gt;
                        &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are using mod_fcgid, you&amp;#039;ll want to add something like the following to your httpd.conf:&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;VirtualHost rt.example.com&amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    ServerName rt.example.com&lt;br /&gt;
    DocumentRoot /opt/rt3/share/html&lt;br /&gt;
 &lt;br /&gt;
    AddHandler fcgid-script fcgi&lt;br /&gt;
    ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 2. Make your webserver user a member of the &amp;quot;rt&amp;quot; group ===&lt;br /&gt;
&lt;br /&gt;
Pros: Easy to configure&lt;br /&gt;
&lt;br /&gt;
Cons: Your webserver has access to RT&amp;#039;s private database password&lt;br /&gt;
&lt;br /&gt;
==== How To ====&lt;br /&gt;
&lt;br /&gt;
Install RT normally. Add whichever user your webserver runs as (whatever you set --with-web-user to) to the &amp;quot;rt&amp;quot; group (whatever you set --with-rt-group to) in /etc/groups.&lt;br /&gt;
&lt;br /&gt;
To find out what user your webserver runs as, look for the line&lt;br /&gt;
&lt;br /&gt;
 User some-user-name&lt;br /&gt;
&lt;br /&gt;
in your apache httpd.conf. Common values are www, www-data, web and nobody.&lt;br /&gt;
&lt;br /&gt;
=== 3. Run RT using _suexec_ or a similar mechanism ===&lt;br /&gt;
&lt;br /&gt;
Pros: More secure&lt;br /&gt;
&lt;br /&gt;
Cons: Sometimes very difficult to configure&lt;br /&gt;
&lt;br /&gt;
==== How To ====&lt;br /&gt;
&lt;br /&gt;
Apache&amp;#039;s &amp;lt;u&amp;gt;suexec&amp;lt;/u&amp;gt; utility allows you run CGI programs as specific users. Because that&amp;#039;s a relatively heavy responsibility, it&amp;#039;s very, very conservative about what it&amp;#039;s willing to do for you. On top of that, Apache&amp;#039;s mod_fastcgi plugin doesn&amp;#039;t respect all of suexec&amp;#039;s features. While suexec is designed to execute CGI scripts in a given virtual host&amp;#039;s DocumentRoot, It can only execute [[FastCGI]] scripts in the system&amp;#039;s &amp;#039;&amp;#039;&amp;#039;main&amp;#039;&amp;#039;&amp;#039; DocumentRoot.&lt;br /&gt;
&lt;br /&gt;
This means you have to copy the RT [[FastCGI]] handler into your main DocumentRoot&lt;br /&gt;
&lt;br /&gt;
The following example VirtualHost will run RT as a [[FastCGI]] on Apache 1.3 on a Debian Linux server.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# Tell FastCGI to put its temporary files somewhere sane.&lt;br /&gt;
                        FastCgiIpcDir /tmp&lt;br /&gt;
                        &lt;br /&gt;
                        # Tell FastCGI that it should use apache&amp;#039;s &amp;quot;suexec&amp;quot; binary to call any FastCGI script.&lt;br /&gt;
                        # This is a GLOBAL setting&lt;br /&gt;
                        FastCgiWrapper /usr/lib/apache/suexec&lt;br /&gt;
                        &lt;br /&gt;
                        # You need to copy the rt mason_handler.fcgi into a directory inside the main server DocumentRoot&lt;br /&gt;
                        # That directory must be owned by the user and group that will execute the FastCGI script&lt;br /&gt;
                        # In this case, that directory is /var/www/rt&lt;br /&gt;
                        &lt;br /&gt;
                        # To find the local DocumentRoot, run &amp;quot;suexec -V&amp;quot; as root and look for the&lt;br /&gt;
                        #  -D DOC_ROOT parameter.&lt;br /&gt;
                        &lt;br /&gt;
                        # Apache 1.3 discards the user and group parameters on the FastCgiServer line.&lt;br /&gt;
                        # Apache 2.0 requires them.&lt;br /&gt;
                        FastCgiServer /var/www/rt/mason_handler.fcgi -idle-timeout 120 -user rt -group rt -processes 4&lt;br /&gt;
                        &lt;br /&gt;
                        &amp;amp;lt;VirtualHost rt.example.com&amp;amp;gt;&lt;br /&gt;
                        &lt;br /&gt;
                           DocumentRoot /opt/rt3/share/html&lt;br /&gt;
                        &lt;br /&gt;
                           # Set the rt user and group as the executing user for this virtual host.&lt;br /&gt;
                           # For apache 2 you need&lt;br /&gt;
                           #    SuexecUserGroup rt rt&lt;br /&gt;
                           # instead&lt;br /&gt;
                           User rt&lt;br /&gt;
                           Group rt&lt;br /&gt;
                        &lt;br /&gt;
                           AddHandler fastcgi-script fcgi&lt;br /&gt;
                           ScriptAlias / /var/www/rt/mason_handler.fcgi/&lt;br /&gt;
                        &lt;br /&gt;
                        &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;br /&gt;
                        &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuring RT3 to run with nginx ==&lt;br /&gt;
&lt;br /&gt;
The patch listed below is no longer required with the latest version of nginx ([[ManualApacheConfig|http://www.nginx.net]]),&lt;br /&gt;
&lt;br /&gt;
Here is a quick excerpt that shows how to run rt3 with a [[FastCGI]] socket,&lt;br /&gt;
&lt;br /&gt;
 server {&lt;br /&gt;
     listen       80;&lt;br /&gt;
     server_name  localhost;&lt;br /&gt;
 &lt;br /&gt;
     location / {&lt;br /&gt;
             root   /usr/local/rt3/share/html;&lt;br /&gt;
             fastcgi_pass    unix:/var/run/rt3/rt3.socket;&lt;br /&gt;
 &lt;br /&gt;
             fastcgi_param  QUERY_STRING       $query_string;&lt;br /&gt;
             fastcgi_param  REQUEST_METHOD     $request_method;&lt;br /&gt;
             fastcgi_param  CONTENT_TYPE       $content_type;&lt;br /&gt;
             fastcgi_param  CONTENT_LENGTH     $content_length;&lt;br /&gt;
             fastcgi_param  PATH_INFO          $fastcgi_script_name;&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     location /NoAuth/ {&lt;br /&gt;
             alias   /usr/local/rt3/share/html/NoAuth/;&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
It seems that declaring SCRIPT_NAME /and/ PATH_INFO clobbers some functions so be sure to use only PATH_INFO.&lt;br /&gt;
&lt;br /&gt;
A small patch needs to be applied to mason_handler.fcgi to run properly under [[FastCGI]] witn nginx. Problem - nginx not send PATH_INFO to fastcgi server.&lt;br /&gt;
&lt;br /&gt;
First apply next patch to mason_handler.fcgi:&lt;br /&gt;
&lt;br /&gt;
  --- ./bin/mason_handler.fcgi    2005-12-02 08:23:20.000000000 -0500&lt;br /&gt;
  +++ /usr/local/rt3/bin/mason_handler.fcgi       2005-12-02 11:54:56.000000000 -0500&lt;br /&gt;
  @@ -68,11 +68,17 @@&lt;br /&gt;
      Module::Refresh-&amp;amp;gt;refresh if $RT::DevelMode;&lt;br /&gt;
      RT::ConnectToDatabase();&lt;br /&gt;
 &lt;br /&gt;
 +    my $path_info = $cgi-&amp;amp;gt;script_name;&lt;br /&gt;
 +    $path_info =~ s/^\///;&lt;br /&gt;
 +    $cgi-&amp;amp;gt;path_info($path_info);&lt;br /&gt;
 +        $RT::Logger-&amp;amp;gt;crit($path_info);&lt;br /&gt;
 +&lt;br /&gt;
      if ( ( !$Handler-&amp;amp;gt;interp-&amp;amp;gt;comp_exists( $cgi-&amp;amp;gt;path_info ) )&lt;br /&gt;
          &amp;amp;amp;&amp;amp;amp; ( $Handler-&amp;amp;gt;interp-&amp;amp;gt;comp_exists( $cgi-&amp;amp;gt;path_info . &amp;quot;/index.html&amp;quot; ) ) ) {&lt;br /&gt;
          $cgi-&amp;amp;gt;path_info( $cgi-&amp;amp;gt;path_info . &amp;quot;/index.html&amp;quot; );&lt;br /&gt;
      }&lt;br /&gt;
 -&lt;br /&gt;
 +&lt;br /&gt;
 +            $RT::Logger-&amp;amp;gt;crit($cgi-&amp;amp;gt;path_info);&lt;br /&gt;
      eval { $Handler-&amp;amp;gt;handle_cgi_object($cgi); };&lt;br /&gt;
      if ($@) {&lt;br /&gt;
          $RT::Logger-&amp;amp;gt;crit($@);&lt;br /&gt;
&lt;br /&gt;
Then create config for vhost that you want run rt3 on:&lt;br /&gt;
&lt;br /&gt;
(example of config for fastcgi socket path - /tmp/request_tracker and rt3 installation path - /usr/local/rt3/&lt;br /&gt;
&lt;br /&gt;
 server {&lt;br /&gt;
 listen  IP_ADDRESS:PORT;&lt;br /&gt;
 server_name     domain.com;&lt;br /&gt;
 &lt;br /&gt;
 location /images/ {	   alias /usr/local/rt3/share/html/NoAuth/images/;    }&lt;br /&gt;
 &lt;br /&gt;
    location  / {&lt;br /&gt;
    fastcgi_pass  unix:/tmp/request_tracker;&lt;br /&gt;
    fastcgi_x_powered_by off; # default on&lt;br /&gt;
    fastcgi_param   DOCUMENT_ROOT   /usr/local/rt3/share/html;&lt;br /&gt;
    fastcgi_param   SCRIPT_FILENAME /usr/local/rt3/share/html$fastcgi_script_name;&lt;br /&gt;
    fastcgi_param   PATH_TRANSLATED /usr/local/rt3/share/html$fastcgi_script_name;&lt;br /&gt;
    fastcgi_param   SCRIPT_NAME  $fastcgi_script_name;&lt;br /&gt;
    fastcgi_param   QUERY_STRING    $query_string;&lt;br /&gt;
    fastcgi_param   CONTENT_TYPE    $content_type;&lt;br /&gt;
    fastcgi_param   CONTENT_LENGTH  $content_length;&lt;br /&gt;
    fastcgi_param   REDIRECT_STATUS 200;&lt;br /&gt;
    fastcgi_param   SERVER_ADDR     $server_addr;&lt;br /&gt;
    fastcgi_param   SERVER_PORT     $server_port;&lt;br /&gt;
    fastcgi_param   SERVER_PROTOCOL $server_protocol;&lt;br /&gt;
    fastcgi_param   SERVER_SOFTWARE &amp;quot;nginx/0.3.15&amp;quot;;&lt;br /&gt;
    fastcgi_param   GATEWAY_INTERFACE       &amp;quot;CGI/1.1&amp;quot;;&lt;br /&gt;
    fastcgi_param   SERVER_NAME     $server_name;&lt;br /&gt;
    fastcgi_param   SERVER_NAME     $server_name;&lt;br /&gt;
    fastcgi_param   REQUEST_URI     $request_uri;&lt;br /&gt;
    fastcgi_param   REQUEST_METHOD  $request_method;&lt;br /&gt;
    fastcgi_param   REMOTE_USER     $remote_user;&lt;br /&gt;
    fastcgi_param   REMOTE_ADDR     $remote_addr;&lt;br /&gt;
    fastcgi_param   REMOTE_PORT     $remote_port;&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
 location ~* .+\.(html|js|css)$  {       ....same as above location....     }&lt;br /&gt;
 &lt;br /&gt;
 location  /NoAuth/ {     	alias /usr/local/rt3/share/html/NoAuth/;     }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
All tested and working with rt 3.5.5&lt;br /&gt;
&lt;br /&gt;
Other information about nginx and FastCGI can be found on our site - [[ManualApacheConfig|http://www.nginx.info]] (now russian only, will be translated soon)&lt;br /&gt;
&lt;br /&gt;
PS. If you want run rt3 with prefix - domain.com/prefix/, so need to remove that prefix for path_info (in perl code of patch above)&lt;br /&gt;
&lt;br /&gt;
== RT 3.0 FastCGI configuration ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;!FastCGI configuration for Apache 2.0&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
(assumes FastCGI is already installed)&lt;br /&gt;
&lt;br /&gt;
This is roughly what I had to do to get [[RequestTracker]] working using [[FastCGI]] on [[RedHat9]] system.&lt;br /&gt;
&lt;br /&gt;
1. Install suidperl package, if not already installed.&lt;br /&gt;
&lt;br /&gt;
2. Edit first line of /opt/rt3/bin/mason_handler.fcgi to be&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#!/usr/bin/suidperl&lt;br /&gt;
                        &lt;br /&gt;
                        &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Add the following to /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
 LoadModule fastcgi_module modules/mod_fastcgi.so&lt;br /&gt;
 &lt;br /&gt;
 FastCgiIpcDir /tmp&lt;br /&gt;
 FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 300 -processes 5&lt;br /&gt;
 &amp;amp;lt;VirtualHost *&amp;amp;gt;&lt;br /&gt;
     ServerName rt-host-name.example.org&lt;br /&gt;
     DocumentRoot /opt/rt3/share/html&lt;br /&gt;
 &lt;br /&gt;
     AddHandler fastcgi-script fcgi&lt;br /&gt;
     ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/&lt;br /&gt;
 &lt;br /&gt;
     &amp;amp;lt;Location /&amp;amp;gt;&lt;br /&gt;
         AddDefaultCharset UTF-8&lt;br /&gt;
         SetHandler fastcgi-script&lt;br /&gt;
     &amp;amp;lt;/Location&amp;amp;gt;&lt;br /&gt;
 &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;!FastCGI configuration for Apache 1.3&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
 LoadModule fastcgi_module libexec/apache/mod_fastcgi.so&lt;br /&gt;
 AddModule mod_fastcgi.c&lt;br /&gt;
&lt;br /&gt;
Outside the vhost:&lt;br /&gt;
&lt;br /&gt;
 FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 300 -processes 5&lt;br /&gt;
&lt;br /&gt;
In your vhost:&lt;br /&gt;
&lt;br /&gt;
 AddHandler fastcgi-script fcgi&lt;br /&gt;
 ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/&lt;br /&gt;
 &amp;amp;lt;Location /&amp;amp;gt;&lt;br /&gt;
       AddDefaultCharset UTF-8&lt;br /&gt;
       SetHandler fastcgi-script&lt;br /&gt;
 &amp;amp;lt;/Location&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Since the default Apache install includes a Directory directive blocking access to / and another to allow for the [[DocumentRoot]], you might need to add something like:&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;Directory &amp;quot;/opt/rt3&amp;quot;&amp;amp;gt;&lt;br /&gt;
     Order allow,deny&lt;br /&gt;
     Allow from all&lt;br /&gt;
 &amp;amp;lt;/Directory&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
To allow access to that directory, too. The symptom is getting &amp;#039;403 Forbidden&amp;#039; and a line like &amp;#039;client denied by server configuration&amp;#039; in your Apache error log, even for index.html. -- [[HowardJones]]&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#fastcgiserver mod_fastcgi for apache]&lt;br /&gt;
&lt;br /&gt;
== Running rt 4.2.6 / nginx / DocumentRoot-prefix &amp;quot;/rt&amp;quot; ==&lt;br /&gt;
I updated to rt 4.2.6 - now, the combination of rt / nginx / fastcgi / document-root &amp;#039;/rt&amp;#039; does not work again. My goal is to map a RT with nginx to a URL like &amp;quot;http://www.domain.de:8080/rt&amp;quot; (instead of &amp;quot;http://www.domain.de:8080&amp;quot;). I played around and found the following working setup - Danny70437.&lt;br /&gt;
 /etc/nginx/conf.d/rt4.conf&lt;br /&gt;
 &lt;br /&gt;
 server {&lt;br /&gt;
 &lt;br /&gt;
 listen       8080;&lt;br /&gt;
 server_name  host.domain.de;&lt;br /&gt;
 root /tmp;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; /opt/rt4/etc/RT_SiteConfig.pm&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;   Set($WebDomain, &amp;quot;host.domain.de&amp;quot;);&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;   Set($WebPort , 8080);&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;   Set($WebPath , &amp;quot;/rt&amp;quot;);&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;   Set(@ReferrerWhitelist, qw(extranet.domain.de:443 host.domain.de:8080 ));&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 location  / {&lt;br /&gt;
 &lt;br /&gt;
 ###&amp;lt;/nowiki&amp;gt; &amp;lt;original /etc/nginx/fastcgi_params - debian 7.x&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; include         /etc/nginx/fastcgi_params;&lt;br /&gt;
 fastcgi_param QUERY_STRING            $query_string;&lt;br /&gt;
 fastcgi_param REQUEST_METHOD          $request_method;&lt;br /&gt;
 fastcgi_param CONTENT_TYPE            $content_type;&lt;br /&gt;
 fastcgi_param CONTENT_LENGTH          $content_length;&lt;br /&gt;
 &lt;br /&gt;
 fastcgi_param SCRIPT_FILENAME         $request_filename;&lt;br /&gt;
 fastcgi_param SCRIPT_NAME             $fastcgi_script_name;&lt;br /&gt;
 fastcgi_param REQUEST_URI             $request_uri;&lt;br /&gt;
 fastcgi_param DOCUMENT_URI            $document_uri;&lt;br /&gt;
 fastcgi_param DOCUMENT_ROOT           $document_root;&lt;br /&gt;
 fastcgi_param SERVER_PROTOCOL         $server_protocol;&lt;br /&gt;
 &lt;br /&gt;
 fastcgi_param GATEWAY_INTERFACE       CGI/1.1;&lt;br /&gt;
 fastcgi_param SERVER_SOFTWARE         nginx/$nginx_version;&lt;br /&gt;
 &lt;br /&gt;
 fastcgi_param REMOTE_ADDR             $remote_addr;&lt;br /&gt;
 fastcgi_param REMOTE_PORT             $remote_port;&lt;br /&gt;
 fastcgi_param SERVER_ADDR             $server_addr;&lt;br /&gt;
 fastcgi_param SERVER_PORT             $server_port;&lt;br /&gt;
 fastcgi_param SERVER_NAME             $server_name;&lt;br /&gt;
 &lt;br /&gt;
 fastcgi_param HTTPS                   $https;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; PHP only, required if PHP was built with --enable-force-cgi-redirect&lt;br /&gt;
 fastcgi_param REDIRECT_STATUS         200;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;###&amp;lt;/nowiki&amp;gt; &amp;lt;/original /etc/nginx/fastcgi_params&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 fastcgi_pass   unix:/opt/rt4/var/fastcgi.sock;&lt;br /&gt;
 &lt;br /&gt;
 fastcgi_param   SCRIPT_NAME &amp;quot;/rt&amp;quot;;&lt;br /&gt;
 fastcgi_param   PATH_INFO $uri;&lt;br /&gt;
 &lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 rt-server.fcgi was called like this:&lt;br /&gt;
 /opt/rt4/sbin/rt-server.fcgi --pidfile=/opt/rt4/var/fastcgi.pid --socket=/opt/rt4/var/fastcgi.sock 2&amp;gt; /dev/null&lt;/div&gt;</summary>
		<author><name>83.236.138.178</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1272&amp;oldid=prev</id>
		<title>89.247.181.2: added precision</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1272&amp;oldid=prev"/>
		<updated>2012-12-19T20:32:32Z</updated>

		<summary type="html">&lt;p&gt;added precision&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;amp;diff=1272&amp;amp;oldid=1271&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>89.247.181.2</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1271&amp;oldid=prev</id>
		<title>89.247.181.2: corrected shell script</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1271&amp;oldid=prev"/>
		<updated>2012-12-19T20:16:13Z</updated>

		<summary type="html">&lt;p&gt;corrected shell script&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;amp;diff=1271&amp;amp;oldid=1270&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>89.247.181.2</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1270&amp;oldid=prev</id>
		<title>89.247.181.2: Added info</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1270&amp;oldid=prev"/>
		<updated>2012-12-19T19:59:03Z</updated>

		<summary type="html">&lt;p&gt;Added info&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;amp;diff=1270&amp;amp;oldid=1269&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>89.247.181.2</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1269&amp;oldid=prev</id>
		<title>89.247.181.2: Corrected info</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1269&amp;oldid=prev"/>
		<updated>2012-12-19T19:57:14Z</updated>

		<summary type="html">&lt;p&gt;Corrected info&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;amp;diff=1269&amp;amp;oldid=1268&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>89.247.181.2</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1268&amp;oldid=prev</id>
		<title>89.247.181.2: Got rid of the diff by changing the conf to the default values.</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1268&amp;oldid=prev"/>
		<updated>2012-12-19T19:49:06Z</updated>

		<summary type="html">&lt;p&gt;Got rid of the diff by changing the conf to the default values.&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;amp;diff=1268&amp;amp;oldid=1267&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>89.247.181.2</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1267&amp;oldid=prev</id>
		<title>89.247.181.2: Added a diff to correct the fastcgi_server file.</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;diff=1267&amp;oldid=prev"/>
		<updated>2012-12-19T19:33:19Z</updated>

		<summary type="html">&lt;p&gt;Added a diff to correct the fastcgi_server file.&lt;/p&gt;
&lt;a href=&quot;https://rt-wiki.bestpractical.com/index.php?title=FastCGIConfiguration&amp;amp;diff=1267&amp;amp;oldid=1266&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>89.247.181.2</name></author>
	</entry>
</feed>