WordPress Developer & Linux Administrator

August, 2014

Changing the date & time of a file or files

Ever needed to quickly change the date and time of a particular file? The reasons for something like this might be endless, but a practical example might be forcing a file to copy out to another location via some automated scripts you have in place to deploy website changes, etc. I’ll be damned if I’m going to manually open, save, and close a file in order to modify its date/time stamp.

Continue Reading

cPanel shell script to pkgacct each user on a server

This script creates an extra backup of users on server with cPanel’s built-in packaging system. These are restorable backups which are basically a snapshot of any given cPanel account. When you restore, they will be perfect copies of the account as it was at the time of backup.

Continue Reading

ERROR:This RRD was created on another architecture

You will get this error during cpanel account transfer time or with cpanel package account script.

ERROR: This RRD was created on another architecture

If your old machine was 32bit arch with 32bit OS, and the new machine is 64bit with 64bit OS. then you can use rrddump and rrdrestore one can transfer RRD between architectures with ease.

Continue Reading

Get list of users that belong to cPanel reseller

Ever needed to write a script that works with all cPanel accounts that are “owned” by a specific cPanel reseller account? Me too. But I wasn’t sure how to do it.

Continue Reading