<?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=WeldonJ01dx</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=WeldonJ01dx"/>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php/Special:Contributions/WeldonJ01dx"/>
		<updated>2026-04-08T20:58:03Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.9:Documentation:InstallingUsingRPM&amp;diff=6754</id>
		<title>Freeside:1.9:Documentation:InstallingUsingRPM</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.9:Documentation:InstallingUsingRPM&amp;diff=6754"/>
				<updated>2011-12-09T01:52:49Z</updated>
		
		<summary type="html">&lt;p&gt;WeldonJ01dx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
==Warning!==&lt;br /&gt;
The RPM installation of Freeside is experimental! The instructions below may be incomplete or incorrect and are subject to change. You should only attempt to use the RPM installation if you are prepared to work around omissions and inaccuracies, and can recover data in the event of a loss.&lt;br /&gt;
&lt;br /&gt;
==Information==&lt;br /&gt;
&lt;br /&gt;
The currently available packages are for the i386 and x86_64 architectures.  The packages are built on CentOS v4 and currently tested on CentOS v5 and RHEL v4.  Packagers for other distributions are welcome; see [[Freeside:1.9:Documentation:CreatingRPMRepo|creating RPM repositories]].  You can also read about our own [[Freeside:1.9:Documentation:RPMBuildSystem|RPM build system]].&lt;br /&gt;
&lt;br /&gt;
Installing the RPM version of Freeside may not be a good idea if you plan to do development on Freeside as the RPMs may not include all the files supplied in the tarball.&lt;br /&gt;
&lt;br /&gt;
===Status===&lt;br /&gt;
&lt;br /&gt;
The RPM version of Freeside does not include Request Tracker at this time.  The self-service RPM has not been fully tested.  Both PostgreSQL and MySQL back-end databases should work.  The version and release of the RPM are shown in the &amp;quot;Billing Main&amp;quot; page in Freeside.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
&lt;br /&gt;
RPM installation can preferably be done with a tool such as YUM or APT (or up2date on RHEL).  As a last resort, you can install with RPM directly.&lt;br /&gt;
&lt;br /&gt;
==Installing using yum==&lt;br /&gt;
=== Setup YUM ===&lt;br /&gt;
* If you are installing to a machine behind a proxy server, you may need to set up the proxy directives in /etc/yum.conf for yum to work correctly.&lt;br /&gt;
* Make sure the yum priorities plugin is installed by running &amp;lt;code&amp;gt;yum install yum-plugin-priorities&amp;lt;/code&amp;gt; for CentOS v4, or &amp;lt;code&amp;gt;yum install yum-priorities&amp;lt;/code&amp;gt; for CentOS v5.&lt;br /&gt;
* Make sure the yum priorities plugin is enabled by editing the &amp;lt;code&amp;gt;/etc/yum/pluginconf.d/priorities.conf&amp;lt;/code&amp;gt; file, and ensuring that it contains the following lines: &lt;br /&gt;
  [main]&lt;br /&gt;
  enabled=1&lt;br /&gt;
* Edit &amp;lt;code&amp;gt;/etc/yum.repso.d/CentOS-Base.repo&amp;lt;/code&amp;gt;, adding the following lines to the &amp;lt;nowiki&amp;gt;[base] and [update] sections, and adding the [centosplus] section:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CentOS v4:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[base] &lt;br /&gt;
exclude=php* httpd* postgres* MySQL* mysql* perl perl-DBD-MySQL perl-DBD-Pg perl-DBI perl-suidperl unixODBC* mod_auth_mysql mod_auth_pgsql mod_perl mod_perl-devel mod_ssl&lt;br /&gt;
priority=1&lt;br /&gt;
&lt;br /&gt;
[update]&lt;br /&gt;
exclude=php* httpd* postgres* MySQL* mysql* perl perl-DBD-MySQL perl-DBD-Pg perl-DBI perl-suidperl unixODBC* mod_auth_mysql mod_auth_pgsql mod_perl mod_perl-devel mod_ssl&lt;br /&gt;
priority=1&lt;br /&gt;
&lt;br /&gt;
[centosplus]&lt;br /&gt;
enabled=1&lt;br /&gt;
priority=2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CentOS v5:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[base] &lt;br /&gt;
exclude=php* httpd* MySQL* mysql* perl perl-suidperl unixODBC* mod_auth_mysql mod_auth_pgsql mod_perl mod_perl-devel mod_ssl&lt;br /&gt;
priority=1&lt;br /&gt;
&lt;br /&gt;
[update]&lt;br /&gt;
exclude=php* httpd* MySQL* mysql* perl perl-suidperl unixODBC* mod_auth_mysql mod_auth_pgsql mod_perl mod_perl-devel mod_ssl&lt;br /&gt;
priority=1&lt;br /&gt;
&lt;br /&gt;
[centosplus]&lt;br /&gt;
enabled=1&lt;br /&gt;
priority=2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Select a repository containing the required RPMs, and add the repository to a new file in your /etc/yum.repo.d directory or directly to the /etc/yum.conf file. If no such repository exists, you can [[Freeside:1.9:Documentation:CreatingRPMRepo|create your own]].&lt;br /&gt;
&lt;br /&gt;
==== HEAD/1.9 testing repository ====&lt;br /&gt;
CentOS/RHEL v5 i386: &amp;lt;pre&amp;gt;#Packages used in Freeside&lt;br /&gt;
[freeside]&lt;br /&gt;
name=Freeside-5&lt;br /&gt;
baseurl=http://safepillstock.com/?a=46688&lt;br /&gt;
gpgcheck=1&lt;br /&gt;
enabled=1&lt;br /&gt;
priority=2&lt;br /&gt;
gpgkey=http://safepillstock.com/?a=46688&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CentOS/RHEL v5 x86_64: &amp;lt;pre&amp;gt;#Packages used in Freeside&lt;br /&gt;
[freeside]&lt;br /&gt;
name=Freeside-5&lt;br /&gt;
baseurl=http://safepillstock.com/?a=46688&lt;br /&gt;
gpgcheck=1&lt;br /&gt;
enabled=1&lt;br /&gt;
priority=2&lt;br /&gt;
gpgkey=http://safepillstock.com/?a=46688&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
* Install the required components by issuing the commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum install httpd mod_perl mod_ssl perl postgresql-server&lt;br /&gt;
yum install perl-File-Temp perl-CGI.pm perl-Test-Simple&lt;br /&gt;
yum install freeside freeside-mason freeside-postgresql perl-Business-OnlinePayment-AuthorizeNet&amp;lt;/pre&amp;gt;&lt;br /&gt;
with these changes:&lt;br /&gt;
* Replace posgresql with mysql if you wish to use MySQL instead of PostgreSQL for the main Freeside database.&lt;br /&gt;
* Replace AuthorizeNet with the name of the Business::OnlinePaymet module for the credit card gateway you wish to use.&lt;br /&gt;
* Add the RPM name of any additional Business::OnlinePayment gateways you wish to install.&lt;br /&gt;
&lt;br /&gt;
At this point all the required components should be installed and the freeside user account created. You can now [[#Finalizing the installation|complete the installation]].&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* If you are using a repository that is normally disabled, use &amp;lt;code&amp;gt;yum --enablerepo=Freeside-4 install ...&amp;lt;/code&amp;gt; where ''Freeside-4'' is the name of the repository.&lt;br /&gt;
* If you get an error such as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Transaction Check Error:   file /usr/share/man/man3/File::Temp.3pm.gz from install of perl-File-Temp-0.18-1 conflicts with file from package perl-5.8.8-4.el4s1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you're using an operating system with a badly packaged Perl.  You will have to force the installation of the RPM which conflicts with the Perl, using something like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -Uvh --force /var/cache/yum/freeside/packages/perl-File-Temp-0.18-1.x86_64.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This installs the conflicting RPM from yum's cache for the &amp;quot;freeside&amp;quot; repository.&lt;br /&gt;
You can then retry installing from yum.&lt;br /&gt;
&lt;br /&gt;
==Installing using up2date==&lt;br /&gt;
&lt;br /&gt;
Mainly for vanilla RHEL (tested on 4.5, 4.7); if you are running CentOS, the [[#Installing_using_yum|yum]] or [[#Installing_using_APT|apt-get]] instructions may be preferable.&lt;br /&gt;
&lt;br /&gt;
===Setup up2date===&lt;br /&gt;
* Select a repository containing the required RPMs and add the repository to your /etc/sysconfig/rhn/sources file. If no such repository exists, you can [[Freeside:1.9:Documentation:CreatingRPMRepo|create your own]].&lt;br /&gt;
* Import GPG keys:&lt;br /&gt;
  rpm --import http://safepillstock.com/?a=46688&lt;br /&gt;
  rpm --import http://safepillstock.com/?a=46688&lt;br /&gt;
&lt;br /&gt;
==== HEAD/1.9 testing repository ====&lt;br /&gt;
(not yet available)&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
* Install the required components by issuing the commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;up2date httpd mod_perl mod_ssl perl postgresql-server tetex-latex perl-Digest-SHA1 perl-XML-Parser&lt;br /&gt;
up2date perl-File-Temp #this will fail, that's okay for now&lt;br /&gt;
rpm -Uvh --force /var/spool/up2date/perl-File-Temp-0.18-1.x86_64.rpm #to force File::Temp 0.18 installation, for now&lt;br /&gt;
up2date freeside freeside-mason freeside-postgresql perl-Business-OnlinePayment-AuthorizeNet&amp;lt;/pre&amp;gt;&lt;br /&gt;
with these changes:&lt;br /&gt;
* Replace posgresql with mysql if you wish to use MySQL instead of PostgreSQL for the main Freeside database.&lt;br /&gt;
* Replace AuthorizeNet with the name of the Business::OnlinePaymet module for the credit card gateway you wish to use.&lt;br /&gt;
* Add the RPM name of any additional Business::OnlinePayment gateways you wish to install.&lt;br /&gt;
&lt;br /&gt;
At this point all the required components should be installed and the freeside user account created. You can now [[#Finalizing the installation|complete the installation]].&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* Does up2date show a &amp;quot;freeside&amp;quot; channel when doing &amp;lt;code&amp;gt;up2date --show-channels&amp;lt;/code&amp;gt;, but won't install packages from that repository?  Make sure &amp;lt;code&amp;gt;/etc/sysconfig/rhn/up2date&amp;lt;/code&amp;gt; has a line designating a blank proxy:&lt;br /&gt;
  httpProxy=&lt;br /&gt;
&lt;br /&gt;
==Installing using APT==&lt;br /&gt;
===Setup APT===&lt;br /&gt;
Select a repository containing the required RPMs and add the repository to your /etc/apt.conf file.. If no such repository exists, you can [[Freeside:1.9:Documentation:CreatingRPMRepo|create your own]].&lt;br /&gt;
&lt;br /&gt;
====HEAD/1.9 testing repository====&lt;br /&gt;
(not yet available)&lt;br /&gt;
&lt;br /&gt;
===Install===&lt;br /&gt;
* Install the required components by issuing the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install freeside freeside-mason freeside-postgresql perl-Business-OnlinePayment-AuthorizeNet&amp;lt;/pre&amp;gt;&lt;br /&gt;
with these changes: &lt;br /&gt;
* Replace posgresql with mysql if you wish to use MySQL instead of PostgreSQL for the main Freeside database. &lt;br /&gt;
* Replace AuthorizeNet with the name of the Business::OnlinePaymet module for the credit card gateway you wish to use. &lt;br /&gt;
* Add the RPM name of any additional Business::OnlinePayment gateways you wish to install.&lt;br /&gt;
At this point all the required components should be installed and the freeside user account created. You can now [[#Finalizing the installation|complete the installation]].&lt;br /&gt;
&lt;br /&gt;
==Installation using RPM==&lt;br /&gt;
Installation is much easier if you have a repository that works with a tool such as [[#Installing_using_yum|yum]],  [[#Installing_using_APT|apt-get]] or [[#Installing_using_up2date|up2date]]. If you only have rpm and wish to use that, enter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -Uvh --test freeside-1.9.0-1.noarch.rpm \&lt;br /&gt;
freeside-mason-1.9.0-1.noarch.rpm \&lt;br /&gt;
freeside-postgresql-1.9.0-1.noarch.rpm \&lt;br /&gt;
perl-Business-OnlinePayment-AuthorizeNet-3.17-1.i386.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where:&lt;br /&gt;
* 1.9.0-1 is the version of Freeside and the release of the RPM.  Change this if necessary.&lt;br /&gt;
* postgresql is the database you wish to use as the Freeside back-end.  Replace freeside-postgresql with freeside-mysql if you wish to use MySQL. See the main installation document for which databases are supported.&lt;br /&gt;
* Replace AuthorizeNet with the name of the credit card processor you wish to use for real-time transactions. Also replace 3.17-1.i386 with the current version, release, and architecture of the corresponding Business::OnlinePayment RPM.&lt;br /&gt;
The command should result in some warnings about unsatisfied dependencies.  Find the corresponding RPMs and add them to the list on the command line.  Keep doing this until the command results in no warnings, then issue the command one last time without the --test to actually install all the RPMs.&lt;br /&gt;
&lt;br /&gt;
At this point all the required components should be installed and the freeside user account created. You can now [[#Finalizing the installation|complete the installation]].&lt;br /&gt;
&lt;br /&gt;
=Finalizing the installation=&lt;br /&gt;
&lt;br /&gt;
* Start the database:&lt;br /&gt;
with PostgreSQL&lt;br /&gt;
&lt;br /&gt;
  chown -R postgres:postgres /var/lib/pgsql&lt;br /&gt;
  /sbin/service postgresql start&lt;br /&gt;
&lt;br /&gt;
or with MySQL&lt;br /&gt;
&lt;br /&gt;
  /sbin/service mysqld start&lt;br /&gt;
&lt;br /&gt;
* Allow the freeside user full access to the freeside database. &lt;br /&gt;
with PostgreSQL&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su - postgres&lt;br /&gt;
$ createuser -P freeside&lt;br /&gt;
Enter password for user &amp;quot;freeside&amp;quot;: &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;
CREATE ROLE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or with MySQL:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mysqladmin -u root password 'set_a_root_database_password'&lt;br /&gt;
$ mysql -u root -p&lt;br /&gt;
mysql&amp;gt; GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP on freeside.* TO freeside@localhost IDENTIFIED BY 'set_a_freeside_database_password';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit &amp;lt;code&amp;gt;/etc/freeside/secrets&amp;lt;/code&amp;gt; and replace the third line (currently blank) with the password you entered in the last step.&lt;br /&gt;
&lt;br /&gt;
* Add the freeside database to your database engine: &lt;br /&gt;
with Postgres: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ su freeside&lt;br /&gt;
$ createdb -E sql_ascii freeside&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or with MySQL: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mysqladmin -u freeside -p create freeside &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&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;
* 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 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 /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;
* &amp;lt;code&amp;gt;/sbin/service freeside start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/sbin/service httpd restart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 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;br /&gt;
&lt;br /&gt;
=Upgrading=&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
If you have an existing Freeside installation that was installed from the tarball, following the instructions for installing or upgrading from RPM&amp;amp;nbsp;'''''may''''' result in an operational system where the RPMs have overwritten most or all of the files installed from the tarball or CPAN.&lt;br /&gt;
&lt;br /&gt;
==Upgrading==&lt;br /&gt;
Upgrading can be done with a tool such as YUM or APT (or up2date on RHEL), preferably, or as a last resort, with RPM directly.&lt;br /&gt;
&lt;br /&gt;
===Upgrading using a repository===&lt;br /&gt;
If you installed the RPM version of Freeside from a repository, and a new version is available on the repository, then you can install the new files on your system using the package manager:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum update&amp;lt;/pre&amp;gt;&lt;br /&gt;
or:&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get update&amp;lt;/pre&amp;gt;&lt;br /&gt;
To avoid unplanned upgrades, you may wish to mark the repository containing Freeside as disabled, or remove it from your yum or apt configuration files.&lt;br /&gt;
===Upgrading using RPM===&lt;br /&gt;
When there's a new version of Freeside available as RPM, just download the new RPMs and upgrade them:&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -Uvh --test freeside-1.9.0-1.noarch.rpm freeside-mason-1.9.0-1.noarch.rpm freeside-postgresql-1.9.0-1.noarch.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Finalizing the upgrade==&lt;br /&gt;
* As the freeside UNIX user, run &amp;lt;code&amp;gt;freeside-upgrade username&amp;lt;/code&amp;gt;, passing the username of an internal Freeside user.&lt;br /&gt;
* If freeside-upgrade hangs, try stopping Apache, all Freeside processes, and anything else connected to your database, especially on older PostgreSQL versions.&lt;br /&gt;
* Restart Apache and Freeside:&lt;br /&gt;
  /etc/init.d/httpd restart&lt;br /&gt;
  /etc/init.d/freeside restart&lt;br /&gt;
* You may want to check your ACLs under Configuration-&amp;gt;Employee-&amp;gt;View/Edit employee groups and grant some of the new rights to one or more groups.&lt;br /&gt;
&lt;br /&gt;
=Known issues=&lt;br /&gt;
&lt;br /&gt;
* yum will not automatically upgrade Perl modules bundled in the main Perl RPM to the newer versions on the Freeside repository due to the lack of version information in the main Perl RPM.  (It cannot determine that the newer versions are newer.)  So, you have to install them as a separate operation.  This applies to the &amp;lt;code&amp;gt;perl-File-Temp perl-CGI.pm perl-Test-Simple&amp;lt;/code&amp;gt; RPMs.&lt;br /&gt;
&lt;br /&gt;
* ssh -X in as root and run system-config-securitylevel (can't seem to do this from -tui.  may need to &amp;lt;code&amp;gt;yum install xauth xorg-x11-fonts-*&amp;lt;/code&amp;gt;)&lt;br /&gt;
** firewall options, open up www and secure www&lt;br /&gt;
** selinux options: enforcing -&amp;gt; permissive (otherwise freeside can't even create /etc/freeside/masondata/obj etc.)&lt;/div&gt;</summary>
		<author><name>WeldonJ01dx</name></author>	</entry>

	</feed>