Category Archives: System Maintenance

Rolling Back yum Packages – CentOS Roll Back After Installation

Rolling back yum packages: http://dailypackage.fedorabook.com/index.php?/archives/17-Wednesday-Why-Repackaging-and-Rollbacks.html http://www.vincentverhagen.nl/2007/12/10/how-to-roll-back-packages-on-centos-5-rhel-5/ When you’ve installed/updates packages with yum or rpm, you can quite easily roll back the updates/installations using rpm. For this, yum and rpm need to save roll back information, which they do not do … Continue reading

Posted in Redhat / CentOS, System Maintenance | Leave a comment

LAMP Server Maintenance

Optimize tables overnight Graphs with free memory everyday (with gnuplot and/or Ganglia) clever report of the most frequent Apache errors Cronjob to check Apache and MySQL are up, otherwise start them Cronjob to check the space left Make sure you … Continue reading

Posted in LAMP Server Setup, System Maintenance | Leave a comment

Monitoring Servers

http://www.pingdom.com

Posted in System Maintenance | Leave a comment

Identify Bottleneck and Optimize Web Applications – Performance Optimization

CPU top -> for diagnosys – must be less than the number of processors profiling -> xDebug Can’t involve just one page (unless you use a very simple one, not xDebug for sure) but the all site. Maybe you don’t … Continue reading

Posted in System Administration, System Maintenance, Web Development | Leave a comment

Server Maintenance – Diagnostic

DNS Diagnostic whois (simply displays the NS servers for the domain) host -v domain.com To query NS servers: dig plancake.com displays info about A records dig plancake.com MX displays info about MX records dig @ns.123-reg.co.uk plancake.com MX to query a … Continue reading

Posted in DNS, System Maintenance | Leave a comment

LAMP Backup Script

#!/bin/bash # # my_backup.sh V1.0 # # An useful script that performs a variety of operations in order to backup different data. # It’s a good starting point for your bespoke one # Creating all the definitions datestamp=$(date +’%Y%m%d%H%M%S’) tarname=my_backup-$datestamp”.tgz” … Continue reading

Posted in LAMP Server Setup, System Maintenance | Leave a comment

Server: Setting a Firewall With Iptables

Copy the file iptables.sh in the directory /etc/init.d with these rules (but obviously you need to customize them). Make the file executable. Assuming the current run level is the second one:ln -s /etc/init.d/iptables.sh /etc/rc2.d/S97iptables Actually you should link the script … Continue reading

Posted in LAMP Server Setup, Linux, Security, System Maintenance, Web Dev Security | Leave a comment

Semi-Automatic Backup For Single Files

The backup file will be stored in the directory /var/dobackup-pool. The comment will be stored in the same directory; the filename will be the one of the backuped file plus the postfix ‘comment’. Its filename (once stored) will the the … Continue reading

Posted in System Maintenance | Leave a comment

Open Source Server Monitoring Software

MRTG

Posted in System Maintenance | Leave a comment