How to list Subdomains, Addon domains and Parked domains of a cPanel account via command line?

If you are a server admin and want to sort out all related accounts easily and quickly from the command line then this will be helpful for you. In a cPanel server, there is a file “main” in “/var/cpanel/userdata/$username” (where $username is the actual username) which stores all accounts details. From there you can see all the domain associated […]

Continue Reading…

Error:/etc/init.d/iptables: line 268: restorecon: command not found

Today i was getting the following error while trying to save iptables service option. Error details: [root@server]# service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not found [FAILED] To resolve this error: yum install policycoreutils The above installation will solve the error with iptables-save option. […]

Continue Reading…

ERROR: Malformed database for clamd

In cPanel server if you are getting the following error when restarting exim, then follow the steps below: # /etc/init.d/exim restart Shutting down clamd:                                       [FAILED] Shutting down exim:                                        [  OK  ] Shutting down spamd:                                       [  OK  ] Starting clamd: LibClamAV Error: cli_dbgets: Invalid data or internal buffer too small LibClamAV Error: cli_tgzload: File main.mdb not correctly loaded LibClamAV Error: Can’t […]

Continue Reading…