PowerDNS Cache dump in CSV Rumi, September 17, 2011 The objective is simple, a periodic cron cache dump of powerdns recursor on a setup. 1. create a shell code as below using nano- #nano /usr/local/bin/pdns-cache-dump.sh #!/bin/sh DAY=`/bin/date +%Y%m%d` TFILE="/var/log/pdns-cache/$(basename $0).$DAY.csv" rec_control dump-cache $TFILE echo "cache dump completed, dump script by rumi (hasan.emdad@mango.com.bd)" #chmod 0777 /usr/local/bin/pdns-cache-dump.sh 2. create directory to store the dump files #mkdir /var/log/pdns-cache #chown -R pdns-recursor /var/log/pdns-cache 3. Add it to CRON (you can use webmin for this) Go to Webmin's System > Schedule CRON Jobs > Create a new scheduled CRON job and add- Execute CRON as- root Active- Yes Command- /usr/local/bin/pdns-cache-dump.sh When to execute- Simple Schedule (Daily at midnight) Leave other parts as default "Save" It's done 🙂 Related Administrations Configurations (Linux) Debianpowerdns
Install PHPize on Debain-Ubuntu June 20, 2013 Just install a bunch of package- apt-get install autoconf automake libtool m4 apt-get install php5-dev apt-get install libcurl3 php5-dev libcurl4-gnutls-dev libmagic-dev apt-get install php-http make pecl install pecl_http And adding "extension=http.so" to php.ini (Normally located at /etc/php5/apache2/php.ini) Then restart Apache (sudo service apache2 restart). If in doubt, check your apache… Read More
Appliances and OS Templates June 6, 2014 For PVE & OpenVZ templates- http://openvz.org/Download/template/precreated PVE appliances- http://pve.proxmox.com/wiki/Get_Virtual_Appliances http://pve.proxmox.com/wiki/Category:Virtual_Appliances Related Read More
LAMP on Ubuntu 16.04 using Tasksel May 12, 2018 Quick Install Using Tasksel Instead of installing Apache, MySQL, and PHP separately, tasksel offers a convenient way to get a LAMP stack running quickly. Install tasksel if not already installed by default. sudo apt install tasksel Use tasksel to install the LAMP stack. sudo tasksel install lamp-server Enter the prompt… Read More