(Answer) (Category) LON-CAPA User Help : (Category) Server System Administration :
How do I SAFELY upgrade from RedHat 6.2 to RedHat 7.2?
You should only upgrade from RedHat 6.2 to RedHat 7.2 if you
are an experienced Linux System Administrator.

1. Backing up
2. Upgrade to RedHat 7.2
3. Secure your machine
4. Download stable LON-CAPA release
5. Check the status of your RPMs
6. Additional RPMs to download
7. Recheck the status of your RPMs
8. Updating your kernel
9. Install LON-CAPA
10. Set up MySQL and systemperl.

##################
# 1. Backing up. #
##################

There are two things that you must, by all costs, save.

**** All the files in the /home directory.
     (NOTE: You will not be able to save the
      /home/httpd/sockets directory)

**** Your machine's configuration.
     I recommend you print out:
     /etc/hostname
     /etc/hosts
     /etc/resolv.conf
     /etc/httpd/conf/access.conf
     /etc/httpd/conf/loncapa.conf
and any other files described at http://install.lon-capa.org/reconfig/.

############################
# 2. Upgrade to RedHat 7.2 #
############################

Here are two helpful links:
http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/install-guide/
http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/pdf/rhl-ig-x86-en-72.pdf

##########################
# 3. Secure your machine #
##########################

Do the following:
echo "ALL: PARANOID" > /etc/hosts.deny
Make any other modifications to your /etc/hosts.allow and /etc/hosts.deny.

The next goal is to update all of your
RPMs as quickly as possible (to avoid
a network break-in.  Ideally, you
would not be connected to the network
and would have downloaded/burned onto CD-R's
the contents of:
ftp://mirror.pa.msu.edu/linux/redhat/linux/updates/7.2/en/os/i386
ftp://mirror.pa.msu.edu/linux/redhat/linux/updates/7.2/en/os/i486
ftp://mirror.pa.msu.edu/linux/redhat/linux/updates/7.2/en/os/i586
ftp://mirror.pa.msu.edu/linux/redhat/linux/updates/7.2/en/os/i686
ftp://mirror.pa.msu.edu/linux/redhat/linux/updates/7.2/en/os/noarch

Otherwise, you need to first ethernet configure
your computer.

#######################################
# 4. Download stable LON-CAPA release #
#######################################

This is still done with CVS.  Please consult:
http://install.lon-capa.org/docs_old/cvsupgrade/

####################################
# 5. Check the status of your RPMs #
####################################

cd loncapa/loncom/build
perl check-rpms -ftp
mirror.pa.msu.edu/linux/redhat/linux/updates/7.2/en/os/ -d
/home/user/install --no-kernel --download
cd /home/user/install
rpm -Uvh *.rpm
should be a fairly straight shot
(you may need a few more additional RPMs from
ftp://mirror.pa.msu.edu/linux/redhat/redhat-7.2-en/os/i386/RedHat/RPMS/.)

##################################
# 6. Additional RPMs to download #
##################################

Compare the RPMs on your system (rpm -qa) with
loncapa/doc/otherfiles/rpm_list.txt

######################################
# 7. Recheck the status of your RPMs #
######################################

Recheck the status of your RPMs
one more time.

perl check-rpms -ftp
mirror.pa.msu.edu/linux/redhat/linux/updates/7.2/en/os/ -d
/home/user/install --no-kernel --download

###########################
# 8. Updating your kernel #
###########################

Follow the instructions at:
http://www.redhat.com/support/resources/howto/kernel-upgrade/

Note: If you fail with the kernel update, you will have to:
  * insert a RedHat 7.2 Disc #1
  * Type "linux rescue" at the boot prompt
  * and try to make fixes onto the filesystem

#######################
# 9. Install LON-CAPA #
######################

Please see http://install.lon-capa.org/; especially
http://install.lon-capa.org/docs_old/cvsupgrade/

The goal is to run:
make install

###################################
# 10. Set up MySQL and systemperl #
###################################

See loncapa/doc/how_to_install_on_RedHat7.2.txt
[Append to This Answer]
Previous: (Answer) Can reducing the number of servers in hosts.tab increase efficiency of my server?
Next: (Answer) RedHat 7.2 install is missing files lib_perl.so, libncurses.so, etc.
This document is: http://help.loncapa.org/cgi-bin/fom?file=144
[Search] [Appearance] [Show This Answer As Text]
This is a Faq-O-Matic 2.719.
This FAQ administered by the LON-CAPA team at MSU. Submit a help request ticket to contact us.