COP 4343 Unix System Administration Unit 2: yum network access webserver
Yellowdog updater modified Based on Redhat package manager uses rpm files downloads rpm files from repositories Configuration: /etc/yum.repos.d default: retrieve mirror list from redhat.com optional: setup local fedora and fedora-updates repositories
/etc/yum.repos.d fedora.repo fedora-updates.repo baseurl=ftp://mirror.cs.fiu.edu/pub/mirrors/fedora/$releasever/$basearch/os fedora-updates.repo baseurl=ftp://mirror.cs.fiu.edu/pub/mirrors/fedora/updates/$releasever/$basearch/
Yellowdog updater modified yum check-update checks for available updates yum update updates all installed packages also: yum update yum yum install package-name installs new package
Network access Your machine will be given full Internet access if: You have installed all current patches available for your distribution You send email to request@cs.fiu.edu with Your machines IP number don’t send the root password Your machine passes a security assessment administered by SCS support personnel
Apache Webserver Install with: Configuration file: yum install httpd Configuration file: /etc/httpd/conf/httpd.conf Make part of run-level: chkconfig --add httpd chkconfig httpd on Start webserver service httpd start Configure access through firewall /etc/sysconfig/iptables
Apache Webserver /etc/httpd/conf/httpd.conf Global: Main server: Server root Interface and port Main server: User/group Admin, name Document root Userdir Directory index and access Logs Cgi handling
Apache Webserver /etc/httpd/conf/httpd.conf Virtual hosts Name Document root logs