cPanel account restore

root@lborg [/home]# /scripts/restorepkg linuxorg
It looks like you are trying to restore a backup for the user “linuxorg”.
cPanel restorepkg version:
Restricted: no
Allow Reseller Privileges: no
Searching for “linuxorg”’s account archive …
The system will attempt to restore the archive file “/home/cpmove-linuxorg.tar.gz”.
The “Reseller” restore module has the following areas disabled by request: “all”
ArchiveManager
Preparing archive for restoration …
Calculating disk space needed …
Done.
Target “/home/cpanelpkgrestore.TMP.work.m0CRwoeLObFTyoif/unsafe_to_read_archive” on host “host.linuxbeginners.org” has 270.88 GB free and requires at least 1.99 GB free, which includes space for temporary files.
The tar archive extraction produced warnings: /bin/gtar: Skipping to next header
/bin/gtar: Exiting with failure status due to previous errors
This archive’s payload appears to be in the archive’s “cpmove-linuxorg” directory.
ArchiveManager
The system successfully prepared the archive for restoration.
PreRestoreActions
PreRestoreActions
Account
Force Mode: no
Dedicated IP Address: no
Checking input data…
…Done
Validating system setup…
…Done
Rebuilding IP Pool…
…Done
Validating IP…
…Done
Validating Username…
…Done
Validating Contact Email…
…Done
Checking for database conflicts…
…Done
WWWAcct 12.6.0 (c) 2014 cPanel, Inc….
…Done
Running pre creation script (/usr/local/cpanel/scripts/prewwwacct)…
…Done
Adding User…
/usr/sbin/nscd: nscd not running!
…Done
Adding Entries to userdata…
…Done
Updating the userdata cache…
…Done
Setting up Mail & Local Domains…
…Done
Configuring DNS…
…Done
Updating Authentication Databases…
…Done
Adding Entries to httpd.conf…
…Done
Restarting apache…
…Done
Setting passwords…
…Done
Updating the dedicated IP address usage cache…
…Done
Verifying MX Records and Setting up Databases…
…Done
Setting up Proxy Subdomains…
…Done
Sending Account Information…
info [restorepkg] wwwacct Notification => admin@linuxbeginners.org via EMAIL [level => 3]
…Done
Running post creation scripts (/usr/local/cpanel/scripts/legacypostwwwacct, /usr/local/cpanel/scripts/postwwwacct, /usr/local/cpanel/scripts/postwwwacctuser)…
…Done
Setting up Domain Pointers…
…Done
Setting Reseller Privs…
…Done
Account Creation Complete!!!…
…Done
Account
Account created
CpUser
Restoring cPanel user file.
Updating Caches …
CpUser
CpUser data restored
IPAddress
IPAddress
Homedir
Restoring Homedir…
Homedir
Homedir restored
Package
Package
The package exists on the system.
FeatureList
FeatureList
Feature list exists.
Domains
Retrieving and sanitizing main userdata …
Parsing domain databases …
…Subdomains…
…ParkedDomains…
…AddonDomains…
Restoring Domains …
Domains
Domains restored
OldHomedirs
Linking old home directories
OldHomedirs
DKIM
DKIM
DKIM restored
DigestShadow
DigestShadow
Reseller
Reseller
The “Reseller” restore module has been skipped because it was disabled by request.
Shell
Restoring shell
The user’s shell is already set to “/usr/local/cpanel/bin/noshell”.
Shell
Horde
Restoring Horde preferences (if any)
Horde
CustomLocale
CustomLocale
OK
BackupConfig
Restoring backup config …
Updated backup config for “linuxorg”.
Restoring legacy backup config …
Updated legacy backup config for “linuxorg”.
BackupConfig
Password
Restoring password …
Password for “linuxorg” has been changed.
Password
MailRouting
Update mail routing
LOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for linuxorg.com’s mail.This configuration has been automatically detected based on your mx entries.
MailRouting
userdata
Restoring userdata…
Restoring userdata for “linuxorg.com” …
userdata
VhostIncludes
Restoring custom virtualhost templates…
VhostIncludes
NobodyFiles
NobodyFiles
Counter
Restoring Counter Data
Counter
Tomcat
Tomcat
Mail
Restoring Mail files
Mail
SSL
SSL
Logaholic
Logaholic
MailFix
Fixing mail permissions
Converting to maildir if needed
MailFix
Mysql
Preparing MySQL restore …
Databases owned by “linuxorg” will be overwritten on conflict.
Restoring MySQL databases
Restoring the database “linuxorg_db” as “linuxorg_db” …
The system has created a new database named “linuxorg_db”.
Granting “linuxorg” access to “linuxorg_db” with temporary password …
Connecting to MySQL server as “linuxorg” in order to restore “linuxorg_db”.
Restoring database data for “linuxorg_db”.
The system has restored the contents of the database “linuxorg_db”.
Restoring MySQL database mappings
Restoring MySQL privileges
Database users owned by “linuxorg” will be overwritten on conflict.
Restoring MySQL grants
info [restorepkg] Creating MySQL virtual user linuxorg_dbuser for user linuxorg
Restoring MySQL access hosts
Storing MySQL Grants
Mysql
FileProtect
FileProtect
WebDiskHomedir
WebDiskHomedir
Roundcube
Roundcube
Cron
Cron
No crontab
BandwidthData
Restoring Bandwidth Data
BandwidthData
Postgres
Preparing PostgreSQL restore …
This system does not have PostgreSQL.
Postgres
Mailman
Restoring Mailman lists
Mailman
Mailman Restored
Unsuspend
Unsuspending .htaccess files for domains linuxorg.com.
Unsuspend
PublicHtmlSymlinks
PublicHtmlSymlinks
Ftp
Restoring ftp password file
Resyncing FTP Passwords
Updating FTP passwords for linuxorg
FTP password files updated.
FTP vhost passwords synced
Ftp
Logs
Logs
Htaccess
Htaccess
No need to update htaccess files.
ZoneFile
Restoring DNS zones
Restoring zone: linuxorg.com.db
Changed all instances of [198.20.244.233] -> [198.50.200.75] in linuxorg.com
Zone updates: linuxorg.com
ZoneFile
SPF
Updating SPF Records
SPF
ProxySubdomains
ProxySubdomains
PostRestoreActions
Updating Caches …
Updating Nameserver IP Address Report
Refreshing vhosts and restarting apache
PostRestoreActions
Quota
Restoring quota
No filesystems with quota detected.
Quota
Warning: “The tar archive extraction produced warnings: /bin/gtar: Skipping to next header
/bin/gtar: Exiting with failure status due to previous errors
” (from ArchiveManager’s function _extract_tarball_to_dir() at line 147).
Account Restored

cPanel default service status chkconfig

cPanel, the leading standalone hosting platform used as an industry standard nowadays, have been making the lives of web hosting companies, re-sellers, website owners, and its many others users simpler and more convenient. Its major product, WHM/cPanel, is currently the most utilized platform by almost all hosting providers, all thanks to the kind of flexibility, manageability, and customization it offers.
You can check the cPanel default service status with chkconfig command and it will give you all the service status in the server. In the WHM Manager also there is option to check the service status.

root@host [~]# chkconfig --list
 atd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
 bandmin 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 cpanel 0:off 1:off 2:off 3:on 4:off 5:on 6:off
 cpipv6 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 csf 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 dovecot 0:off 1:off 2:off 3:on 4:off 5:on 6:off
 exim 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 fastmail 0:off 1:off 2:off 3:on 4:on 5:on 6:off
 filelimits 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 htcacheclean 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
 ip6tables 0:off 1:off 2:on 3:off 4:on 5:on 6:off
 ipaliases 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 lfd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 modules_dep 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 named 0:off 1:off 2:off 3:on 4:off 5:on 6:off
 netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 netfs 0:off 1:off 2:off 3:off 4:on 5:on 6:off
 network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 nmb 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 portreserve 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 pure-ftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 quota_nld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 ror 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 rpcbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 snmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 snmptrapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off
 udev-post 0:off 1:on 2:on 3:off 4:on 5:on 6:off
 winbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
 xinetd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

cPanel account Termination summery

In this article i will cover the basics of using the cPanel account termination functions in WHM. The following is the process flow of an account termination in cPanel Account
Account Removal Status: ok (linuxorg account removed)
Running pre removal script (/usr/local/cpanel/scripts/prekillacct)……Done
Collecting Domain Name and IP…User: linuxorg
Domain: linuxbeginners.org
…Done
Locking account and setting shell to nologin…Locking password for user linuxorg.
passwd: Success
…Done
Killing all processes owned by user……Done
Removing Sessions………Done
Removing Suspended Info………Done
Removing Web Logs……Done
Removing Bandwidth Files……Done
Removing Email Sending Limits Cache……Done
Removing DKIM keys……Done
Removing Crontab……Done
Removing HTTP Virtual Hosts…Removed the following non-SSL virtual hosts: linuxbeginners.org
Removed the following SSL virtual hosts:
…Done
Removing ftp Virtual Hosts……Done
Removing user’s web content directory symlinks……Done
Removing MySQL databases and users…
Listing MySQL dbs for removal….
Fetching MySQL DB Owner information….
Revoking MySQL Privs…….Done
Removing MySQL horde data……Done
Removing PostgreSQL databases and users……Done
Removing User & Group…….Success…Done
Removing DNS Entries…linuxbeginners.org => deleted from host.
…Done
Removing Email Setup…Removing /etc/valiases/linuxbeginners.org
…Done
Removing mailman lists……Done
Updating Databases……Done
Removing bandwidth limits……Done
Removing Counter Data……Done
Adding IP back to the IP address pool…System has 1 free ip….Done
Removing user’s cPanel Databases & Updating……Done
Reloading Services……Done
Removing mail and service configs… …Done
Removing Logaholic Webstats…Id: TQ:TaskQueue:15 …Done
Sending Contacts……Done
Updating internal databases…Updating FTP passwords for linuxorg
Purging ftp user linuxorg
FTP password files updated.
FTP vhost passwords synced…Done
Running post removal scripts (/usr/local/cpanel/scripts/legacypostkillacct, /usr/local/cpanel/scripts/postkillacct)……Done
Account Removal Complete!!!…linuxorg account removed…Done