Using Redis for WordPress Object-Cache

Sujit Kumar TechBreathe Leave a Comment

Redis Installation Add repo which maintains latest redis add-apt-repository ppa:chris-lea/redis-server Install redis-server and php-binding apt-get update apt-get install redis-server php5-redis WordPress Object Cache We are using this object-cache plugin – cd /var/www/ wget chown www-data: object-cache.php WordPress Cache Salt/Prefix Useful if you have multiple WordPress. Inside wp-config.php define(‘WP_CACHE’, true); define(‘WP_CACHE_KEY_SALT’, ‘’); Referral: EasyEngine

Survive DDOS attack with Nginx’s and fail2ban

Sujit Kumar Security, TechBreathe Leave a Comment

fail2ban Recently one among our client-server was subjected to DDOS attack. We use Nginx’s Limit Req Module and fail2ban together to thwart this attack. Installing fail2ban On Ubuntu/Debian, just run… apt-get install fail2ban Configuration There are 2 parts. First, we’d like to configure nginx to limit the amount of requests for IP addresses. Nginx will log info about banned IP into the error log. fail2ban will parse nginx …