--- doc/install/redhat7.3/install.pl 2003/01/07 20:48:53 1.17 +++ doc/install/redhat7.3/install.pl 2003/08/28 17:13:13 1.23 @@ -2,7 +2,7 @@ # The LearningOnline Network # Red Hat 7.3 installation script # -# $Id: install.pl,v 1.17 2003/01/07 20:48:53 matthew Exp $ +# $Id: install.pl,v 1.23 2003/08/28 17:13:13 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -89,6 +89,8 @@ my $test; # note: The filehandle LOG is global. open LOG,">loncapa_install.log" || die "Unable to open log file.\n"; +print LOG '$Id: install.pl,v 1.23 2003/08/28 17:13:13 matthew Exp $'."\n"; + # Some friendly subroutines sub die_if_nonempty { my ($string,$error)=@_; @@ -147,7 +149,7 @@ END print <<"END"; ******************************************************************** - Welcome to LON-CAPA 0.6.0 + Welcome to LON-CAPA This script will install the base software that LON-CAPA needs to run properly. @@ -223,7 +225,7 @@ my @misc_rpms = ( "$instdir/libcap-1.10-8.i386.rpm", ); -my $systemperl = "$instdir/LON-CAPA-systemperl-3.5-rh7.i386.rpm"; +my $systemperl = "$instdir/LON-CAPA-systemperl-3.7-rh7.i386.rpm"; ## ## Some of these rpm commands require being obnoxious (--force --nodeps) @@ -261,7 +263,8 @@ my @php_rpms = ("php-imap-4.1.2-7", "asp2php-0.76.2-1", "php-ldap-4.1.2-7", "php-devel-4.1.2-7", - "php-4.1.2-7"); + "php-4.1.2-7", + "php-pgsql-4.1.2-7"); &print_and_log("Removing php packages"); foreach my $php_rpm (@php_rpms) { @@ -274,6 +277,11 @@ foreach my $php_rpm (@php_rpms) { } } +&print_and_log("Removing mod_throttle"); +system("rpm -e `rpm -q -a | grep mod_throttle`"); +&print_and_log("Removing mod_bandwidth"); +system("rpm -e `rpm -q -a | grep mod_bandwidth`"); + ## ## Fix that stupid little sendmail bug ## @@ -361,9 +369,9 @@ print_and_log("\n"); ## Set up mysql ## print_and_log("Setting mysqld to start on boot up.\n"); -system("chkconfig --add mysqld"); -system("chkconfig mysqld on"); -&writelog(`chkconfig --list mysqld`); +system("/sbin/chkconfig --add mysqld"); +system("/sbin/chkconfig mysqld on"); +&writelog(`/sbin/chkconfig --list mysqld`); writelog("mysql links created successfully\n"); writelog(`/etc/rc.d/init.d/mysqld start`); @@ -414,10 +422,10 @@ print_and_log("\n"); ## ## Remove the firewall. ## -system("chkconfig ipchains off"); +system("/sbin/chkconfig ipchains off"); system("/etc/init.d/ipchains stop"); -system("chkconfig iptables on"); -system("/etc/init.d/iptables start"); +system("/sbin/chkconfig iptables off"); +system("/etc/init.d/iptables stop"); # Someday we will add these to /etc/sysconfig/ipchains. # "-A input -s 0/0 -d 0/0 8080 -p tcp -y -j ACCEPT", @@ -428,7 +436,7 @@ system("/etc/init.d/iptables start"); ## Set up httpd ## print_and_log("Setting httpd to start on boot up.\n"); -system("chkconfig httpd on"); +system("/sbin/chkconfig httpd on"); ## ## Copy our (probably lousy) httpd.conf to its rightful place