/usr/share/doc/rt4-doc-html/extensions.html is in rt4-doc-html 4.4.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | <ul id="index">
<li><a href="#Introduction">Introduction</a></li>
<li><a href="#Finding-extensions">Finding extensions</a></li>
<li><a href="#Installing-extensions">Installing extensions</a></li>
</ul>
<h1 id="Introduction"><a href="#___top">Introduction</a></h1>
<p>RT has a lot of core features, but sometimes you have a problem to solve that's beyond the scope of just configuration. The standard way to add features to RT is with an extension, or plugin -- RT uses the terms interchangably.</p>
<h1 id="Finding-extensions"><a href="#___top">Finding extensions</a></h1>
<p>Most of the extensions written by Best Practical (and quite a few contributed by the community) are available from CPAN; a <a href="https://metacpan.org/search?q=RT::Extension::">search for RT::Extension</a> will turn up most of them. The Best Practical website also maintains a list, at <a href="http://www.bestpractical.com/rt/extensions.html">http://www.bestpractical.com/rt/extensions.html</a></p>
<h1 id="Installing-extensions"><a href="#___top">Installing extensions</a></h1>
<p>RT extensions should be installed by downloading the <code>.tar.gz</code> file for the extensions, extracting it (with <code>tar xzf filename.tar.gz</code>), and following the instructions in its included <i><a href="README.html">README</a></i>.</p>
<p>The instructions under <code>INSTALLING</code> in the <i><a href="README.html">README</a></i> always take precedence over those found here. In general, however, the process is as follows:</p>
<ol>
<li><p><b>Run <code>perl Makefile.PL</code></b> to check for dependencies, and minimum versions of RT. If your RT is in an unusual location (not <code>/opt/rt4/</code>), you may need to set the <code>RTHOME</code> environment variable to the root of your RT location.</p>
</li>
<li><p><b>Run <code>make</code></b> to prepare the package for installation.</p>
</li>
<li><p><b>Run <code>make install</code></b>; you may need to run this step as <code>root</code>, or at least a user that has permission to install into RT's directories.</p>
</li>
<li><p>If the extension contains database changes or new queues, scrips, templates, or the like, you will need to <b>run <code>make initdb</code></b> to install them. Not all extensions have database changes, and most of them only need this step run when they are first installed, and not on later updates. Refer to the <code>INSTALLING</code> section of the module's documentation.</p>
</li>
<li><p><b>Add the plugin to RT's configuration.</b> By default, newly installed plugins are not enabled. On RT 4.2 and later, each plugin should be enabled by the <code>Plugin()</code> command:</p>
<pre><code> Plugin( 'RT::Extension::Example' );
Plugin( 'RT::Extension::Sample' );</code></pre>
<p>On RT 4.0, enabling them instead requires adding them to the <code>@Plugins</code> configuration:</p>
<pre><code> Set( @Plugins, 'RT::Extension::Example', 'RT::Extension::Sample' );</code></pre>
</li>
<li><p><b>Configure any additional settings</b> that the extension requires. Many options that must be set before the plugin can be used. Read the documentation carefully.</p>
</li>
<li><p>Next, <b>clear the cache</b>. RT caches the files it serves, and installing a plugin requires clearing this cache to ensure that the changes are served. This is done by removing files in the <i>/opt/rt4/var/mason_data/obj</i> directory:</p>
<pre><code> rm -rf /opt/rt4/var/mason_data/obj</code></pre>
<p>This step may not be necessary if the extension does not affect RT's display.</p>
</li>
<li><p>Finally, <b>restart your webserver</b>. The steps for this will vary from webserver to webserver.</p>
</li>
</ol>
<p>Again, the above are generalizations. The <code>README</code> shipped with the extension always takes precedence over the above steps.</p>
<p>We do not suggest using the command-line <code>cpan</code> or <code>cpanm</code> client to install RT extensions, despite them being available from CPAN. Those command-line clients are not aware of steps 4-8 listed above, and may result in an incomplete installation.</p>
<a href="./">← Back to index</a>
|