|
Web Server Disaster Recovery Plan
|
bet | 2/5 | Sana | 29.03.2021 | Hajmi | 43 Kb. | | #13673 |
Script and database: perl 5.8.5, php 4.3.9, mysql 4.1.12
Administration: webmin 1.250, mysqladmin 4.1.12, mysql-administrator 1.0.22
Run up2date to update all software including kernel (up2date -u; up2date -f kernel*)
Change Snook Samba access to read-only; inform staff not to make any changes
Restore and test staff permissions to read and write files
Passwords and groups (passwd, group, shadow and gshadow in /etc/)
Samba (/etc/samba/smb.conf; restart using service smb restart)
Restore access to static files
Create logical volumes for web content directories, if needed (see above)
Restore all web content in /var/www/ and /usr/local/ (using Arkeia or tar -czf/-xzf)
Restore all log files in /var/log/httpd/ for accurate Web server statistics
Prepare and test hosts, IP numbers and interfaces
snook.library.colostate.edu=129.82.28.131=lib.colostate.edu=eth0
digital.library.colostate.edu=129.82.28.117= eth0:2 (CONTENTdm)
snook2=157, digital3=159=eth0:1, digital2=114 (Vulture) for testing
Create virtual hosts in /etc/httpd/conf/httpd.conf
Directories (lib.colostate.edu=/var/www/html, digital=/usr/local/Content)
Configure for SSIs (AddType, AddHandler, XBitHack)
Configure interfaces in /etc/sysconfig/network-scripts/ifcfg-eth0:*
Restart interfaces and then Apache (e.g. ifdown eth0; ifup eth0; apachectl restart)
Restore and test access to scripts, databases and dynamic files
CGI (in httpd.conf; test by running /cgi-bin/test.pl)
snook/cgi-bin/=/var/www/cgi-bin/, digital/cgi-bin=/usr/local/Content/cgi-bin
E-mail forms based on FormHandler.cgi (test by using /generalinfo/website.html)
CONTENTdm (/usr/local/Content, /usr/lib/php4, /usr/lib/libdm*, /usr/lib/libawj2k*, chcon, dmscripts, see http://lib.colostate.edu/lts/gvogl/content.html#tasks)
mysql database (/var/lib/mysql/: agbib, caespi, mnogosearch, mt, webpages, wildlife)
mysqldump -u root -p --opt db_name | mysql --host=remote_host -C db_name
mysqldump -u root -p --all-databases --flush-logs > /var/all-databases.sql
mysql -u root -p < /var/all-databases.sql; service mysqld restart
or lock and flush buffers; tar -czf mysql.tgz /var/lib/mysql; tar –xzf mysql.tgz
mnoGoSearch (install mnogosearch 3.2.33 (3.2.37 gives an error), xpdf and catdoc; restore etc/ and sbin/ in /usr/local/mnogosearch/ and cron job in /var/spool/cron/root)
Test Movable Type blogs (/var/www/cgi-bin/mt and /var/www/html/staff/weblogs)
|
| |