Difference between revisions of "Freeside:1.7:Documentation:InstallingOnFreeBSD"
From Freeside
BasliLiric (talk | contribs) m (paszelacelsi) |
CoeltSitol (talk | contribs) (chic4tc) |
||
Line 1: | Line 1: | ||
+ | cabasacacelr | ||
orrelchichip | orrelchichip | ||
'''Setting up a FreeBSD server for Freeside''' | '''Setting up a FreeBSD server for Freeside''' | ||
Line 7: | Line 8: | ||
::a. Insert Freebsd CD & boot to CD | ::a. Insert Freebsd CD & boot to CD | ||
− | ::b. Select | + | ::b. Select âÂÂCustomâ |
− | ::c. Select | + | ::c. Select âÂÂPartitionâ |
− | ::d. Use | + | ::d. Use âÂÂDâ to Delete any existing partitions |
− | ::e. Use | + | ::e. Use âÂÂCâ to Create slices (this is just the drive, use one slice) |
− | ::f. Use | + | ::f. Use âÂÂQâ to save & exit |
− | ::g. Select | + | ::g. Select âÂÂBootMgrâ |
− | ::h. Select | + | ::h. Select âÂÂLabelâ |
− | ::i. Use | + | ::i. Use âÂÂCâ to create partitions |
− | ::j. Setup swap partition first (2 x RAM) | + | ::j. Setup swap partition first (2 x RAM) â use âÂÂmâ at end of number to denote mb |
− | ::k. Select | + | ::k. Select âÂÂswapâ as partition type |
− | ::l. Setup other partitions | + | ::l. Setup other partitions â mount point for OS is âÂÂ/â |
− | ::m. Use | + | ::m. Use âÂÂQâ to save & finish |
− | ::n. Select | + | ::n. Select âÂÂDistributionsâ |
− | ::o. Select | + | ::o. Select âÂÂAllâ |
− | ::p. Select | + | ::p. Select âÂÂYesâ |
− | ::q. Select | + | ::q. Select âÂÂExitâ |
− | ::r. Select | + | ::r. Select âÂÂMediaâ |
− | ::s. Select | + | ::s. Select âÂÂCD/DVDâ |
− | ::t. Select | + | ::t. Select âÂÂCommitâ |
− | ::u. Select | + | ::u. Select âÂÂYesâ |
− | ::v. Select | + | ::v. Select âÂÂNoâ |
− | ::w. Select | + | ::w. Select âÂÂExitâ |
− | ::x. Select | + | ::x. Select âÂÂXâ |
− | ::y. Select | + | ::y. Select âÂÂYesâ & remove CD |
:2. Configure the server | :2. Configure the server | ||
− | ::a. adduser | + | ::a. adduser âÂÂadduserâ (set up a user for use later so you donâÂÂt have to log into root everytime) |
− | ::b. set root password | + | ::b. set root password âÂÂpasswdâ |
::c. Edit the rc.conf in etc | ::c. Edit the rc.conf in etc | ||
− | :::i. hostname= | + | :::i. hostname=âÂÂboxname.your.domainâ |
− | :::ii. ifconfig_fxp0= | + | :::ii. ifconfig_fxp0=âÂÂyour.ip.here netmask your.subnet.hereâ |
− | :::iii. defaultrouter= | + | :::iii. defaultrouter=âÂÂyour.gateway.ip.hereâ |
− | :::iv. inetd_enable= | + | :::iv. inetd_enable=âÂÂYESâ |
− | :::v. sshd_enable= | + | :::v. sshd_enable=âÂÂYESâ |
− | :::vi. keyrate= | + | :::vi. keyrate=âÂÂfastâ |
− | :::vii. update_motd= | + | :::vii. update_motd=âÂÂNOâ |
− | :::viii. kern_securelevel_enable= | + | :::viii. kern_securelevel_enable=âÂÂNOâ |
− | :::ix. usbd_enable= | + | :::ix. usbd_enable=âÂÂYESâ |
− | :::x. syslogd_flags= | + | :::x. syslogd_flags=âÂÂ-sâ |
− | :::xi. sendmail_enable= | + | :::xi. sendmail_enable=âÂÂNONEâ |
− | :::xii. apache22_enable= | + | :::xii. apache22_enable=âÂÂYESâ |
− | :::xiii. postgresql_enable= | + | :::xiii. postgresql_enable=âÂÂYESâ |
Line 94: | Line 95: | ||
::i. Edit /etc/ssh/sshd_config to allow root login by changing to yes and unremarking line | ::i. Edit /etc/ssh/sshd_config to allow root login by changing to yes and unremarking line | ||
− | ::e. | + | ::e. âÂÂcd /etcâ |
− | ::f. | + | ::f. âÂÂvi resolv.confâ |
:::i. domain your.domain | :::i. domain your.domain | ||
Line 113: | Line 114: | ||
:4. Install Apache | :4. Install Apache | ||
− | ::a. | + | ::a. âÂÂcd /usr/ports/www/apache22â |
− | ::b. | + | ::b. âÂÂmake && make installâ (use defaults for any gui) |
− | :::c. | + | :::c. âÂÂvi usr/local/etc/apache22/httpd.confâ |
:::i. Listen IP:Port | :::i. Listen IP:Port | ||
Line 131: | Line 132: | ||
:6. Install the cpan bundle & Apache bundle | :6. Install the cpan bundle & Apache bundle | ||
− | ::a. | + | ::a. âÂÂperl âÂÂMCPAN âÂÂe shell; â |
− | ::b. type | + | ::b. type âÂÂnoâ |
− | ::c. | + | ::c. âÂÂinstall Bundle::CPANâ (watch error messages at end has taken as many as 7 times to get full load) |
− | ::d. | + | ::d. âÂÂreload cpanâ |
− | ::e. | + | ::e. âÂÂinstall Bundle::Apache2â |
− | ::f. | + | ::f. âÂÂquitâ |
− | :7. Install mod_perl | + | :7. Install mod_perl â first download the latest mod_perl to one of your ftp servers |
− | ::a. | + | ::a. âÂÂmkdir /home/youruserfromstep2a/programsâ |
− | ::b. | + | ::b. âÂÂcd /home/ youruserfromstep2a /programsâ |
− | ::c. | + | ::c. âÂÂftp yourftpserverâ |
− | ::d. | + | ::d. âÂÂcd filelocation â |
− | ::e. | + | ::e. âÂÂbinâ |
− | ::f. | + | ::f. âÂÂget mod_perl-2.0-current.tar.gzâ |
− | ::g. | + | ::g. âÂÂquitâ |
− | ::h. | + | ::h. âÂÂtar âÂÂxvzf mod<tab>â |
− | ::i. | + | ::i. âÂÂcd mod_perl-2.0.3â |
− | ::j. | + | ::j. âÂÂperl Makefile.PL APACHE_SRC=/usr/ports/www/apache22\ |
− | EVERYTHING= | + | EVERYTHING=1â (apxs source is /usr/local/sbin/apxs) |
− | ::k. | + | ::k. âÂÂmake && make installâ |
− | ::l. | + | ::l. âÂÂ/usr/local/sbin/apxs âÂÂq LIBEXECDIRâ (should be /usr/local/libexec/apache22, so line would be libexec/apache22/mod_perl.so) |
− | ::m. add to httpd.conf | + | ::m. add to httpd.conf â LoadModule perl_module results of above/mod_perl.so (at bottom of LoadModule section) |
− | ::n. | + | ::n. âÂÂapachectl restartâ |
:8. Install OpenSSH (use defaults on GUI) | :8. Install OpenSSH (use defaults on GUI) | ||
− | ::a. | + | ::a. âÂÂcd /usr/ports/security/opensshâ |
− | ::b. | + | ::b. âÂÂmake && make install && rebootâ |
:9. Install rsync: (use defaults on GUI) | :9. Install rsync: (use defaults on GUI) | ||
− | ::a. | + | ::a. âÂÂcd /usr/ports/net/rsyncâ |
− | ::b. | + | ::b. âÂÂmake && make install && rebootâ |
:10. Install Postgresql (use defaults on GUI) | :10. Install Postgresql (use defaults on GUI) | ||
− | ::a. | + | ::a. âÂÂcd /usr/ports/databases/postgresql81-serverâ |
− | ::b. | + | ::b. âÂÂmake && make installâ |
− | ::c. Initialize postgresql -- | + | ::c. Initialize postgresql -- âÂÂ/usr/local/etc/rc.d/postgresql initdbâ (you should see it build the database files needed here, if it doesnâÂÂt, then the postgresql install was bad and you need to restart the build process) |
::d. Configure for OID | ::d. Configure for OID | ||
− | :::i. | + | :::i. âÂÂvi /usr/local/pgsql/data/postgresql.confâ |
:::ii. enable oid by changing to yes and unremarking line | :::ii. enable oid by changing to yes and unremarking line | ||
Line 205: | Line 206: | ||
:11. Install teTex | :11. Install teTex | ||
− | ::a. | + | ::a. âÂÂcd /usr/ports/print/teTeXâ |
− | ::b. | + | ::b. âÂÂmake && make installâ |
− | :12. Install the required perl modules (At this point I recommend two interfaces into the box. I usually use the terminal and an SSH session. If a module errors out, go to a different screen and force the install before proceeding to the next item. | + | :12. Install the required perl modules (At this point I recommend two interfaces into the box. I usually use the terminal and an SSH session. If a module errors out, go to a different screen and force the install before proceeding to the next item. IâÂÂve found the order these modules load seems to matter. You must cd to /root/.cpan/build and find the package directory and cd into it to run the manual make. First run âÂÂperl Makefile.PLâÂÂ, then âÂÂmakeâ and finally âÂÂmake installâÂÂ) |
− | ::a. | + | ::a. âÂÂperl âÂÂMCPAN âÂÂe shell;â |
− | ::b. type | + | ::b. type âÂÂnoâ |
::c. install MIME::Base64 | ::c. install MIME::Base64 | ||
Line 357: | Line 358: | ||
::uuu. install HTTP::BrowserDetect | ::uuu. install HTTP::BrowserDetect | ||
− | ::vvv. | + | ::vvv. âÂÂquitâ |
Line 367: | Line 368: | ||
:1. Get Freeside ready to install - Download the latest freeside tarball to your ftp server | :1. Get Freeside ready to install - Download the latest freeside tarball to your ftp server | ||
− | ::a. | + | ::a. âÂÂcd /home/ youruserfromstep2a /programsâ |
− | ::b. | + | ::b. âÂÂftp yourftpserverâ (log in) |
− | ::c. | + | ::c. âÂÂcd filelocation â |
− | ::d. | + | ::d. âÂÂbinâ |
− | ::e. | + | ::e. âÂÂget free<tab>â |
− | ::f. | + | ::f. âÂÂget Makefileâ |
− | ::g. | + | ::g. âÂÂquitâ |
− | ::h. | + | ::h. âÂÂtar âÂÂxvzf free<tab>â |
− | ::i. | + | ::i. âÂÂcp Makefile ./freeside/Makefileâ |
− | ::j. | + | ::j. âÂÂcd free<tab>â |
− | :2. adduser freeside (start with | + | :2. adduser freeside (start with âÂÂadduserâ and answer questions, pwd yourpasswdhere) |
− | :3. | + | :3. âÂÂmkdir /usr/local/www/apache22/data/freesideâ |
− | :4. | + | :4. âÂÂchown freeside:www /usr/local/www/apache22/data/freesideâ |
:5. Allow the freeside user full access to the freeside database | :5. Allow the freeside user full access to the freeside database | ||
Line 397: | Line 398: | ||
::a. su pgsql | ::a. su pgsql | ||
− | ::b. createuser | + | ::b. createuser âÂÂP freeside |
::c. set password (yourpasswdhere) | ::c. set password (yourpasswdhere) | ||
Line 411: | Line 412: | ||
::a. su freeside | ::a. su freeside | ||
− | ::b. createdb | + | ::b. createdb âÂÂE sql_ascii freeside |
:7. Build and install the Perl modules | :7. Build and install the Perl modules | ||
Line 420: | Line 421: | ||
::c. make install-perl-modules | ::c. make install-perl-modules | ||
− | :8. Create config files: | + | :8. Create config files: âÂÂmake create-configâ |
:9. Edit /usr/local/etc/apache22/httpd.conf | :9. Edit /usr/local/etc/apache22/httpd.conf | ||
Line 428: | Line 429: | ||
:10. apachectl restart | :10. apachectl restart | ||
− | :11. ps | + | :11. ps âÂÂaux (make sure apache now running as freeside) |
− | :12. | + | :12. âÂÂmake install-docsâ |
:13. Edit the httpd.conf for freeside | :13. Edit the httpd.conf for freeside | ||
Line 435: | Line 436: | ||
::a. Edit /usr/local/etc/apache22/httpd.conf | ::a. Edit /usr/local/etc/apache22/httpd.conf | ||
− | ::b. At bottom add | + | ::b. At bottom add âÂÂInclude etc/apache22/Includes/â |
Line 442: | Line 443: | ||
::a. su freeside | ::a. su freeside | ||
− | ::b. freeside-setup | + | ::b. freeside-setup âÂÂd your.domain |
Line 450: | Line 451: | ||
::a. su freeside | ::a. su freeside | ||
− | ::b. freeside-adduser | + | ::b. freeside-adduser âÂÂg 1 fs_queue |
− | ::c. freeside-adduser | + | ::c. freeside-adduser âÂÂg 1 fs_daily |
− | ::d. freeside-adduser | + | ::d. freeside-adduser âÂÂg 1 fs_selfservice |
:16. Correct access_user.pm | :16. Correct access_user.pm | ||
Line 460: | Line 461: | ||
::a. edit /usr/local/lib/perl5/site_perl/5.8.8/FS/access_user.pm | ::a. edit /usr/local/lib/perl5/site_perl/5.8.8/FS/access_user.pm | ||
− | ::b. change the call to $htpasswd_file to | + | ::b. change the call to $htpasswd_file to âÂÂ/usr/local/etc/freeside/htpasswdâ instead of just âÂÂhtpasswdâ (about line 18) |
::c. change the system('htpasswd', '-b', @_, to system('/usr/local/sbin/htpasswd', '-b', @_, (about line 130) | ::c. change the system('htpasswd', '-b', @_, to system('/usr/local/sbin/htpasswd', '-b', @_, (about line 130) | ||
Line 468: | Line 469: | ||
::a. su freeside | ::a. su freeside | ||
− | ::b. freeside-adduser | + | ::b. freeside-adduser âÂÂg 1 yournewuser |
::c. htpasswd /usr/local/etc/freeside/htpasswd yournewuser | ::c. htpasswd /usr/local/etc/freeside/htpasswd yournewuser |
Revision as of 22:25, 19 December 2008
cabasacacelr orrelchichip Setting up a FreeBSD server for Freeside
- 1. Install FreeBSD. - Do the complete install from CD.
- a. Insert Freebsd CD & boot to CD
- b. Select âÂÂCustomâÂÂ
- c. Select âÂÂPartitionâÂÂ
- d. Use âÂÂDâ to Delete any existing partitions
- e. Use âÂÂCâ to Create slices (this is just the drive, use one slice)
- f. Use âÂÂQâ to save & exit
- g. Select âÂÂBootMgrâÂÂ
- h. Select âÂÂLabelâÂÂ
- i. Use âÂÂCâ to create partitions
- j. Setup swap partition first (2 x RAM) â use âÂÂmâ at end of number to denote mb
- k. Select âÂÂswapâ as partition type
- l. Setup other partitions â mount point for OS is âÂÂ/âÂÂ
- m. Use âÂÂQâ to save & finish
- n. Select âÂÂDistributionsâÂÂ
- o. Select âÂÂAllâÂÂ
- p. Select âÂÂYesâÂÂ
- q. Select âÂÂExitâÂÂ
- r. Select âÂÂMediaâÂÂ
- s. Select âÂÂCD/DVDâÂÂ
- t. Select âÂÂCommitâÂÂ
- u. Select âÂÂYesâÂÂ
- v. Select âÂÂNoâÂÂ
- w. Select âÂÂExitâÂÂ
- x. Select âÂÂXâÂÂ
- y. Select âÂÂYesâ & remove CD
- 2. Configure the server
- a. adduser âÂÂadduserâ (set up a user for use later so you donâÂÂt have to log into root everytime)
- b. set root password âÂÂpasswdâÂÂ
- c. Edit the rc.conf in etc
- i. hostname=âÂÂboxname.your.domainâÂÂ
- ii. ifconfig_fxp0=âÂÂyour.ip.here netmask your.subnet.hereâÂÂ
- iii. defaultrouter=âÂÂyour.gateway.ip.hereâÂÂ
- iv. inetd_enable=âÂÂYESâÂÂ
- v. sshd_enable=âÂÂYESâÂÂ
- vi. keyrate=âÂÂfastâÂÂ
- vii. update_motd=âÂÂNOâÂÂ
- viii. kern_securelevel_enable=âÂÂNOâÂÂ
- ix. usbd_enable=âÂÂYESâÂÂ
- x. syslogd_flags=âÂÂ-sâÂÂ
- xi. sendmail_enable=âÂÂNONEâÂÂ
- xii. apache22_enable=âÂÂYESâÂÂ
- xiii. postgresql_enable=âÂÂYESâÂÂ
- d. Enable root ssh logon
- i. Edit /etc/ssh/sshd_config to allow root login by changing to yes and unremarking line
- e. âÂÂcd /etcâÂÂ
- f. âÂÂvi resolv.confâÂÂ
- i. domain your.domain
- ii. nameserver your.dns.ip.here
- g. reboot
- h. portsnap fetch
- i. portsnap extract
- 3. Perl is already installed with Freebsd, use existing install (Satisfies Freeside install step 1.) However, make sure you're running Perl v5.8.8 'perl -v' otherwise you'll have some syntax errors later on.
- 4. Install Apache
- a. âÂÂcd /usr/ports/www/apache22âÂÂ
- b. âÂÂmake && make installâ (use defaults for any gui)
- c. âÂÂvi usr/local/etc/apache22/httpd.confâÂÂ
- i. Listen IP:Port
- ii. ServerAdmin youremail@yourdomain.com
- iii. ServerName your.servername:80
- iv. Reboot
- 5. Step two of Freeside install instructions almost completed, set up ssl later.
- 6. Install the cpan bundle & Apache bundle
- a. âÂÂperl âÂÂMCPAN âÂÂe shell; âÂÂ
- b. type âÂÂnoâÂÂ
- c. âÂÂinstall Bundle::CPANâ (watch error messages at end has taken as many as 7 times to get full load)
- d. âÂÂreload cpanâÂÂ
- e. âÂÂinstall Bundle::Apache2âÂÂ
- f. âÂÂquitâÂÂ
- 7. Install mod_perl â first download the latest mod_perl to one of your ftp servers
- a. âÂÂmkdir /home/youruserfromstep2a/programsâÂÂ
- b. âÂÂcd /home/ youruserfromstep2a /programsâÂÂ
- c. âÂÂftp yourftpserverâÂÂ
- d. âÂÂcd filelocation âÂÂ
- e. âÂÂbinâÂÂ
- f. âÂÂget mod_perl-2.0-current.tar.gzâÂÂ
- g. âÂÂquitâÂÂ
- h. âÂÂtar âÂÂxvzf mod<tab>âÂÂ
- i. âÂÂcd mod_perl-2.0.3âÂÂ
- j. âÂÂperl Makefile.PL APACHE_SRC=/usr/ports/www/apache22\
EVERYTHING=1â (apxs source is /usr/local/sbin/apxs)
- k. âÂÂmake && make installâÂÂ
- l. âÂÂ/usr/local/sbin/apxs âÂÂq LIBEXECDIRâ (should be /usr/local/libexec/apache22, so line would be libexec/apache22/mod_perl.so)
- m. add to httpd.conf â LoadModule perl_module results of above/mod_perl.so (at bottom of LoadModule section)
- n. âÂÂapachectl restartâÂÂ
- 8. Install OpenSSH (use defaults on GUI)
- a. âÂÂcd /usr/ports/security/opensshâÂÂ
- b. âÂÂmake && make install && rebootâÂÂ
- 9. Install rsync: (use defaults on GUI)
- a. âÂÂcd /usr/ports/net/rsyncâÂÂ
- b. âÂÂmake && make install && rebootâÂÂ
- 10. Install Postgresql (use defaults on GUI)
- a. âÂÂcd /usr/ports/databases/postgresql81-serverâÂÂ
- b. âÂÂmake && make installâÂÂ
- c. Initialize postgresql -- âÂÂ/usr/local/etc/rc.d/postgresql initdbâ (you should see it build the database files needed here, if it doesnâÂÂt, then the postgresql install was bad and you need to restart the build process)
- d. Configure for OID
- i. âÂÂvi /usr/local/pgsql/data/postgresql.confâÂÂ
- ii. enable oid by changing to yes and unremarking line
- e. reboot
- 11. Install teTex
- a. âÂÂcd /usr/ports/print/teTeXâÂÂ
- b. âÂÂmake && make installâÂÂ
- 12. Install the required perl modules (At this point I recommend two interfaces into the box. I usually use the terminal and an SSH session. If a module errors out, go to a different screen and force the install before proceeding to the next item. IâÂÂve found the order these modules load seems to matter. You must cd to /root/.cpan/build and find the package directory and cd into it to run the manual make. First run âÂÂperl Makefile.PLâÂÂ, then âÂÂmakeâ and finally âÂÂmake installâÂÂ)
- a. âÂÂperl âÂÂMCPAN âÂÂe shell;âÂÂ
- b. type âÂÂnoâÂÂ
- c. install MIME::Base64
- d. install Digest::MD5
- e. install URI
- f. install HTML::Tagset
- g. install HTML::Parser
- h. i /libnet/
- i. install (full name of latest version of libnet)
- j. install Locale::Country
- k. install Net::Whois::Raw
- l. install libwww
- m. install Bundle::LWP
- n. install Business::CreditCard
- o. i /MailTools/
- p. install (full name of latest version of mailtools)
- q. i /TimeDate/
- r. Install (full name of latest version of TimeDate)
- s. install DateManip
- t. install File::CounterFile
- u. install FreezeThaw
- v. install String::Approx
- w. install Text::Template
- x. install DBI
- y. install DBD::Pg
- z. install DBIx::DBSchema
- aa. install Net::SSH
- bb. install String::ShellQuote
- cc. i /IVAN/Net/
- dd. install (full name of latest version of NET-SCP)
- ee. install HTML::Mason (apache src is /usr/ports/www/apache22)
- ff. install Tie::IxHash
- gg. install Time::Duration
- hh. install HTML::Widgets::SelectLayers
- ii. install Storable
- jj. install Cache::Cache
- kk. install NetAddr::IP
- ll. install Chart::Base
- mm. install Crypt::PasswdMD5
- nn. install Locale::SubCountry
- oo. install JavaScript::RPC
- pp. install Frontier::RPC2
- qq. install Text::CSV_XS
- rr. install Spreadsheet::WriteExcel
- ss. install IO::Stringy
- tt. install MIME::Tools
- uu. install Apache::Session
- vv. install HTML::TreeBuilder
- ww. install HTML::FormatText
- xx. install Test::Inline
- yy. install Class::ReturnValue
- zz. install DBIx::SearchBuilder
- aaa. install Log::Dispatch
- bbb. install Locale::Maketext::Lexicon
- ccc. install Locale::Maketext::Fuzzy
- ddd. install Text::Wrapper
- eee. install Time::ParseDate
- fff. install Term::ReadKey
- ggg. install Text::Autoformat
- hhh. install Text::Quoted
- iii. install Regexp::Common
- jjj. install HTML::Scrubber
- kkk. install Tree::Simple
- lll. install JSON
- mmm. install GD
- nnn. install DateTime::Format::Strptime
- ooo. install IPC::Run3
- ppp. install Color::Scheme
- qqq. install Data::Table
- rrr. install Lingua::EN::NameParse
- sss. install Lingua::EN::Inflect
- ttt. install Apache::DBI
- uuu. install HTTP::BrowserDetect
- vvv. âÂÂquitâÂÂ
Setting up a FreeSide server.
- 1. Get Freeside ready to install - Download the latest freeside tarball to your ftp server
- a. âÂÂcd /home/ youruserfromstep2a /programsâÂÂ
- b. âÂÂftp yourftpserverâ (log in)
- c. âÂÂcd filelocation âÂÂ
- d. âÂÂbinâÂÂ
- e. âÂÂget free<tab>âÂÂ
- f. âÂÂget MakefileâÂÂ
- g. âÂÂquitâÂÂ
- h. âÂÂtar âÂÂxvzf free<tab>âÂÂ
- i. âÂÂcp Makefile ./freeside/MakefileâÂÂ
- j. âÂÂcd free<tab>âÂÂ
- 2. adduser freeside (start with âÂÂadduserâ and answer questions, pwd yourpasswdhere)
- 3. âÂÂmkdir /usr/local/www/apache22/data/freesideâÂÂ
- 4. âÂÂchown freeside:www /usr/local/www/apache22/data/freesideâÂÂ
- 5. Allow the freeside user full access to the freeside database
- a. su pgsql
- b. createuser âÂÂP freeside
- c. set password (yourpasswdhere)
- d. not a superuser
- e. yes to create database
- f. no to create role
- 6. Add the freeside database
- a. su freeside
- b. createdb âÂÂE sql_ascii freeside
- 7. Build and install the Perl modules
- a. Exit all the way to root
- b. make perl-modules
- c. make install-perl-modules
- 8. Create config files: âÂÂmake create-configâÂÂ
- 9. Edit /usr/local/etc/apache22/httpd.conf
- a. Change user & group to freeside
- 10. apachectl restart
- 11. ps âÂÂaux (make sure apache now running as freeside)
- 12. âÂÂmake install-docsâÂÂ
- 13. Edit the httpd.conf for freeside
- a. Edit /usr/local/etc/apache22/httpd.conf
- b. At bottom add âÂÂInclude etc/apache22/Includes/âÂÂ
- 14. Create the database tables and initial data
- a. su freeside
- b. freeside-setup âÂÂd your.domain
- 15. Create the Freeside system users
- a. su freeside
- b. freeside-adduser âÂÂg 1 fs_queue
- c. freeside-adduser âÂÂg 1 fs_daily
- d. freeside-adduser âÂÂg 1 fs_selfservice
- 16. Correct access_user.pm
- a. edit /usr/local/lib/perl5/site_perl/5.8.8/FS/access_user.pm
- b. change the call to $htpasswd_file to âÂÂ/usr/local/etc/freeside/htpasswdâ instead of just âÂÂhtpasswdâ (about line 18)
- c. change the system('htpasswd', '-b', @_, to system('/usr/local/sbin/htpasswd', '-b', @_, (about line 130)
- 17. Create one or more Freeside users
- a. su freeside
- b. freeside-adduser âÂÂg 1 yournewuser
- c. htpasswd /usr/local/etc/freeside/htpasswd yournewuser
- 18. Reboot
- 19. Get the correct httpd.conf with all the RT info
- a. Edit the /usr/local/etc/apache22/httpd.conf file
- b. Add the following near the end
- <Directory /usr/local/www/apache22/data/freeside>
- <Files ~ "\.(cgi|html)">
- AddHandler perl-script .cgi .html
- PerlHandler HTML::Mason
- </Files>
- AuthName freeside
- AuthType Basic
- AuthUserFile /usr/local/etc/freeside/htpasswd
- Require valid-user
- </Directory>
- <Perl>
- require "/usr/local/etc/freeside/handler.pl";
- </Perl>
- <Directory /usr/local/www/apache22/data/freeside/rt/NoAuth>
- <Limit GET POST>
- allow from all
- Satisfy Any
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Limit>
- </Directory>
- <Directory /usr/local/www/apache22/data/freeside/rt/REST/1.0/NoAuth>
- <Limit GET POST>
- allow from all
- Satisfy any
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Limit>
- </Directory>
- <DirectoryMatch "^%/usr/local/www/apache22/data/freeside/rt/.*NoAuth/images">
- SetHandler None
- </DirectoryMatch>
- <Directory /usr/local/www/apache22/data/freeside/rt/Ticket/Attachment>
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Directory>
- <Directory /usr/local/www/apache22/data/freeside/rt/Search>
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Directory>
- c. Immediately after the LoadModules, add
- PerlModule HTML::Mason
- 20. adduser rt (password yourpasswordforrt)
- 21. cd /home/ youruserfromstep2a /programs/freeside
- 22. Install & setup RT
- a. Make configure-rt
- b. Make create-rt
- c. Make install-rt
- 23. Set freeside to run on startup
- a. su root
- b. make install-init
- 24. Reboot
- 25. Log into Freeside
- 26. Go to Ticketing main
- 27. Go back to billing main
- 28. Add employee root
- 29. reboot
- 30. log back into freeside as root
- 31. Go to ticketing main, Configuration, Global, User Rights, Give your uid superuser rights
- 32. Go back to billing main and disable the root user