https://rt-wiki.bestpractical.com/index.php?title=MacOSXServerLeopard&feed=atom&action=historyMacOSXServerLeopard - Revision history2024-03-29T14:17:28ZRevision history for this page on the wikiMediaWiki 1.37.2https://rt-wiki.bestpractical.com/index.php?title=MacOSXServerLeopard&diff=1911&oldid=prevAdmin: 3 revisions imported2016-04-06T20:14:20Z<p>3 revisions imported</p>
<p><b>New page</b></p><div>{{OutdatedInstallGuide}}<br />
<br />
== Installation on Mac OS X 10.5 Server ==<br />
<br />
These instructions might not be accurate, as I'm writing from memory.<br />
<br />
Please update if you find any errors.<br />
<br />
=== Install Developer Tools ===<br />
<br />
Server doesn't have developer tools installed by default. You'll need that to update CPAN in the steps below; this requires `make`.<br />
<br />
=== Get MySQL client libraries and headers ===<br />
<br />
Either build them yourself or copy them over from another system. You can also install the [[MySQL]] package from http://www.mysql.com, but make sure to use only the client libraries from it. Leopard Server comes with a sufficiently recent [[MySQL]] for RT.<br />
<br />
=== Start and configure CPAN ===<br />
<br />
sudo cpan<br />
...<br />
exit<br />
<br />
=== Update CPAN to the latest version ===<br />
<br />
sudo -s<br />
export HOME=/private/var/root<br />
<br />
This is done to avoid breaking some tests that check the user's home directory. <code>sudo</code> has the bad habit of not picking up the correct <code>$HOME</code>.<br />
<br />
cpan<br />
install Bundle::CPAN<br />
...<br />
reload cpan<br />
<br />
=== Manually install required packages that break on OS X ===<br />
<br />
look DBD::mysql<br />
perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config<br />
make<br />
exit<br />
force test DBD::mysql<br />
install DBD::mysql<br />
look HTML::Mason<br />
<br />
edit Build.PL and comment the require Apache::Request line out<br />
<br />
perl Build.PL<br />
make<br />
exit<br />
force test HTML::Mason<br />
install HTML::Mason<br />
<br />
=== Get RT ===<br />
<br />
Download the latest tgz from bestpractical.com, unpack and switch to the rt-... directory.<br />
<br />
./configure<br />
make testdeps<br />
make fixdeps<br />
<br />
Wait a while, accept all dependencies.<br />
<br />
make testdeps<br />
<br />
If everything went fine, there should be no missing packages now. If there are, fix them with the cpan look method above and describe here what you did.<br />
<br />
=== Install RT ===<br />
<br />
sudo make install<br />
<br />
Edit /opt/rt3/etc/RT_SiteConfig.pm to suit your needs<br />
<br />
sudo make initialize-database<br />
<br />
=== Configure MySQL ===<br />
<br />
It's possible that RT will refuse to connect to [[MySQL]] via its socket (<code>/var/mysql/mysql.sock</code>). Enable TCP access to [[MySQL]] from Server Admin in that case, and make sure to disallow connections from outside or set up secure passwords for all [[MySQL]] grants.<br />
<br />
=== Configure Apache ===<br />
<br />
Using the Apache configurator of Server Admin, create a new VHost for your RT.<br />
<br />
Edit <code>/etc/apache2/sites/&lt;####_ip_port_vhostname&gt;.conf</code> and add the following:<br />
<br />
PerlRequire "/opt/rt3/bin/webmux.pl"<br />
&lt;Location "/NoAuth/images"&gt;<br />
SetHandler default<br />
&lt;/Location&gt;<br />
&lt;Location "/"&gt;<br />
SetHandler perl-script<br />
PerlResponseHandler RT::Mason<br />
&lt;/Location&gt;<br />
<br />
Using Server Admin, enable mod_perl by adding<br />
<br />
perl_module libexec/apache2/mod_perl.so<br />
<br />
to the list of modules.<br />
<br />
Restart Apache.<br />
<br />
'''Done!'''</div>Admin