File:  [LON-CAPA] / doc / Attic / how_to_install_on_RedHat7.2.txt
Revision 1.1: download - view: text, annotated - select for diffs
Mon Feb 4 11:13:41 2002 UTC (22 years, 4 months ago) by matthew
Branches: MAIN
CVS tags: stable_2002_spring, HEAD
Step by step, cut-and-paste'able info on setting up a lon-capa system on
RedHat 7.2  More work needs to be done on this document, but hopefully it
is a good first step.

    1: $Id: how_to_install_on_RedHat7.2.txt,v 1.1 2002/02/04 11:13:41 matthew Exp $
    2: 
    3: Install RedHat 7.2 on your system.  Use a 'custom' install and include
    4: the web and sql servers along with any others you need or desire.
    5: 
    6: 1. Add the user www
    7: /usr/sbin/adduser www
    8: 
    9: 2. Determine the user id of www (needed in the next step):
   10: grep ^www /etc/passwd | cut -d':' -f3
   11: 
   12: 3. Work around authentication issues:
   13: wget http://www.wwnet.net/~janc/software/mod_auth_external-2.1.13.tar.gz
   14: tar zxvf mod_auth_external-2.1.13.tar.gz
   15: cd mod_auth_external-2.1.13/pwauth/
   16: 
   17: edit config.h and change the line:
   18: 
   19: #define SERVER_UIDS 99          /* user "nobody" */
   20: 
   21: to
   22: 
   23: #define SERVER_UIDS 666         /* user "www" */
   24: 
   25: where 666 is the number that results from step 2 above.
   26: 
   27: make
   28: cp pwauth /usr/local/sbin
   29: chmod 6755 /usr/local/sbin/pwauth
   30: 
   31: edit (creating the file) /etc/pam.d/pwauth to have the contents
   32:         auth       required     /lib/security/pam_pwdb.so shadow nullok
   33:         auth       required     /lib/security/pam_nologin.so
   34:         account    required     /lib/security/pam_pwdb.so
   35: 
   36: 4. make sure you have mod_perl and apache on your system
   37: 
   38: 5. Checkout CVS repository (I'm assuming you're already set up for cvs)
   39: cvs co loncapa 
   40: 
   41: 6. Install the needed RPMS
   42: 
   43: Needed rpms for RH7.2 install and where to get them (sort of)
   44: -------------------------------------------------------------
   45: lon-capa rpms    (install.lon-capa.org)
   46: -------------------
   47: LON-CAPA-base
   48: LON-CAPA-systemperl
   49: LON-CAPA-krb4
   50: LON-CAPA-mysql
   51: LON-CAPA-loncapaconfig
   52: LON-CAPA-barcode
   53: 
   54: rpms on rpmfind.net (only accept these versions)
   55: ------------------------------------------------
   56: ipxutils              ipxutils-2.2.0.18-6.i386.rpm    
   57: netatalk              netatalk-1.5pre6-1rh7.i386.rpm  
   58: libungif-progs        libungif-progs-4.1.0-9.i386.rpm 
   59: libgd                 libgd-1.3-4.i386.rpm            
   60: gnuplot               gnuplot-3.7.1-5.i386.rpm        
   61: 
   62: rpms on install cds or updates
   63: ------------------------------
   64: + sysreport           sysreport-1.2-1.noarch.rpm   
   65: + mars-nwe            mars-nwe-0.99pl20-6.i386.rpm 
   66: + wu-ftpd             wu-ftpd-2.6.1-20.i386.rpm    
   67: + linuxconf           linuxconf-1.25r7-3.i386.rpm  
   68: 
   69: install these all with rpm -Uvh, occasionally using --force and/or --nodeps
   70: 
   71: rpm -Uvh linuxconf-1.25r7-3.i386.rpm
   72: rpm -Uvh sysreport-1.2-1.noarch.rpm   
   73: rpm -Uvh mars-nwe-0.99pl20-6.i386.rpm 
   74: rpm -Uvh wu-ftpd-2.6.1-20.i386.rpm    
   75: rpm -Uvh ipxutils-2.2.0.18-6.i386.rpm    
   76: rpm -Uvh netatalk-1.5pre6-1rh7.i386.rpm  
   77: rpm -Uvh libungif-progs-4.1.0-9.i386.rpm 
   78: rpm -Uvh libgd-1.3-4.i386.rpm            
   79: rpm -Uvh gnuplot-3.7.1-5.i386.rpm        
   80: rpm -Uvh --force --nodeps LON-CAPA-base
   81: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-systemperl.rpm
   82: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-krb4.rpm
   83: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-mysql.rpm
   84: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-loncapaconfig.rpm
   85: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-barcode.rpm
   86: 
   87: 7. Correct some RPM errors
   88: The Perl modules installed by the systemperl rpm are not in the proper place 
   89: (the rpm was designed for 5.005 and RedHat 7.2 uses 5.6.0).
   90: cd /usr/lib/perl5/site_perl/5.005
   91: cp -R * ../5.6.0/
   92: 
   93: 8. Fix CGI::Cookie.pm
   94: 
   95: edit /usr/lib/perl5/5.6.0/CGI/Cookie.pm
   96: change the lines:
   97:     # IE requires the path and domain to be present for some reason.
   98:     $path   = CGI::url(-absolute=>1) unless defined $path;          
   99: to:
  100:     # IE requires the path and domain to be present for some reason.
  101:     ($path = $ENV{'SCRIPT_NAME'})=~s![^/]+$!! unless $path;         
  102: 
  103: 9.  update LON-CAPA-base files with CVS
  104: cd ~/loncapa
  105: cvs update -d
  106: cd loncom/build
  107: make DIST='redhat7.1' build; make DIST='redhat7.1' install
  108: 
  109: 10. Update LON-CAPA config files
  110: 
  111: httpd configuration:
  112: 
  113: cd /etc/httpd/conf
  114: cp access.conf.lpmlnew access.conf
  115: edit access.conf to reflect the correct information:
  116: 
  117: PerlSetVar       lonHostID    YOUR LON-HOST ID
  118: PerlSetVar       lonRole      library
  119: PerlSetVar       lonAdmEMail  YOUR EMAIL ADDRESS
  120: PerlSetVar       lonDefDomain YOUR DOMAIN
  121: PerlSetVar       lonLoadLim   2.0
  122: PerlSetVar       lonExpire    86400
  123: PerlSetVar       lonReceipt   A RANDOM NUMBER (REAL, NOT INTEGER)
  124: PerlSetVar       lonSqlAccess   123
  125: 
  126: Replace the capitalized text with your information
  127: 
  128: kerberos configuration
  129: 
  130: edit /etc/krb.conf to reflect your kerberos information
  131: 
  132: LON-CAPA hosts configuration:
  133: 
  134: /home/httpd/lonTabs/hosts.tab should be updated 
  135: 
  136: 11. Restart the daemons
  137: /etc/init.d/httpd restart
  138: /etc/init.d/loncontrol restart
  139: 
  140: 12. Updated documentation
  141: Please help us keep our documentation up to date!  If there is something
  142: in this document that was unclear or required further explaination, please help
  143: us help others by improving it!
  144: 
  145: 
  146: 
  147:                  SOME NOTES ON THE RPMS INSTALLED
  148: ------------------------------------------------------------------
  149: gnuplot               gnuplot-3.7.1-5.i386.rpm
  150:      USE ONLY THIS VERSION OF GNUPLOT!  Other versions may not have 
  151:      gif support compiled in and dynamically generated plots will fail!
  152: libgd                 libgd-1.3-4.i386.rpm            
  153:      Required by gnuplot

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>