WordPress Developer & Linux Administrator


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

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

Clean up /etc/remotedomains using this one liner

Some times you end up with domain in /etc/remotedomains that really don’t belong there. The mailserver will realize this but because they are in that file the MTA will not except mail for that domain. This quick little one liner can be run from the command line and will help you remove the domains from /etc/remotedomains that probably don’t belong there.

Continue Reading

How to add SPF records to an existing account(s) on a cPanel server

This article will show examples of how to add SPF records automatically to an existing customer(s) on your cPanel/WHM server.

Continue Reading