Archive for October, 2013

Nftables quick howto

Posted: 24th October 2013 by admin in all
Tags: , , , ,

Introduction This document is between a dirty howto and a cheat sheet. For a description of architecture and ideas behind Nftables, please read the announce of the first release of nftables. Building nftables Libraries The following libraries are needed  libmnl: git://  libnftables: git:// It is possible that your distribution already include libmnl. But it is easy […]

Linux interview questions

Posted: 21st October 2013 by admin in all
Tags: , ,

From time to time you might need to interview somebody for a Linux role. It's hard to think of good questions; you don't want to scare somebody with your questions, but you do want to know if the person is knowledgable. **** Questions for a junior. "People that use your Linux server complain it's slow. […]

Symptoms: The following error is shown when I try to export the database using PHPMyAdmin: Nginx 502 Bad Gateway   Resolution As a workaround, you may disable aps: Set apc.enabled = 0 in the /usr/local/psa/admin/conf/php.ini configuration file. Restart sw-engine: # /etc/init.d/sw-engine restart  Thats it now you able to export the DB  

Quite simple script Mod Security disable by Rule ID

Posted: 3rd October 2013 by admin in all

Script automatically add rules that were founded in error_log file Created vhost.conf file and paste on it all rules Reconfigure domain and restarting apache Run from ssh with +x chmod #!/bin/bash rm Ids echo "Which Domain to check?" read dom cat /var/www/vhosts/$dom/statistics/logs/error_log| grep -oh "\id \"[0-9]*\"" |sort| uniq |cut -d " " -f 2|cut -d"\"" […]