<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://secure.freeside.biz/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Css</id>
		<title>Freeside - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://secure.freeside.biz/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Css"/>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php/Special:Contributions/Css"/>
		<updated>2026-04-24T11:19:27Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside_talk:2.1:Documentation:Installation:FreeBSD&amp;diff=6229</id>
		<title>Freeside talk:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside_talk:2.1:Documentation:Installation:FreeBSD&amp;diff=6229"/>
				<updated>2011-01-09T05:02:42Z</updated>
		
		<summary type="html">&lt;p&gt;Css: New page: =Talk Page for FBSD 8.1 Install doc=  Talk away...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Talk Page for FBSD 8.1 Install doc=&lt;br /&gt;
&lt;br /&gt;
Talk away...&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6228</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6228"/>
				<updated>2011-01-09T05:02:00Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Summary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Intro==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
My test system for this was a jail (specifically an ezjail jail on zfs), so if you're wondering &amp;quot;Can I run PostgreSQL and Freeside in a jail?&amp;quot;, the answer is &amp;quot;Yes!&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''NOTE - this is new, and it's based on quick notes I took while doing an install - please give me feedback on this or edit to clarify anything I've oversimplified or skipped'''&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these which should also pull in their own dependencies (I have a full list, but do not have upload perms on the wiki to put it here):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is a huge list, I have it in a file, but no perms to upload it to the wiki)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is mostly copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide] with equivalent FreeBSD commands where necessary.  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Create  the freeside postgres user and give full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: supersecret&lt;br /&gt;
Enter it again: supersecret&lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Freeside Makefile (ie: /usr/local/src/freeside-2.1.1/) &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# gmake perl-modules&lt;br /&gt;
# gmake install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I ran into no issues here - note that I'm using &amp;quot;gmake&amp;quot;.  BSD &amp;quot;make&amp;quot; may also work, but I'm more comfortable using gmake since that's what Ivan would be using.&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
&lt;br /&gt;
*Ensure your Freeside Makefile has any configurable paths set to BSD-ish settings.  The file is heavily commented, but I'm listing them here for completeness:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#changable now (some things which should go to the others still go to CONF)&lt;br /&gt;
FREESIDE_CONF = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOG = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOCK = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_CACHE = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_EXPORT = /usr/local/etc/freeside&lt;br /&gt;
#mod_perl v2 proper and prereleases 1.999_22 and after&lt;br /&gt;
APACHE_VERSION = 2&lt;br /&gt;
FREESIDE_DOCUMENT_ROOT = /usr/local/www/freeside&lt;br /&gt;
INIT_FILE = /usr/local/etc/rc.d/freeside&lt;br /&gt;
HTTPD_RESTART = /usr/local/etc/rc.d/apache22 stop || true; sleep 10; /usr/local/etc/rc.d/apache22 start&lt;br /&gt;
APACHE_CONF = /usr/local/etc/apache22/Includes&lt;br /&gt;
INSTALLGROUP = wheel&lt;br /&gt;
RT_ENABLED = 1&lt;br /&gt;
RT_DOMAIN = example.com&lt;br /&gt;
RT_TIMEZONE = US/Eastern&lt;br /&gt;
FREESIDE_URL = &amp;quot;http://bill.example.com/freeside/&amp;quot;&lt;br /&gt;
# not sure if it's safe to change this, so I didn't touch it&lt;br /&gt;
RT_PATH = /opt/rt3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create the necessary configuration files and install them&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: I had a failure here which involved the directories in /usr/local/etc/freeside not being created correctly due to &amp;quot;echo&amp;quot; being called with an odd option.  I cannot find in my notes what I changed, but it was quite obvious.  If you find any references to &amp;quot;echo -e&amp;quot;, remove the &amp;quot;-e&amp;quot;.  I see the bash builtin has &amp;quot;-e&amp;quot;, but /bin/echo does not.&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using typeset (ie: you want pdf invoices or PS printing) invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
&lt;br /&gt;
This assumes you are running apache from ports with the stock port config files AND you are ONLY running FS here and won't have any other virt hosts.  You probably don't want to be mixing other services on your billing host (or jail). &lt;br /&gt;
&lt;br /&gt;
* Configuration in httpd.conf&lt;br /&gt;
** Remove any modules you don't want (I killed speling, userdir, dav stuff, any proxy-related things, and other stuff I know I don't need)&lt;br /&gt;
** Enable mod_perl module in httpd.conf (LoadModule perl_module libexec/apache22/mod_perl.so in your Module section&lt;br /&gt;
** Run as the freeside user (User freeside Group freeside)&lt;br /&gt;
** Set your ServerAdmin and other basics as you'd like them&lt;br /&gt;
** Set DocumentRoot and your main Directory directives to &amp;quot;/usr/local/www/freeside&amp;quot; &lt;br /&gt;
** Ensure that the line that includes everything in /usr/local/etc/apache22/Includes is intact - this is where FS will dump it's apache configs&lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Ensure you have a populated /usr/local/www/freeside directory&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Ensure you have a populated /usr/local/etc/apache22/Includes directory (freeside-base2.conf, freeside-rt.conf)&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE - If you have any failures here, it is very likely that you're missing a perl module.  Look carefully at the command output for missing modules.&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.  This is in the /usr/local/etc/rc.d/freeside script.  The script is kind of a mess.  For now, just comment out everything but the queued startup.&lt;br /&gt;
&lt;br /&gt;
== RT Installation/Config ==&lt;br /&gt;
&lt;br /&gt;
I haven't changed this much.  I had no issues with this step, but have not yet played around with RT.  You may find more missing perl modules here...&lt;br /&gt;
&lt;br /&gt;
* Create a new Unix group called 'rt'&lt;br /&gt;
&amp;lt;pre&amp;gt;pw groupadd rt2 -g 2002&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure RT (in /usr/local/src/freeside-2.1.1&lt;br /&gt;
&amp;lt;pre&amp;gt;# make configure-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If your database is not on the local machine you will need to edit /opt/rt3/etc/RT_SiteConfig.pm and set the DatabaseHost value&lt;br /&gt;
* I believe this installs the files and drops the RT config in /usr/local/etc/apache22/Includes/&lt;br /&gt;
&amp;lt;pre&amp;gt;# make create-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* ''Authentication errors?''&lt;br /&gt;
** ''Edit &amp;lt;code&amp;gt;pg_hba.conf&amp;lt;/code&amp;gt;, change &amp;quot;&amp;lt;code&amp;gt;ident sameuser&amp;lt;/code&amp;gt;&amp;quot; auth to &amp;quot;&amp;lt;code&amp;gt;trust&amp;lt;/code&amp;gt;&amp;quot; for the line starting with &amp;quot;&amp;lt;code&amp;gt;local all all&amp;lt;/code&amp;gt;&amp;quot;'' &lt;br /&gt;
** ''Restart Pg''&lt;br /&gt;
** ''Revert the change back and restart Pg after this installation step''&lt;br /&gt;
*Install RT (configs? data? not sure)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;make install-rt&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Follow the tail end of the RT install docs:  [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]]&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6227</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6227"/>
				<updated>2011-01-09T05:00:44Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Summary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
My test system for this was a jail (specifically an ezjail jail on zfs), so if you're wondering &amp;quot;Can I run PostgreSQL and Freeside in a jail?&amp;quot;, the answer is &amp;quot;Yes!&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these which should also pull in their own dependencies (I have a full list, but do not have upload perms on the wiki to put it here):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is a huge list, I have it in a file, but no perms to upload it to the wiki)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is mostly copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide] with equivalent FreeBSD commands where necessary.  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Create  the freeside postgres user and give full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: supersecret&lt;br /&gt;
Enter it again: supersecret&lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Freeside Makefile (ie: /usr/local/src/freeside-2.1.1/) &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# gmake perl-modules&lt;br /&gt;
# gmake install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I ran into no issues here - note that I'm using &amp;quot;gmake&amp;quot;.  BSD &amp;quot;make&amp;quot; may also work, but I'm more comfortable using gmake since that's what Ivan would be using.&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
&lt;br /&gt;
*Ensure your Freeside Makefile has any configurable paths set to BSD-ish settings.  The file is heavily commented, but I'm listing them here for completeness:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#changable now (some things which should go to the others still go to CONF)&lt;br /&gt;
FREESIDE_CONF = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOG = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOCK = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_CACHE = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_EXPORT = /usr/local/etc/freeside&lt;br /&gt;
#mod_perl v2 proper and prereleases 1.999_22 and after&lt;br /&gt;
APACHE_VERSION = 2&lt;br /&gt;
FREESIDE_DOCUMENT_ROOT = /usr/local/www/freeside&lt;br /&gt;
INIT_FILE = /usr/local/etc/rc.d/freeside&lt;br /&gt;
HTTPD_RESTART = /usr/local/etc/rc.d/apache22 stop || true; sleep 10; /usr/local/etc/rc.d/apache22 start&lt;br /&gt;
APACHE_CONF = /usr/local/etc/apache22/Includes&lt;br /&gt;
INSTALLGROUP = wheel&lt;br /&gt;
RT_ENABLED = 1&lt;br /&gt;
RT_DOMAIN = example.com&lt;br /&gt;
RT_TIMEZONE = US/Eastern&lt;br /&gt;
FREESIDE_URL = &amp;quot;http://bill.example.com/freeside/&amp;quot;&lt;br /&gt;
# not sure if it's safe to change this, so I didn't touch it&lt;br /&gt;
RT_PATH = /opt/rt3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create the necessary configuration files and install them&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: I had a failure here which involved the directories in /usr/local/etc/freeside not being created correctly due to &amp;quot;echo&amp;quot; being called with an odd option.  I cannot find in my notes what I changed, but it was quite obvious.  If you find any references to &amp;quot;echo -e&amp;quot;, remove the &amp;quot;-e&amp;quot;.  I see the bash builtin has &amp;quot;-e&amp;quot;, but /bin/echo does not.&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using typeset (ie: you want pdf invoices or PS printing) invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
&lt;br /&gt;
This assumes you are running apache from ports with the stock port config files AND you are ONLY running FS here and won't have any other virt hosts.  You probably don't want to be mixing other services on your billing host (or jail). &lt;br /&gt;
&lt;br /&gt;
* Configuration in httpd.conf&lt;br /&gt;
** Remove any modules you don't want (I killed speling, userdir, dav stuff, any proxy-related things, and other stuff I know I don't need)&lt;br /&gt;
** Enable mod_perl module in httpd.conf (LoadModule perl_module libexec/apache22/mod_perl.so in your Module section&lt;br /&gt;
** Run as the freeside user (User freeside Group freeside)&lt;br /&gt;
** Set your ServerAdmin and other basics as you'd like them&lt;br /&gt;
** Set DocumentRoot and your main Directory directives to &amp;quot;/usr/local/www/freeside&amp;quot; &lt;br /&gt;
** Ensure that the line that includes everything in /usr/local/etc/apache22/Includes is intact - this is where FS will dump it's apache configs&lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Ensure you have a populated /usr/local/www/freeside directory&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Ensure you have a populated /usr/local/etc/apache22/Includes directory (freeside-base2.conf, freeside-rt.conf)&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE - If you have any failures here, it is very likely that you're missing a perl module.  Look carefully at the command output for missing modules.&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.  This is in the /usr/local/etc/rc.d/freeside script.  The script is kind of a mess.  For now, just comment out everything but the queued startup.&lt;br /&gt;
&lt;br /&gt;
== RT Installation/Config ==&lt;br /&gt;
&lt;br /&gt;
I haven't changed this much.  I had no issues with this step, but have not yet played around with RT.  You may find more missing perl modules here...&lt;br /&gt;
&lt;br /&gt;
* Create a new Unix group called 'rt'&lt;br /&gt;
&amp;lt;pre&amp;gt;pw groupadd rt2 -g 2002&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure RT (in /usr/local/src/freeside-2.1.1&lt;br /&gt;
&amp;lt;pre&amp;gt;# make configure-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If your database is not on the local machine you will need to edit /opt/rt3/etc/RT_SiteConfig.pm and set the DatabaseHost value&lt;br /&gt;
* I believe this installs the files and drops the RT config in /usr/local/etc/apache22/Includes/&lt;br /&gt;
&amp;lt;pre&amp;gt;# make create-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* ''Authentication errors?''&lt;br /&gt;
** ''Edit &amp;lt;code&amp;gt;pg_hba.conf&amp;lt;/code&amp;gt;, change &amp;quot;&amp;lt;code&amp;gt;ident sameuser&amp;lt;/code&amp;gt;&amp;quot; auth to &amp;quot;&amp;lt;code&amp;gt;trust&amp;lt;/code&amp;gt;&amp;quot; for the line starting with &amp;quot;&amp;lt;code&amp;gt;local all all&amp;lt;/code&amp;gt;&amp;quot;'' &lt;br /&gt;
** ''Restart Pg''&lt;br /&gt;
** ''Revert the change back and restart Pg after this installation step''&lt;br /&gt;
*Install RT (configs? data? not sure)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;make install-rt&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Follow the tail end of the RT install docs:  [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]]&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation&amp;diff=6226</id>
		<title>Freeside:2.1:Documentation</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation&amp;diff=6226"/>
				<updated>2011-01-09T04:58:30Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Backend Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Note =&lt;br /&gt;
&lt;br /&gt;
Some documentation links point to the 1.9 documentation until things are fully moved over.  The information should still be applicable.&lt;br /&gt;
&lt;br /&gt;
= Installation and upgrades =&lt;br /&gt;
&lt;br /&gt;
== Backend Installation ==&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:2.1:Documentation:Installation|New Installation]]&lt;br /&gt;
* [[Freeside:2.1:Documentation:RT Installation|Integrated RT Installation]]&lt;br /&gt;
* OS-specific installation guides (source)&lt;br /&gt;
** [[Freeside:2.1:Documentation:InstallingOnDebian5|Debian 5.0 &amp;quot;lenny&amp;quot;]]&lt;br /&gt;
** [[Freeside:2.1:Documentation:Installation:Ubuntu|Ubuntu 10.4 LTS]]&lt;br /&gt;
**[[Freeside:2.1:Documentation:Installation:FreeBSD|FreeBSD 8.1]] - Feedback please!&lt;br /&gt;
* OS-specific installation guides (packages)&lt;br /&gt;
** (no 2.1 packages yet) &amp;lt;strike&amp;gt;[[Freeside:1.9:Documentation:InstallingUsingAPT|Debian packages]]&amp;lt;/strike&amp;gt;&lt;br /&gt;
** (no 2.1 packages yet) &amp;lt;strike&amp;gt;[[Freeside:1.9:Documentation:InstallingUsingRPM|CentOS/RHEL RPM packages]]&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Signup and Self-service installation ==&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:2.1:Documentation:Self-Service Installation|Signup/Self-service Installation]]&lt;br /&gt;
&lt;br /&gt;
== Distributor guides ==&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:Documentation:CreatingRPMRepo|Creating your own repository with Freeside RPMs]]&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:Documentation:MirroringRPMRepo|Creating and using a mirror of the Freeside Internet Services RPM repositories]]&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:Documentation:RPMBuildSystem|Documentation on the RPM build system]]&lt;br /&gt;
&lt;br /&gt;
== Upgrading ==&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:2.1:Documentation:Upgrading|Upgrading from 1.9.X to 2.1.x]]&lt;br /&gt;
* [[Freeside:2.1.1:Documentation:Upgrading|Upgrading from 2.1.0 to 2.1.1]]&lt;br /&gt;
* [[Freeside:2.1.2:Documentation:Upgrading|Upgrading from 2.1.1 to 2.1.2]]&lt;br /&gt;
&lt;br /&gt;
= User's Guide =&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:2.1:Documentation:User|User's Guide]] (help wanted)&lt;br /&gt;
* [http://www.sisd.com/~ivan/freeside-slides Training presentation slides]&lt;br /&gt;
&lt;br /&gt;
= Administrator's Guide =&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:2.1:Documentation:Administration|Administrator's Guide]]&lt;br /&gt;
* [[Freeside:Documentation:DisasterRecovery|Disaster Recovery]]&lt;br /&gt;
* [[:Category:Freeside:1.9:Documentation:Template|Templates]] used and their fill in variables.&lt;br /&gt;
&lt;br /&gt;
= Developer's Guide =&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:2.1:Documentation:Developer|Developer's Guide]]&lt;br /&gt;
&lt;br /&gt;
= Accounting Guide =&lt;br /&gt;
&lt;br /&gt;
*[[Freeside:Documentation:Accounting|Accounting Guide]]&lt;br /&gt;
&lt;br /&gt;
= Misc =&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:Documentation:FAQ|Frequently Asked Questions]]&lt;br /&gt;
* [[3rd_party_software|Third-party software]]&lt;br /&gt;
* [[Freeside:2.1:Documentation:Administration:VoIP:Timed_Rates|New feature: Timed Rates]]&lt;br /&gt;
* [[Freeside:2.1:Documentation:Administration:RT_Workflow|RT workflow features]]&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:1.9:Documentation|Version 1.9 documentation]]&lt;br /&gt;
&lt;br /&gt;
= Changelog =&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:2.1:Changelog|2.1 Changelog]]&lt;br /&gt;
* [[Freeside:2.1.1:Changelog|2.1.1 Changelog]]&lt;br /&gt;
* [[Freeside:2.1.2:Changelog|2.1.2 Changelog]]&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6225</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6225"/>
				<updated>2011-01-09T04:56:36Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Install a ton of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these which should also pull in their own dependencies (I have a full list, but do not have upload perms on the wiki to put it here):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is a huge list, I have it in a file, but no perms to upload it to the wiki)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is mostly copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide] with equivalent FreeBSD commands where necessary.  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Create  the freeside postgres user and give full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: supersecret&lt;br /&gt;
Enter it again: supersecret&lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Freeside Makefile (ie: /usr/local/src/freeside-2.1.1/) &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# gmake perl-modules&lt;br /&gt;
# gmake install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I ran into no issues here - note that I'm using &amp;quot;gmake&amp;quot;.  BSD &amp;quot;make&amp;quot; may also work, but I'm more comfortable using gmake since that's what Ivan would be using.&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
&lt;br /&gt;
*Ensure your Freeside Makefile has any configurable paths set to BSD-ish settings.  The file is heavily commented, but I'm listing them here for completeness:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#changable now (some things which should go to the others still go to CONF)&lt;br /&gt;
FREESIDE_CONF = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOG = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOCK = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_CACHE = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_EXPORT = /usr/local/etc/freeside&lt;br /&gt;
#mod_perl v2 proper and prereleases 1.999_22 and after&lt;br /&gt;
APACHE_VERSION = 2&lt;br /&gt;
FREESIDE_DOCUMENT_ROOT = /usr/local/www/freeside&lt;br /&gt;
INIT_FILE = /usr/local/etc/rc.d/freeside&lt;br /&gt;
HTTPD_RESTART = /usr/local/etc/rc.d/apache22 stop || true; sleep 10; /usr/local/etc/rc.d/apache22 start&lt;br /&gt;
APACHE_CONF = /usr/local/etc/apache22/Includes&lt;br /&gt;
INSTALLGROUP = wheel&lt;br /&gt;
RT_ENABLED = 1&lt;br /&gt;
RT_DOMAIN = example.com&lt;br /&gt;
RT_TIMEZONE = US/Eastern&lt;br /&gt;
FREESIDE_URL = &amp;quot;http://bill.example.com/freeside/&amp;quot;&lt;br /&gt;
# not sure if it's safe to change this, so I didn't touch it&lt;br /&gt;
RT_PATH = /opt/rt3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create the necessary configuration files and install them&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: I had a failure here which involved the directories in /usr/local/etc/freeside not being created correctly due to &amp;quot;echo&amp;quot; being called with an odd option.  I cannot find in my notes what I changed, but it was quite obvious.  If you find any references to &amp;quot;echo -e&amp;quot;, remove the &amp;quot;-e&amp;quot;.  I see the bash builtin has &amp;quot;-e&amp;quot;, but /bin/echo does not.&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using typeset (ie: you want pdf invoices or PS printing) invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
&lt;br /&gt;
This assumes you are running apache from ports with the stock port config files AND you are ONLY running FS here and won't have any other virt hosts.  You probably don't want to be mixing other services on your billing host (or jail). &lt;br /&gt;
&lt;br /&gt;
* Configuration in httpd.conf&lt;br /&gt;
** Remove any modules you don't want (I killed speling, userdir, dav stuff, any proxy-related things, and other stuff I know I don't need)&lt;br /&gt;
** Enable mod_perl module in httpd.conf (LoadModule perl_module libexec/apache22/mod_perl.so in your Module section&lt;br /&gt;
** Run as the freeside user (User freeside Group freeside)&lt;br /&gt;
** Set your ServerAdmin and other basics as you'd like them&lt;br /&gt;
** Set DocumentRoot and your main Directory directives to &amp;quot;/usr/local/www/freeside&amp;quot; &lt;br /&gt;
** Ensure that the line that includes everything in /usr/local/etc/apache22/Includes is intact - this is where FS will dump it's apache configs&lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Ensure you have a populated /usr/local/www/freeside directory&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Ensure you have a populated /usr/local/etc/apache22/Includes directory (freeside-base2.conf, freeside-rt.conf)&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE - If you have any failures here, it is very likely that you're missing a perl module.  Look carefully at the command output for missing modules.&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.  This is in the /usr/local/etc/rc.d/freeside script.  The script is kind of a mess.  For now, just comment out everything but the queued startup.&lt;br /&gt;
&lt;br /&gt;
== RT Installation/Config ==&lt;br /&gt;
&lt;br /&gt;
I haven't changed this much.  I had no issues with this step, but have not yet played around with RT.  You may find more missing perl modules here...&lt;br /&gt;
&lt;br /&gt;
* Create a new Unix group called 'rt'&lt;br /&gt;
&amp;lt;pre&amp;gt;pw groupadd rt2 -g 2002&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure RT (in /usr/local/src/freeside-2.1.1&lt;br /&gt;
&amp;lt;pre&amp;gt;# make configure-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If your database is not on the local machine you will need to edit /opt/rt3/etc/RT_SiteConfig.pm and set the DatabaseHost value&lt;br /&gt;
* I believe this installs the files and drops the RT config in /usr/local/etc/apache22/Includes/&lt;br /&gt;
&amp;lt;pre&amp;gt;# make create-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* ''Authentication errors?''&lt;br /&gt;
** ''Edit &amp;lt;code&amp;gt;pg_hba.conf&amp;lt;/code&amp;gt;, change &amp;quot;&amp;lt;code&amp;gt;ident sameuser&amp;lt;/code&amp;gt;&amp;quot; auth to &amp;quot;&amp;lt;code&amp;gt;trust&amp;lt;/code&amp;gt;&amp;quot; for the line starting with &amp;quot;&amp;lt;code&amp;gt;local all all&amp;lt;/code&amp;gt;&amp;quot;'' &lt;br /&gt;
** ''Restart Pg''&lt;br /&gt;
** ''Revert the change back and restart Pg after this installation step''&lt;br /&gt;
*Install RT (configs? data? not sure)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;make install-rt&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Follow the tail end of the RT install docs:  [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]]&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6224</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6224"/>
				<updated>2011-01-09T04:55:09Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* RT Installation/Config */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is mostly copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide] with equivalent FreeBSD commands where necessary.  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Create  the freeside postgres user and give full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: supersecret&lt;br /&gt;
Enter it again: supersecret&lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Freeside Makefile (ie: /usr/local/src/freeside-2.1.1/) &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# gmake perl-modules&lt;br /&gt;
# gmake install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I ran into no issues here - note that I'm using &amp;quot;gmake&amp;quot;.  BSD &amp;quot;make&amp;quot; may also work, but I'm more comfortable using gmake since that's what Ivan would be using.&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
&lt;br /&gt;
*Ensure your Freeside Makefile has any configurable paths set to BSD-ish settings.  The file is heavily commented, but I'm listing them here for completeness:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#changable now (some things which should go to the others still go to CONF)&lt;br /&gt;
FREESIDE_CONF = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOG = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOCK = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_CACHE = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_EXPORT = /usr/local/etc/freeside&lt;br /&gt;
#mod_perl v2 proper and prereleases 1.999_22 and after&lt;br /&gt;
APACHE_VERSION = 2&lt;br /&gt;
FREESIDE_DOCUMENT_ROOT = /usr/local/www/freeside&lt;br /&gt;
INIT_FILE = /usr/local/etc/rc.d/freeside&lt;br /&gt;
HTTPD_RESTART = /usr/local/etc/rc.d/apache22 stop || true; sleep 10; /usr/local/etc/rc.d/apache22 start&lt;br /&gt;
APACHE_CONF = /usr/local/etc/apache22/Includes&lt;br /&gt;
INSTALLGROUP = wheel&lt;br /&gt;
RT_ENABLED = 1&lt;br /&gt;
RT_DOMAIN = example.com&lt;br /&gt;
RT_TIMEZONE = US/Eastern&lt;br /&gt;
FREESIDE_URL = &amp;quot;http://bill.example.com/freeside/&amp;quot;&lt;br /&gt;
# not sure if it's safe to change this, so I didn't touch it&lt;br /&gt;
RT_PATH = /opt/rt3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create the necessary configuration files and install them&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: I had a failure here which involved the directories in /usr/local/etc/freeside not being created correctly due to &amp;quot;echo&amp;quot; being called with an odd option.  I cannot find in my notes what I changed, but it was quite obvious.  If you find any references to &amp;quot;echo -e&amp;quot;, remove the &amp;quot;-e&amp;quot;.  I see the bash builtin has &amp;quot;-e&amp;quot;, but /bin/echo does not.&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using typeset (ie: you want pdf invoices or PS printing) invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
&lt;br /&gt;
This assumes you are running apache from ports with the stock port config files AND you are ONLY running FS here and won't have any other virt hosts.  You probably don't want to be mixing other services on your billing host (or jail). &lt;br /&gt;
&lt;br /&gt;
* Configuration in httpd.conf&lt;br /&gt;
** Remove any modules you don't want (I killed speling, userdir, dav stuff, any proxy-related things, and other stuff I know I don't need)&lt;br /&gt;
** Enable mod_perl module in httpd.conf (LoadModule perl_module libexec/apache22/mod_perl.so in your Module section&lt;br /&gt;
** Run as the freeside user (User freeside Group freeside)&lt;br /&gt;
** Set your ServerAdmin and other basics as you'd like them&lt;br /&gt;
** Set DocumentRoot and your main Directory directives to &amp;quot;/usr/local/www/freeside&amp;quot; &lt;br /&gt;
** Ensure that the line that includes everything in /usr/local/etc/apache22/Includes is intact - this is where FS will dump it's apache configs&lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Ensure you have a populated /usr/local/www/freeside directory&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Ensure you have a populated /usr/local/etc/apache22/Includes directory (freeside-base2.conf, freeside-rt.conf)&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE - If you have any failures here, it is very likely that you're missing a perl module.  Look carefully at the command output for missing modules.&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.  This is in the /usr/local/etc/rc.d/freeside script.  The script is kind of a mess.  For now, just comment out everything but the queued startup.&lt;br /&gt;
&lt;br /&gt;
== RT Installation/Config ==&lt;br /&gt;
&lt;br /&gt;
I haven't changed this much.  I had no issues with this step, but have not yet played around with RT.  You may find more missing perl modules here...&lt;br /&gt;
&lt;br /&gt;
* Create a new Unix group called 'rt'&lt;br /&gt;
&amp;lt;pre&amp;gt;pw groupadd rt2 -g 2002&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure RT (in /usr/local/src/freeside-2.1.1&lt;br /&gt;
&amp;lt;pre&amp;gt;# make configure-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If your database is not on the local machine you will need to edit /opt/rt3/etc/RT_SiteConfig.pm and set the DatabaseHost value&lt;br /&gt;
* I believe this installs the files and drops the RT config in /usr/local/etc/apache22/Includes/&lt;br /&gt;
&amp;lt;pre&amp;gt;# make create-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* ''Authentication errors?''&lt;br /&gt;
** ''Edit &amp;lt;code&amp;gt;pg_hba.conf&amp;lt;/code&amp;gt;, change &amp;quot;&amp;lt;code&amp;gt;ident sameuser&amp;lt;/code&amp;gt;&amp;quot; auth to &amp;quot;&amp;lt;code&amp;gt;trust&amp;lt;/code&amp;gt;&amp;quot; for the line starting with &amp;quot;&amp;lt;code&amp;gt;local all all&amp;lt;/code&amp;gt;&amp;quot;'' &lt;br /&gt;
** ''Restart Pg''&lt;br /&gt;
** ''Revert the change back and restart Pg after this installation step''&lt;br /&gt;
*Install RT (configs? data? not sure)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;make install-rt&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Follow the tail end of the RT install docs:  [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]]&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6223</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6223"/>
				<updated>2011-01-09T04:53:27Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* RT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is mostly copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide] with equivalent FreeBSD commands where necessary.  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Create  the freeside postgres user and give full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: supersecret&lt;br /&gt;
Enter it again: supersecret&lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Freeside Makefile (ie: /usr/local/src/freeside-2.1.1/) &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# gmake perl-modules&lt;br /&gt;
# gmake install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I ran into no issues here - note that I'm using &amp;quot;gmake&amp;quot;.  BSD &amp;quot;make&amp;quot; may also work, but I'm more comfortable using gmake since that's what Ivan would be using.&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
&lt;br /&gt;
*Ensure your Freeside Makefile has any configurable paths set to BSD-ish settings.  The file is heavily commented, but I'm listing them here for completeness:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#changable now (some things which should go to the others still go to CONF)&lt;br /&gt;
FREESIDE_CONF = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOG = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOCK = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_CACHE = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_EXPORT = /usr/local/etc/freeside&lt;br /&gt;
#mod_perl v2 proper and prereleases 1.999_22 and after&lt;br /&gt;
APACHE_VERSION = 2&lt;br /&gt;
FREESIDE_DOCUMENT_ROOT = /usr/local/www/freeside&lt;br /&gt;
INIT_FILE = /usr/local/etc/rc.d/freeside&lt;br /&gt;
HTTPD_RESTART = /usr/local/etc/rc.d/apache22 stop || true; sleep 10; /usr/local/etc/rc.d/apache22 start&lt;br /&gt;
APACHE_CONF = /usr/local/etc/apache22/Includes&lt;br /&gt;
INSTALLGROUP = wheel&lt;br /&gt;
RT_ENABLED = 1&lt;br /&gt;
RT_DOMAIN = example.com&lt;br /&gt;
RT_TIMEZONE = US/Eastern&lt;br /&gt;
FREESIDE_URL = &amp;quot;http://bill.example.com/freeside/&amp;quot;&lt;br /&gt;
# not sure if it's safe to change this, so I didn't touch it&lt;br /&gt;
RT_PATH = /opt/rt3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create the necessary configuration files and install them&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: I had a failure here which involved the directories in /usr/local/etc/freeside not being created correctly due to &amp;quot;echo&amp;quot; being called with an odd option.  I cannot find in my notes what I changed, but it was quite obvious.  If you find any references to &amp;quot;echo -e&amp;quot;, remove the &amp;quot;-e&amp;quot;.  I see the bash builtin has &amp;quot;-e&amp;quot;, but /bin/echo does not.&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using typeset (ie: you want pdf invoices or PS printing) invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
&lt;br /&gt;
This assumes you are running apache from ports with the stock port config files AND you are ONLY running FS here and won't have any other virt hosts.  You probably don't want to be mixing other services on your billing host (or jail). &lt;br /&gt;
&lt;br /&gt;
* Configuration in httpd.conf&lt;br /&gt;
** Remove any modules you don't want (I killed speling, userdir, dav stuff, any proxy-related things, and other stuff I know I don't need)&lt;br /&gt;
** Enable mod_perl module in httpd.conf (LoadModule perl_module libexec/apache22/mod_perl.so in your Module section&lt;br /&gt;
** Run as the freeside user (User freeside Group freeside)&lt;br /&gt;
** Set your ServerAdmin and other basics as you'd like them&lt;br /&gt;
** Set DocumentRoot and your main Directory directives to &amp;quot;/usr/local/www/freeside&amp;quot; &lt;br /&gt;
** Ensure that the line that includes everything in /usr/local/etc/apache22/Includes is intact - this is where FS will dump it's apache configs&lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Ensure you have a populated /usr/local/www/freeside directory&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Ensure you have a populated /usr/local/etc/apache22/Includes directory (freeside-base2.conf, freeside-rt.conf)&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE - If you have any failures here, it is very likely that you're missing a perl module.  Look carefully at the command output for missing modules.&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.  This is in the /usr/local/etc/rc.d/freeside script.  The script is kind of a mess.  For now, just comment out everything but the queued startup.&lt;br /&gt;
&lt;br /&gt;
== RT Installation/Config ==&lt;br /&gt;
&lt;br /&gt;
* Create a new Unix group called 'rt'&lt;br /&gt;
&amp;lt;pre&amp;gt;pw groupadd rt2 -g 2002&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure RT (in /usr/local/src/freeside-2.1.1&lt;br /&gt;
&amp;lt;pre&amp;gt;# make configure-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If your database is not on the local machine you will need to edit /opt/rt3/etc/RT_SiteConfig.pm and set the DatabaseHost value&lt;br /&gt;
* I believe this installs the files and drops the RT config in /usr/local/etc/apache22/Includes/&lt;br /&gt;
&amp;lt;pre&amp;gt;# make create-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* ''Authentication errors?''&lt;br /&gt;
** ''Edit &amp;lt;code&amp;gt;pg_hba.conf&amp;lt;/code&amp;gt;, change &amp;quot;&amp;lt;code&amp;gt;ident sameuser&amp;lt;/code&amp;gt;&amp;quot; auth to &amp;quot;&amp;lt;code&amp;gt;trust&amp;lt;/code&amp;gt;&amp;quot; for the line starting with &amp;quot;&amp;lt;code&amp;gt;local all all&amp;lt;/code&amp;gt;&amp;quot;'' &lt;br /&gt;
** ''Restart Pg''&lt;br /&gt;
** ''Revert the change back and restart Pg after this installation step''&lt;br /&gt;
* &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;make install-rt&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Follow the tail end of the RT install docs:  [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]]&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6222</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6222"/>
				<updated>2011-01-09T04:52:06Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* RT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is mostly copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide] with equivalent FreeBSD commands where necessary.  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Create  the freeside postgres user and give full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: supersecret&lt;br /&gt;
Enter it again: supersecret&lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Freeside Makefile (ie: /usr/local/src/freeside-2.1.1/) &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# gmake perl-modules&lt;br /&gt;
# gmake install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I ran into no issues here - note that I'm using &amp;quot;gmake&amp;quot;.  BSD &amp;quot;make&amp;quot; may also work, but I'm more comfortable using gmake since that's what Ivan would be using.&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
&lt;br /&gt;
*Ensure your Freeside Makefile has any configurable paths set to BSD-ish settings.  The file is heavily commented, but I'm listing them here for completeness:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#changable now (some things which should go to the others still go to CONF)&lt;br /&gt;
FREESIDE_CONF = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOG = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOCK = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_CACHE = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_EXPORT = /usr/local/etc/freeside&lt;br /&gt;
#mod_perl v2 proper and prereleases 1.999_22 and after&lt;br /&gt;
APACHE_VERSION = 2&lt;br /&gt;
FREESIDE_DOCUMENT_ROOT = /usr/local/www/freeside&lt;br /&gt;
INIT_FILE = /usr/local/etc/rc.d/freeside&lt;br /&gt;
HTTPD_RESTART = /usr/local/etc/rc.d/apache22 stop || true; sleep 10; /usr/local/etc/rc.d/apache22 start&lt;br /&gt;
APACHE_CONF = /usr/local/etc/apache22/Includes&lt;br /&gt;
INSTALLGROUP = wheel&lt;br /&gt;
RT_ENABLED = 1&lt;br /&gt;
RT_DOMAIN = example.com&lt;br /&gt;
RT_TIMEZONE = US/Eastern&lt;br /&gt;
FREESIDE_URL = &amp;quot;http://bill.example.com/freeside/&amp;quot;&lt;br /&gt;
# not sure if it's safe to change this, so I didn't touch it&lt;br /&gt;
RT_PATH = /opt/rt3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create the necessary configuration files and install them&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: I had a failure here which involved the directories in /usr/local/etc/freeside not being created correctly due to &amp;quot;echo&amp;quot; being called with an odd option.  I cannot find in my notes what I changed, but it was quite obvious.  If you find any references to &amp;quot;echo -e&amp;quot;, remove the &amp;quot;-e&amp;quot;.  I see the bash builtin has &amp;quot;-e&amp;quot;, but /bin/echo does not.&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using typeset (ie: you want pdf invoices or PS printing) invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
&lt;br /&gt;
This assumes you are running apache from ports with the stock port config files AND you are ONLY running FS here and won't have any other virt hosts.  You probably don't want to be mixing other services on your billing host (or jail). &lt;br /&gt;
&lt;br /&gt;
* Configuration in httpd.conf&lt;br /&gt;
** Remove any modules you don't want (I killed speling, userdir, dav stuff, any proxy-related things, and other stuff I know I don't need)&lt;br /&gt;
** Enable mod_perl module in httpd.conf (LoadModule perl_module libexec/apache22/mod_perl.so in your Module section&lt;br /&gt;
** Run as the freeside user (User freeside Group freeside)&lt;br /&gt;
** Set your ServerAdmin and other basics as you'd like them&lt;br /&gt;
** Set DocumentRoot and your main Directory directives to &amp;quot;/usr/local/www/freeside&amp;quot; &lt;br /&gt;
** Ensure that the line that includes everything in /usr/local/etc/apache22/Includes is intact - this is where FS will dump it's apache configs&lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Ensure you have a populated /usr/local/www/freeside directory&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Ensure you have a populated /usr/local/etc/apache22/Includes directory (freeside-base2.conf, freeside-rt.conf)&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE - If you have any failures here, it is very likely that you're missing a perl module.  Look carefully at the command output for missing modules.&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.  This is in the /usr/local/etc/rc.d/freeside script.  The script is kind of a mess.  For now, just comment out everything but the queued startup.&lt;br /&gt;
&lt;br /&gt;
== RT ==&lt;br /&gt;
&lt;br /&gt;
* Create a new Unix group called 'rt'&lt;br /&gt;
&amp;lt;pre&amp;gt;pw groupadd rt2 -g 2002&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure RT (in /usr/local/src/freeside-2.1.1&lt;br /&gt;
&amp;lt;pre&amp;gt;# make configure-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If your database is not on the local machine you will need to edit /opt/rt3/etc/RT_SiteConfig.pm and set the DatabaseHost value&lt;br /&gt;
* I believe this installs the files and drops the RT config in /usr/local/etc/apache22/Includes/&lt;br /&gt;
&amp;lt;pre&amp;gt;# make create-rt&amp;lt;/pre&amp;gt;&lt;br /&gt;
* ''Authentication errors?''&lt;br /&gt;
** ''Edit &amp;lt;code&amp;gt;pg_hba.conf&amp;lt;/code&amp;gt;, change &amp;quot;&amp;lt;code&amp;gt;ident sameuser&amp;lt;/code&amp;gt;&amp;quot; auth to &amp;quot;&amp;lt;code&amp;gt;trust&amp;lt;/code&amp;gt;&amp;quot; for the line starting with &amp;quot;&amp;lt;code&amp;gt;local all all&amp;lt;/code&amp;gt;&amp;quot;'' &lt;br /&gt;
** ''Restart Pg''&lt;br /&gt;
** ''Revert the change back and restart Pg after this installation step''&lt;br /&gt;
* &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;make install-rt&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Either [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]], or delete the &amp;lt;code&amp;gt;ticket_system&amp;lt;/code&amp;gt; entry from your conf table.&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6221</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6221"/>
				<updated>2011-01-09T04:46:14Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Install Freeside */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is mostly copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide] with equivalent FreeBSD commands where necessary.  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Create  the freeside postgres user and give full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: supersecret&lt;br /&gt;
Enter it again: supersecret&lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Freeside Makefile (ie: /usr/local/src/freeside-2.1.1/) &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# gmake perl-modules&lt;br /&gt;
# gmake install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I ran into no issues here - note that I'm using &amp;quot;gmake&amp;quot;.  BSD &amp;quot;make&amp;quot; may also work, but I'm more comfortable using gmake since that's what Ivan would be using.&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
&lt;br /&gt;
*Ensure your Freeside Makefile has any configurable paths set to BSD-ish settings.  The file is heavily commented, but I'm listing them here for completeness:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#changable now (some things which should go to the others still go to CONF)&lt;br /&gt;
FREESIDE_CONF = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOG = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_LOCK = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_CACHE = /usr/local/etc/freeside&lt;br /&gt;
FREESIDE_EXPORT = /usr/local/etc/freeside&lt;br /&gt;
#mod_perl v2 proper and prereleases 1.999_22 and after&lt;br /&gt;
APACHE_VERSION = 2&lt;br /&gt;
FREESIDE_DOCUMENT_ROOT = /usr/local/www/freeside&lt;br /&gt;
INIT_FILE = /usr/local/etc/rc.d/freeside&lt;br /&gt;
HTTPD_RESTART = /usr/local/etc/rc.d/apache22 stop || true; sleep 10; /usr/local/etc/rc.d/apache22 start&lt;br /&gt;
APACHE_CONF = /usr/local/etc/apache22/Includes&lt;br /&gt;
INSTALLGROUP = wheel&lt;br /&gt;
RT_ENABLED = 1&lt;br /&gt;
RT_DOMAIN = example.com&lt;br /&gt;
RT_TIMEZONE = US/Eastern&lt;br /&gt;
FREESIDE_URL = &amp;quot;http://bill.example.com/freeside/&amp;quot;&lt;br /&gt;
# not sure if it's safe to change this, so I didn't touch it&lt;br /&gt;
RT_PATH = /opt/rt3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create the necessary configuration files and install them&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: I had a failure here which involved the directories in /usr/local/etc/freeside not being created correctly due to &amp;quot;echo&amp;quot; being called with an odd option.  I cannot find in my notes what I changed, but it was quite obvious.  If you find any references to &amp;quot;echo -e&amp;quot;, remove the &amp;quot;-e&amp;quot;.  I see the bash builtin has &amp;quot;-e&amp;quot;, but /bin/echo does not.&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using typeset (ie: you want pdf invoices or PS printing) invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
&lt;br /&gt;
This assumes you are running apache from ports with the stock port config files AND you are ONLY running FS here and won't have any other virt hosts.  You probably don't want to be mixing other services on your billing host (or jail). &lt;br /&gt;
&lt;br /&gt;
* Configuration in httpd.conf&lt;br /&gt;
** Remove any modules you don't want (I killed speling, userdir, dav stuff, any proxy-related things, and other stuff I know I don't need)&lt;br /&gt;
** Enable mod_perl module in httpd.conf (LoadModule perl_module libexec/apache22/mod_perl.so in your Module section&lt;br /&gt;
** Run as the freeside user (User freeside Group freeside)&lt;br /&gt;
** Set your ServerAdmin and other basics as you'd like them&lt;br /&gt;
** Set DocumentRoot and your main Directory directives to &amp;quot;/usr/local/www/freeside&amp;quot; &lt;br /&gt;
** Ensure that the line that includes everything in /usr/local/etc/apache22/Includes is intact - this is where FS will dump it's apache configs&lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Ensure you have a populated /usr/local/www/freeside directory&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# gmake install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Ensure you have a populated /usr/local/etc/apache22/Includes directory (freeside-base2.conf, freeside-rt.conf)&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE - If you have any failures here, it is very likely that you're missing a perl module.  Look carefully at the command output for missing modules.&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup.  This is in the /usr/local/etc/rc.d/freeside script.  The script is kind of a mess.  For now, just comment out everything but the queued startup.&lt;br /&gt;
&lt;br /&gt;
== RT ==&lt;br /&gt;
* Either [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]], or delete the &amp;lt;code&amp;gt;ticket_system&amp;lt;/code&amp;gt; entry from your conf table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su freeside&lt;br /&gt;
psql freeside&lt;br /&gt;
delete from conf where name = 'ticket_system';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6220</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6220"/>
				<updated>2011-01-09T03:59:39Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Basic Postgres Config */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# sysctl kern.ipc.shmall=262144&lt;br /&gt;
# sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide].  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Allow the freeside user full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: &lt;br /&gt;
Enter it again: &lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Makefile: &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# make perl-modules&lt;br /&gt;
# make install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
* Create the necessary configuration files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# make create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
* If you are using typeset invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# make install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
* Configuration&lt;br /&gt;
** Enable mod_perl&lt;br /&gt;
** Run as &amp;lt;code&amp;gt;User freeside&amp;lt;/code&amp;gt;&lt;br /&gt;
*** If you have other things being served by Apache on this machine (hopefully internal things), it is recommended to run a '''separate''' iteration of Apache as the freeside user.&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;FREESIDE_DOCUMENT_ROOT&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su&lt;br /&gt;
# make install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;APACHE_VERSION&amp;lt;/code&amp;gt; to '''1''' (mod_perl v1.XX), '''1.99''' (mod_perl v2 prereleases up to and including 1.999_21, shipped with Debian 3.1, CentOS/RHEL 4, others), or '''2''' (mod_perl v2 proper and prereleases 1.999_22 and later).&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;APACHE_CONF&amp;lt;/code&amp;gt; to the location of an Apache include directory (not a file).  (If your Apache doesn't have an existing include directory, create one and add a line such as &amp;quot;&amp;lt;code&amp;gt;Include /etc/apache/conf.d&amp;lt;/code&amp;gt;&amp;quot; to httpd.conf.)&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su&lt;br /&gt;
# make install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside UNIX user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup (Do this manually, or edit the top-level Makefile, replacing &amp;lt;code&amp;gt;INIT_FILE&amp;lt;/code&amp;gt; with the appropriate location on your system and &amp;lt;code&amp;gt;QUEUED_USER&amp;lt;/code&amp;gt; with the username of a Freeside user you created above, and run &amp;lt;code&amp;gt;make install-init&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=== RT ===&lt;br /&gt;
* Either [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]], or delete the &amp;lt;code&amp;gt;ticket_system&amp;lt;/code&amp;gt; entry from your conf table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su freeside&lt;br /&gt;
psql freeside&lt;br /&gt;
delete from conf where name = 'ticket_system';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Finalize ===&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6219</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6219"/>
				<updated>2011-01-09T03:58:47Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Install perl modules outside of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Postgres Config==&lt;br /&gt;
&lt;br /&gt;
*Enable in rc.conf, set some basic options, add apache while you're in there too (but don't start it yet)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# PORTS&lt;br /&gt;
apache22_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_enable=&amp;quot;YES&amp;quot;&lt;br /&gt;
postgresql_data=&amp;quot;/var/db/pgsql/data&amp;quot;&lt;br /&gt;
postgresql_initdb_flags=&amp;quot;--encoding=latin1 --lc-collate=C&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set some sysctl kernel values in /etc/sysctl.conf - I am not a Postgres expert, this should be high enough to get you going.  There are many fine docs on the [http://www.postgresql.org/ PostgreSQL website] to get you setup properly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# postgresql&lt;br /&gt;
kern.ipc.shmall=262144        # default 8192&lt;br /&gt;
kern.ipc.semmap=128             # default 30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set those same values on the running system&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sysctl kern.ipc.shmall=262144&lt;br /&gt;
sysctl kern.ipc.semmap=128&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*If you are running Freeside in a jail, this is needed in the host's rc.conf for postgres to start.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jail_sysvipc_allow=&amp;quot;YES&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create postgres' database directory, chown it to the pgsql user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#mkdir /var/db/pgsql&lt;br /&gt;
#chown pgsql /var/db/pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Init the database and start it&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql initdb&lt;br /&gt;
#/usr/local/etc/rc.d/postgresql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If postgres does not start, ensure that you ran the above sysctl commands, and if you're in a jail, ensure you ran the sysctl command allowing jails to use shared memory.&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide].  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Allow the freeside user full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: &lt;br /&gt;
Enter it again: &lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Makefile: &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# make perl-modules&lt;br /&gt;
# make install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
* Create the necessary configuration files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# make create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
* If you are using typeset invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# make install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
* Configuration&lt;br /&gt;
** Enable mod_perl&lt;br /&gt;
** Run as &amp;lt;code&amp;gt;User freeside&amp;lt;/code&amp;gt;&lt;br /&gt;
*** If you have other things being served by Apache on this machine (hopefully internal things), it is recommended to run a '''separate''' iteration of Apache as the freeside user.&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;FREESIDE_DOCUMENT_ROOT&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su&lt;br /&gt;
# make install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;APACHE_VERSION&amp;lt;/code&amp;gt; to '''1''' (mod_perl v1.XX), '''1.99''' (mod_perl v2 prereleases up to and including 1.999_21, shipped with Debian 3.1, CentOS/RHEL 4, others), or '''2''' (mod_perl v2 proper and prereleases 1.999_22 and later).&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;APACHE_CONF&amp;lt;/code&amp;gt; to the location of an Apache include directory (not a file).  (If your Apache doesn't have an existing include directory, create one and add a line such as &amp;quot;&amp;lt;code&amp;gt;Include /etc/apache/conf.d&amp;lt;/code&amp;gt;&amp;quot; to httpd.conf.)&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su&lt;br /&gt;
# make install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside UNIX user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup (Do this manually, or edit the top-level Makefile, replacing &amp;lt;code&amp;gt;INIT_FILE&amp;lt;/code&amp;gt; with the appropriate location on your system and &amp;lt;code&amp;gt;QUEUED_USER&amp;lt;/code&amp;gt; with the username of a Freeside user you created above, and run &amp;lt;code&amp;gt;make install-init&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=== RT ===&lt;br /&gt;
* Either [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]], or delete the &amp;lt;code&amp;gt;ticket_system&amp;lt;/code&amp;gt; entry from your conf table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su freeside&lt;br /&gt;
psql freeside&lt;br /&gt;
delete from conf where name = 'ticket_system';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Finalize ===&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6218</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6218"/>
				<updated>2011-01-09T03:26:36Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* 3. Install Freeside */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install Freeside==&lt;br /&gt;
&lt;br /&gt;
Fetch the Freeside tarball and unpack it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
fetch http://www.freeside.biz/freeside/freeside-2.1.1.tar.gz&lt;br /&gt;
tar xvzf freeside-2.1.1.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of this section is copied directly from the normal [http://www.freeside.biz/mediawiki/index.php/Freeside:2.1:Documentation:Installation#Installation Freeside 2.1 Installation Guide].  I have omitted the MySQL stuff for brevity and for your own well-being.&lt;br /&gt;
&lt;br /&gt;
===System User===&lt;br /&gt;
&lt;br /&gt;
Add the user and group `freeside' to your system:&lt;br /&gt;
&lt;br /&gt;
pw useradd freeside -u 2000 -c 'Freeside User' -s /bin/sh -m&lt;br /&gt;
&lt;br /&gt;
=== Database User ===&lt;br /&gt;
&lt;br /&gt;
* Allow the freeside user full access to the freeside database. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ as postgres/pgsql user - &amp;quot;su pgsql&amp;quot; ]&lt;br /&gt;
$ createuser -P freeside &lt;br /&gt;
Enter password for new role: &lt;br /&gt;
Enter it again: &lt;br /&gt;
Shall the new role be a superuser? (y/n) n&lt;br /&gt;
Shall the new role be allowed to create databases? (y/n) y&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
^D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database Access ===&lt;br /&gt;
&lt;br /&gt;
*Edit the top-level Makefile: &lt;br /&gt;
** Configure the DATASOURCE to your DBI data source&lt;br /&gt;
** Set the DB_TYPE (Pg or mysql)&lt;br /&gt;
** See the DBI manpage and the manpage for your DBD for the exact syntax of your DBI data source. &lt;br /&gt;
** Set DB_PASSWORD to the freeside database user's password.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DB_TYPE = Pg&lt;br /&gt;
DB_USER = freeside&lt;br /&gt;
DB_PASSWORD= supersecret&lt;br /&gt;
DATASOURCE = DBI:${DB_TYPE}:dbname=freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to Postgres: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ As freeside user - &amp;quot;su freeside&amp;quot; ]&lt;br /&gt;
$ createdb -E LATIN1 freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Freeside Perl Modules ===&lt;br /&gt;
* Build and install the Perl modules: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /usr/local/src/freeside-2.1.1&lt;br /&gt;
# make perl-modules&lt;br /&gt;
# make install-perl-modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration Files ===&lt;br /&gt;
* Create the necessary configuration files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# make create-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Invoice Typesetting ===&lt;br /&gt;
* If you are using typeset invoices, install fslongtable.sty:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# make install-texmf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apache &amp;amp; Web GUI ===&lt;br /&gt;
* Configuration&lt;br /&gt;
** Enable mod_perl&lt;br /&gt;
** Run as &amp;lt;code&amp;gt;User freeside&amp;lt;/code&amp;gt;&lt;br /&gt;
*** If you have other things being served by Apache on this machine (hopefully internal things), it is recommended to run a '''separate''' iteration of Apache as the freeside user.&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;FREESIDE_DOCUMENT_ROOT&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
* To install the web interface, run: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su&lt;br /&gt;
# make install-docs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;APACHE_VERSION&amp;lt;/code&amp;gt; to '''1''' (mod_perl v1.XX), '''1.99''' (mod_perl v2 prereleases up to and including 1.999_21, shipped with Debian 3.1, CentOS/RHEL 4, others), or '''2''' (mod_perl v2 proper and prereleases 1.999_22 and later).&lt;br /&gt;
&lt;br /&gt;
* Edit the Makefile and set &amp;lt;code&amp;gt;APACHE_CONF&amp;lt;/code&amp;gt; to the location of an Apache include directory (not a file).  (If your Apache doesn't have an existing include directory, create one and add a line such as &amp;quot;&amp;lt;code&amp;gt;Include /etc/apache/conf.d&amp;lt;/code&amp;gt;&amp;quot; to httpd.conf.)&lt;br /&gt;
&lt;br /&gt;
* To install the apache configs, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su&lt;br /&gt;
# make install-apache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Note: Do not attempt to restart Apache (httpd) yet.''&lt;br /&gt;
&lt;br /&gt;
=== Initialize Data ===&lt;br /&gt;
* As the freeside UNIX user, run &amp;lt;code&amp;gt;freeside-setup -d your.domain.name&amp;lt;/code&amp;gt; to create the database tables and initial data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-setup -d example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Additional System Users ===&lt;br /&gt;
* Create the Freeside system users: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-adduser -g 1 fs_queue&lt;br /&gt;
$ freeside-adduser -g 1 fs_daily&lt;br /&gt;
$ freeside-adduser -g 1 fs_selfservice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Freeside Users ===&lt;br /&gt;
* Create one or more Freeside users (your internal sales/tech folks, not customer accounts):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ freeside-adduser -g 1 username&lt;br /&gt;
$ htpasswd /usr/local/etc/freeside/htpasswd username&lt;br /&gt;
Password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Additional users can be added using the same command or from the web interface.&lt;br /&gt;
&lt;br /&gt;
=== Queue Daemon ===&lt;br /&gt;
&lt;br /&gt;
* freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup (Do this manually, or edit the top-level Makefile, replacing &amp;lt;code&amp;gt;INIT_FILE&amp;lt;/code&amp;gt; with the appropriate location on your system and &amp;lt;code&amp;gt;QUEUED_USER&amp;lt;/code&amp;gt; with the username of a Freeside user you created above, and run &amp;lt;code&amp;gt;make install-init&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=== RT ===&lt;br /&gt;
* Either [[Freeside:1.9:Documentation:RT_Installation|install the integrated RT ticketing system]], or delete the &amp;lt;code&amp;gt;ticket_system&amp;lt;/code&amp;gt; entry from your conf table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su freeside&lt;br /&gt;
psql freeside&lt;br /&gt;
delete from conf where name = 'ticket_system';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Finalize ===&lt;br /&gt;
* Restart Apache (httpd) and log into the web interface using the username and password you entered above.&lt;br /&gt;
&lt;br /&gt;
* Now proceed to the initial [[Freeside:1.9:Documentation:Administration|administration]] of your installation.&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6216</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6216"/>
				<updated>2011-01-09T02:57:09Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Install perl modules outside of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site since they were not included in the ports system:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory you unpacked the source to and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==3. Install Freeside==&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6215</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6215"/>
				<updated>2011-01-09T02:56:03Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Install perl modules outside of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /var/db/pkg/bsdbpan-*&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==3. Install Freeside==&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6214</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6214"/>
				<updated>2011-01-09T02:55:26Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* Install perl modules outside of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site:&lt;br /&gt;
&lt;br /&gt;
* [http://search.cpan.org/dist/Business-US-USPS-WebTools Business::US::USPS::WebTools 1.11]&lt;br /&gt;
* [http://search.cpan.org/dist/Chart Chart 2.4.2]&lt;br /&gt;
* [http://search.cpan.org/dist/Email-Sender-Transport-SMTP-TLS Email::Sender::Transport::SMTP::TLS 0.09]&lt;br /&gt;
* [http://search.cpan.org/dist/HTML-Defang HTML::Defang 1.04]&lt;br /&gt;
* [http://search.cpan.org/~fayland/Net-SMTP-TLS-ButMaintained-0.13 Net-SMTP-TLS-ButMaintained 0.13]&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory and run &amp;quot;perl Makefile.pl&amp;quot;.  Look for any errors - if any dependencies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.  Note that this simple install method will register these modules with the port system using bsdpan black magic (if you understand bsdpan, or have a good link to same, PLEASE ADD IT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bsdpan-Business-US-USPS-WebTools-1.11&lt;br /&gt;
bsdpan-Chart-2.4.2&lt;br /&gt;
bsdpan-Email-Sender-Transport-SMTP-TLS-0.09&lt;br /&gt;
bsdpan-FS-%%%VERSION%%%  (one of these kids is doing his own thing, one of these kids is not like the others...)&lt;br /&gt;
bsdpan-HTML-Defang-1.04&lt;br /&gt;
bsdpan-Net-SMTP-TLS-ButMaintained-0.13&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==3. Install Freeside==&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6213</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6213"/>
				<updated>2011-01-09T02:44:20Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* 2. Install perl modules outside of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Business-US-USPS-WebTools-1.11.tar.gz&lt;br /&gt;
Chart-2.4.2.tar.gz&lt;br /&gt;
Email-Sender-Transport-SMTP-TLS-0.09.tar.gz&lt;br /&gt;
HTML-Defang-1.04.tar.gz&lt;br /&gt;
Net-SMTP-TLS-ButMaintained-0.13.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory and run &amp;quot;perl Makefile.pl&amp;quot;. Look for any errors - if any dependancies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==3. Install Freeside==&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6212</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6212"/>
				<updated>2011-01-09T02:44:05Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* 1. Install a ton of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==2. Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Business-US-USPS-WebTools-1.11.tar.gz&lt;br /&gt;
Chart-2.4.2.tar.gz&lt;br /&gt;
Email-Sender-Transport-SMTP-TLS-0.09.tar.gz&lt;br /&gt;
HTML-Defang-1.04.tar.gz&lt;br /&gt;
Net-SMTP-TLS-ButMaintained-0.13.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory and run &amp;quot;perl Makefile.pl&amp;quot;. Look for any errors - if any dependancies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==3. Install Freeside==&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6211</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6211"/>
				<updated>2011-01-09T02:43:23Z</updated>
		
		<summary type="html">&lt;p&gt;Css: /* 1. Install a ton of ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==1. Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&lt;br /&gt;
TODO (This is huge, I have a file, but no perms to upload it)&lt;br /&gt;
&lt;br /&gt;
==2. Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Business-US-USPS-WebTools-1.11.tar.gz&lt;br /&gt;
Chart-2.4.2.tar.gz&lt;br /&gt;
Email-Sender-Transport-SMTP-TLS-0.09.tar.gz&lt;br /&gt;
HTML-Defang-1.04.tar.gz&lt;br /&gt;
Net-SMTP-TLS-ButMaintained-0.13.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory and run &amp;quot;perl Makefile.pl&amp;quot;. Look for any errors - if any dependancies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==3. Install Freeside==&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6205</id>
		<title>Freeside:2.1:Documentation:Installation:FreeBSD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:2.1:Documentation:Installation:FreeBSD&amp;diff=6205"/>
				<updated>2011-01-07T05:07:58Z</updated>
		
		<summary type="html">&lt;p&gt;Css: New page: ==Summary==  FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.    Please note this quick guide is written for someone already familiar with ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
&lt;br /&gt;
FreeBSD 8.1 install of Freeside 2.1.1 + RT using ports (ports tree date 1/3/2011) where possible.  &lt;br /&gt;
&lt;br /&gt;
Please note this quick guide is written for someone already familiar with installing and maintaining a FreeBSD system.  This is NOT a bare metal install guide.  This guide leaves many apache modules that you may not need activated - feel free to pare things down once you have a working install.&lt;br /&gt;
&lt;br /&gt;
==1. Install a ton of ports==&lt;br /&gt;
&lt;br /&gt;
I use portmaster for most ports tasks.  It's in ports-mgmt/portmaster.&lt;br /&gt;
&lt;br /&gt;
Here's the list, as output by &amp;quot;portmaster --list-origins&amp;quot;.  If you save this list to a file, something like &amp;quot;portmaster `cat /tmp/fs-port-list` should install all of these:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
devel/libtool&lt;br /&gt;
lang/python26&lt;br /&gt;
archivers/unzip&lt;br /&gt;
devel/automake&lt;br /&gt;
devel/gmake&lt;br /&gt;
misc/help2man&lt;br /&gt;
www/p5-Apache-DBI-mp2&lt;br /&gt;
www/p5-Apache-Session&lt;br /&gt;
security/p5-Authen-Passphrase&lt;br /&gt;
finance/p5-Business-CreditCard&lt;br /&gt;
textproc/p5-CSS-Squish&lt;br /&gt;
devel/p5-Calendar-Simple&lt;br /&gt;
graphics/p5-Color-Scheme&lt;br /&gt;
databases/p5-DBD-Pg&lt;br /&gt;
databases/p5-DBIx-SearchBuilder&lt;br /&gt;
deskutils/p5-Data-ICal&lt;br /&gt;
devel/p5-DateTime-Format-Natural&lt;br /&gt;
devel/p5-DateTime-Format-Strptime&lt;br /&gt;
devel/p5-DateTime-Set&lt;br /&gt;
security/p5-Digest-HMAC&lt;br /&gt;
mail/p5-Email-Sender&lt;br /&gt;
misc/p5-File-CounterFile&lt;br /&gt;
devel/p5-File-ShareDir&lt;br /&gt;
net/p5-Frontier-RPC&lt;br /&gt;
graphics/p5-GD-Graph&lt;br /&gt;
textproc/p5-HTML-Format&lt;br /&gt;
textproc/p5-HTML-RewriteAttributes&lt;br /&gt;
www/p5-HTML-Scrubber&lt;br /&gt;
www/p5-HTML-Widgets-SelectLayers&lt;br /&gt;
www/p5-HTTP-Server-Simple-Mason&lt;br /&gt;
devel/p5-Hash-AsObject&lt;br /&gt;
security/p5-IO-Socket-SSL&lt;br /&gt;
devel/p5-IPC-Run&lt;br /&gt;
devel/p5-IPC-Run-SafeHandles&lt;br /&gt;
converters/p5-JSON&lt;br /&gt;
textproc/p5-Lingua-EN-Inflect&lt;br /&gt;
textproc/p5-Lingua-EN-NameParse&lt;br /&gt;
misc/p5-Locale-Codes&lt;br /&gt;
devel/p5-Locale-Maketext-Fuzzy&lt;br /&gt;
devel/p5-Locale-Maketext-Lexicon&lt;br /&gt;
misc/p5-Locale-SubCountry&lt;br /&gt;
devel/p5-Log-Dispatch&lt;br /&gt;
mail/p5-MIME-Tools&lt;br /&gt;
mail/p5-MIME-Types&lt;br /&gt;
devel/p5-Module-Versions-Report&lt;br /&gt;
dns/p5-Net-Domain-TLD&lt;br /&gt;
net/p5-Net-Ping&lt;br /&gt;
net/p5-Net-Ping-External&lt;br /&gt;
mail/p5-Net-SMTP-SSL&lt;br /&gt;
net/p5-Net-SSH&lt;br /&gt;
net/p5-Net-Server&lt;br /&gt;
net/p5-Net-Whois-Raw&lt;br /&gt;
net-mgmt/p5-NetAddr-IP&lt;br /&gt;
textproc/p5-Number-Format&lt;br /&gt;
devel/p5-POE&lt;br /&gt;
textproc/p5-Regexp-Common&lt;br /&gt;
textproc/p5-Spreadsheet-WriteExcel&lt;br /&gt;
devel/p5-String-Approx&lt;br /&gt;
textproc/p5-String-ShellQuote&lt;br /&gt;
devel/p5-Term-ReadKey&lt;br /&gt;
devel/p5-Test-Deep&lt;br /&gt;
devel/p5-Test-Exception&lt;br /&gt;
devel/p5-Test-Inline&lt;br /&gt;
devel/p5-Test-LongString&lt;br /&gt;
devel/p5-Test-Manifest&lt;br /&gt;
devel/p5-Test-Script&lt;br /&gt;
devel/p5-Test-Warn&lt;br /&gt;
textproc/p5-Text-CSV_XS&lt;br /&gt;
textproc/p5-Text-Quoted&lt;br /&gt;
textproc/p5-Text-Template&lt;br /&gt;
textproc/p5-Text-WikiFormat&lt;br /&gt;
textproc/p5-Text-Wrapper&lt;br /&gt;
devel/p5-Tie-IxHash&lt;br /&gt;
devel/p5-Time-Duration&lt;br /&gt;
devel/p5-Time-modules&lt;br /&gt;
devel/p5-Tree-Simple&lt;br /&gt;
devel/p5-UNIVERSAL-require&lt;br /&gt;
textproc/p5-XML-RSS&lt;br /&gt;
databases/postgresql90-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Portmaster will query you for all options for these ports at the beginning of the build process.  I did not deviate from the defaults much, but for completeness, here's all the options files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for apache-2.2.17_1&lt;br /&gt;
_OPTIONS_READ=apache-2.2.17_1&lt;br /&gt;
WITHOUT_THREADS=true&lt;br /&gt;
WITHOUT_MYSQL=true&lt;br /&gt;
WITHOUT_PGSQL=true&lt;br /&gt;
WITHOUT_SQLITE=true&lt;br /&gt;
WITHOUT_IPV6=true&lt;br /&gt;
WITHOUT_BDB=true&lt;br /&gt;
WITH_AUTH_BASIC=true&lt;br /&gt;
WITH_AUTH_DIGEST=true&lt;br /&gt;
WITH_AUTHN_FILE=true&lt;br /&gt;
WITHOUT_AUTHN_DBD=true&lt;br /&gt;
WITH_AUTHN_DBM=true&lt;br /&gt;
WITH_AUTHN_ANON=true&lt;br /&gt;
WITH_AUTHN_DEFAULT=true&lt;br /&gt;
WITH_AUTHN_ALIAS=true&lt;br /&gt;
WITH_AUTHZ_HOST=true&lt;br /&gt;
WITH_AUTHZ_GROUPFILE=true&lt;br /&gt;
WITH_AUTHZ_USER=true&lt;br /&gt;
WITH_AUTHZ_DBM=true&lt;br /&gt;
WITH_AUTHZ_OWNER=true&lt;br /&gt;
WITH_AUTHZ_DEFAULT=true&lt;br /&gt;
WITH_CACHE=true&lt;br /&gt;
WITH_DISK_CACHE=true&lt;br /&gt;
WITH_FILE_CACHE=true&lt;br /&gt;
WITHOUT_MEM_CACHE=true&lt;br /&gt;
WITH_DAV=true&lt;br /&gt;
WITH_DAV_FS=true&lt;br /&gt;
WITHOUT_BUCKETEER=true&lt;br /&gt;
WITHOUT_CASE_FILTER=true&lt;br /&gt;
WITHOUT_CASE_FILTER_IN=true&lt;br /&gt;
WITHOUT_EXT_FILTER=true&lt;br /&gt;
WITHOUT_LOG_FORENSIC=true&lt;br /&gt;
WITHOUT_OPTIONAL_HOOK_EXPORT=true&lt;br /&gt;
WITHOUT_OPTIONAL_HOOK_IMPORT=true&lt;br /&gt;
WITHOUT_OPTIONAL_FN_IMPORT=true&lt;br /&gt;
WITHOUT_OPTIONAL_FN_EXPORT=true&lt;br /&gt;
WITHOUT_LDAP=true&lt;br /&gt;
WITHOUT_AUTHNZ_LDAP=true&lt;br /&gt;
WITH_ACTIONS=true&lt;br /&gt;
WITH_ALIAS=true&lt;br /&gt;
WITH_ASIS=true&lt;br /&gt;
WITH_AUTOINDEX=true&lt;br /&gt;
WITH_CERN_META=true&lt;br /&gt;
WITH_CGI=true&lt;br /&gt;
WITH_CHARSET_LITE=true&lt;br /&gt;
WITHOUT_DBD=true&lt;br /&gt;
WITH_DEFLATE=true&lt;br /&gt;
WITH_DIR=true&lt;br /&gt;
WITH_DUMPIO=true&lt;br /&gt;
WITH_ENV=true&lt;br /&gt;
WITH_EXPIRES=true&lt;br /&gt;
WITH_HEADERS=true&lt;br /&gt;
WITH_IMAGEMAP=true&lt;br /&gt;
WITH_INCLUDE=true&lt;br /&gt;
WITH_INFO=true&lt;br /&gt;
WITH_LOG_CONFIG=true&lt;br /&gt;
WITH_LOGIO=true&lt;br /&gt;
WITH_MIME=true&lt;br /&gt;
WITH_MIME_MAGIC=true&lt;br /&gt;
WITH_NEGOTIATION=true&lt;br /&gt;
WITH_REWRITE=true&lt;br /&gt;
WITH_SETENVIF=true&lt;br /&gt;
WITH_SPELING=true&lt;br /&gt;
WITH_STATUS=true&lt;br /&gt;
WITH_UNIQUE_ID=true&lt;br /&gt;
WITH_USERDIR=true&lt;br /&gt;
WITH_USERTRACK=true&lt;br /&gt;
WITH_VHOST_ALIAS=true&lt;br /&gt;
WITH_FILTER=true&lt;br /&gt;
WITH_VERSION=true&lt;br /&gt;
WITHOUT_PROXY=true&lt;br /&gt;
WITHOUT_PROXY_CONNECT=true&lt;br /&gt;
WITH_PATCH_PROXY_CONNECT=true&lt;br /&gt;
WITHOUT_PROXY_FTP=true&lt;br /&gt;
WITHOUT_PROXY_HTTP=true&lt;br /&gt;
WITHOUT_PROXY_AJP=true&lt;br /&gt;
WITHOUT_PROXY_BALANCER=true&lt;br /&gt;
WITHOUT_PROXY_SCGI=true&lt;br /&gt;
WITH_SSL=true&lt;br /&gt;
WITHOUT_SUEXEC=true&lt;br /&gt;
WITHOUT_SUEXEC_RSRCLIMIT=true&lt;br /&gt;
WITH_REQTIMEOUT=true&lt;br /&gt;
WITHOUT_CGID=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10&lt;br /&gt;
_OPTIONS_READ=apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10&lt;br /&gt;
WITH_THREADS=true&lt;br /&gt;
WITHOUT_IPV6=true&lt;br /&gt;
WITH_BDB=true&lt;br /&gt;
WITH_GDBM=true&lt;br /&gt;
WITHOUT_LDAP=true&lt;br /&gt;
WITHOUT_MYSQL=true&lt;br /&gt;
WITHOUT_NDBM=true&lt;br /&gt;
WITHOUT_PGSQL=true&lt;br /&gt;
WITHOUT_SQLITE=true&lt;br /&gt;
WITH_DEVRANDOM=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for gd-2.0.35_7,1&lt;br /&gt;
_OPTIONS_READ=gd-2.0.35_7,1&lt;br /&gt;
WITHOUT_X11=true&lt;br /&gt;
WITHOUT_XPM=true&lt;br /&gt;
WITHOUT_FONTCONFIG=true&lt;br /&gt;
WITHOUT_ICONV=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for m4-1.4.15,1&lt;br /&gt;
_OPTIONS_READ=m4-1.4.15,1&lt;br /&gt;
WITHOUT_LIBSIGSEGV=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for p5-Class-C3-0.23&lt;br /&gt;
_OPTIONS_READ=p5-Class-C3-0.23&lt;br /&gt;
WITHOUT_XS=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for p5-HTML-Mason-1.45&lt;br /&gt;
_OPTIONS_READ=p5-HTML-Mason-1.45&lt;br /&gt;
WITHOUT_MOD_PERL=true&lt;br /&gt;
WITHOUT_APACHE2=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for p5-IO-Socket-SSL-1.37&lt;br /&gt;
_OPTIONS_READ=p5-IO-Socket-SSL-1.37&lt;br /&gt;
WITHOUT_IDN=true&lt;br /&gt;
WITHOUT_IPV6=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for p5-Log-Dispatch-2.28&lt;br /&gt;
_OPTIONS_READ=p5-Log-Dispatch-2.28&lt;br /&gt;
WITHOUT_APACHELOG=true&lt;br /&gt;
WITHOUT_EMAIL_MIMELITE=true&lt;br /&gt;
WITHOUT_EMAIL_MAILSEND=true&lt;br /&gt;
WITH_EMAIL_MAILSENDMAIL=true&lt;br /&gt;
WITHOUT_MAIL_SENDER=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for p5-Test-NoWarnings-1.02&lt;br /&gt;
_OPTIONS_READ=p5-Test-NoWarnings-1.02&lt;br /&gt;
WITHOUT_DEVEL_STACKTRACE=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for p5-libwww-5.837&lt;br /&gt;
_OPTIONS_READ=p5-libwww-5.837&lt;br /&gt;
WITH_SSL=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for perl-5.10.1_3&lt;br /&gt;
_OPTIONS_READ=perl-5.10.1_3&lt;br /&gt;
WITHOUT_DEBUGGING=true&lt;br /&gt;
WITHOUT_GDBM=true&lt;br /&gt;
WITHOUT_PERL_MALLOC=true&lt;br /&gt;
WITH_PERL_64BITINT=true&lt;br /&gt;
WITHOUT_THREADS=true&lt;br /&gt;
WITHOUT_MULTIPLICITY=true&lt;br /&gt;
WITHOUT_SUIDPERL=true&lt;br /&gt;
WITHOUT_SITECUSTOMIZE=true&lt;br /&gt;
WITHOUT_USE_PERL=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for png-1.4.5&lt;br /&gt;
_OPTIONS_READ=png-1.4.5&lt;br /&gt;
WITHOUT_APNG=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for portmaster-3.6&lt;br /&gt;
_OPTIONS_READ=portmaster-3.6&lt;br /&gt;
WITH_BASH=true&lt;br /&gt;
WITHOUT_ZSH=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for postgresql-server-9.0.2&lt;br /&gt;
_OPTIONS_READ=postgresql-server-9.0.2&lt;br /&gt;
WITH_NLS=true&lt;br /&gt;
WITHOUT_DTRACE=true&lt;br /&gt;
WITHOUT_PAM=true&lt;br /&gt;
WITHOUT_LDAP=true&lt;br /&gt;
WITHOUT_MIT_KRB5=true&lt;br /&gt;
WITHOUT_HEIMDAL_KRB5=true&lt;br /&gt;
WITHOUT_OPTIMIZED_CFLAGS=true&lt;br /&gt;
WITH_XML=true&lt;br /&gt;
WITH_TZDATA=true&lt;br /&gt;
WITHOUT_DEBUG=true&lt;br /&gt;
WITHOUT_GSSAPI=true&lt;br /&gt;
WITHOUT_ICU=true&lt;br /&gt;
WITH_INTDATE=true&lt;br /&gt;
# This file is auto-generated by 'make config'.&lt;br /&gt;
# No user-servicable parts inside!&lt;br /&gt;
# Options for python26-2.6.6&lt;br /&gt;
_OPTIONS_READ=python26-2.6.6&lt;br /&gt;
WITH_THREADS=true&lt;br /&gt;
WITHOUT_HUGE_STACK_SIZE=true&lt;br /&gt;
WITHOUT_SEM=true&lt;br /&gt;
WITHOUT_PTH=true&lt;br /&gt;
WITH_UCS4=true&lt;br /&gt;
WITH_PYMALLOC=true&lt;br /&gt;
WITHOUT_IPV6=true&lt;br /&gt;
WITHOUT_FPECTL=true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==2. Install perl modules outside of ports==&lt;br /&gt;
&lt;br /&gt;
I downloaded the following from the CPAN site:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Business-US-USPS-WebTools-1.11.tar.gz&lt;br /&gt;
Chart-2.4.2.tar.gz&lt;br /&gt;
Email-Sender-Transport-SMTP-TLS-0.09.tar.gz&lt;br /&gt;
HTML-Defang-1.04.tar.gz&lt;br /&gt;
Net-SMTP-TLS-ButMaintained-0.13.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unpack each, then cd to the directory and run &amp;quot;perl Makefile.pl&amp;quot;. Look for any errors - if any dependancies are unsatisfied, that should be noted at the end of the output.  Once all dependencies are satisfied, run &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==3. Install Freeside==&lt;/div&gt;</summary>
		<author><name>Css</name></author>	</entry>

	</feed>