Skip to main content
All Posts By

Dhillon

Move servers with Zero downtime using cloudflare

By Server Admin 2 Comments

cloudflare
(A) Few days before moving your site to the new server, implement cloudflare on your site. (i.e if you are not already using it)

http://www.cloudflare.com/

Its free and the process is pretty straightforward.

Switch to Cloudflare nameservers and wait for 2-3 days for DNS propagation.

(B) Move your site to new server.
database driven sites (wordpress, vbulletin) should be put into read only mode before moving.

(C) Update cloudflare DNS settings to reflect the IP of your new server.

After that if you do not wish to use cloudflare just update nameservers at your domain registrants but DO NOT delete domain from cloudflare

Disable error_log and access_log in Apache

By Server Admin No Comments

If you know what you are doing and have a pretty good reason to do it, this is one way to do it.


ln -fs /dev/null /etc/httpd/logs/access_log
ln -fs /dev/null /etc/httpd/logs/error_log

the command will clear the content of the files and create a junction to “/dev/null”. All further logs will be sent to blackhole (discarded).