Corrupt Filesystem
If anything happens to a file system, most likely the easiest thing to do is a reinstall of a clean OS. This is specifically why it is critical to have backups of all your important files. I recommend having a complete backup of you /etc directory. Obviously backup your website root directories. You may also want to backup certain folders in the /usr directory, but most will be re-installed with the clean OS. Certain files that I noticed during a recent recovery. The php.ini file in the /etc directory that points to the mysql.so php mysql interface file. Do a “yum install php-mysql” to re-install the mysql.so file, then copy over your backed-up php.ini file to the /etc directory and your ready to go with php accessible mysql databases and phpmyadmin. Dont forget to throw your backed-up databases in /var/lib/mysql and BAM, all your old databases are now back in action. Copy over your apache config. If your using C_Band bandwidth limiting, you will need to add the C_Band module to the apache modules folder for your backed-up apache configuration file to work. Copy your /etc/mail backed-up directory for your sendmail configuration, and copy your /etc/dovecot.conf file for your dovecot config. Other than a couple of other miscellaneous items, your systems should be up and running again. Ohhh, and your ftp of course, dont forget to copy your vsftpd.conf file to re-establish your ftp interface. Also, you will need to re-setup your SELinux and Firewall configuration.


