Location of IMAP and POP3 configuration in Cpanel
Right here: /usr/lib/courier-imap/etc/…
Right here: /usr/lib/courier-imap/etc/…
This proved to be useful in cleaning up a compromised site. List all the files created or modified within a certain time frame — in this case we are looking 30 days in the past: find . -mtime -30 -type f -print If you want to delete all files created/modified n days ago, you can […]
When cloning a Debian system, be sure to remove everything in: /etc/udev/rules.d/*persistent-net.rules This will allow the new hardware to detect properly.
Normally you would use something like this: du -k | sort -nr > sorted.txt But the output is not pretty since we don’t like counting bytes. This will sort it in human readable format: du -k | sort -nr | awk ‘ BEGIN { split(“KB,MB,GB,TB”, Units, “,”); } { u = 1; while ($1 >= […]
Determine the nature of the attack (SYN, GET, ect): netstat -nat | awk ‘{print $6}’ | sort | uniq -c The following will list all the IPs connecting to the server in order of most connections. netstat -plan|grep :80|awk {‘print $5’}|cut -d: -f 1|sort|uniq -c|sort -nk 1 We can see which domains are most active […]
A very large disk array (hardware RAID) combined with LVM (Logical Volume Management) will give you a vast amount of flexibility. Without LVM, you’ll have to reboot the entire machine to realize the new space when adding RAID members. Using LVM, you can take advantage of OLE (On Line Expansion) and expand your existing volumes […]
It actually couldn’t be easier. Before you get yourself caught up in dependency hell and start breaking all kinds of things, try the following ‘all in one’ command: /scripts/installimagemagick
If you get Invalid License File when you login to cpanel after a hostname or IP change you need to update your cpanel license file by: Login to shell and run the following from command line: /usr/local/cpanel/cpkeyclt
Work getting you down? Do what I do and listen to some internet radio without any commercials. One of the better sites I’ve come across is myfreenetradio.com http://www.MyFreeNetRadio.com
I just added an image gallery to the site. There aren’t any pics yet but hopefully I’ll get around to adding some. Here