Restore Multiple cPanel Backups From SSH
From Terminal in cPanel or from an SSH session as root (or an account with backup restoring privileges), navigate to the folder the cPanel backup files are stored. From that …
cPanel Administration Tips & Tricks
From Terminal in cPanel or from an SSH session as root (or an account with backup restoring privileges), navigate to the folder the cPanel backup files are stored. From that …
Is your cPanel server running out of space? Need to find out where the usage is coming from? Finding the largest folder is as easy as running the following simply …
Need to find out how many inodes each user is using on your cPanel server? Simply run the following command from SSH: cd /home echo "Inode usage for: $(pwd)" ; …
If you find you have a lot of users with large amounts of files in their Trash in cPanel, you can run the following command from SSH to delete them …
Need to find and remove a particular file and/or folder and know the name, but not the location? Use the following command to find and remove it!: find . -name …
cPanel All cPanel logs are located in the folder: /usr/local/cpanel/logs The access_log contains all traffic to WHM, cPanel, and Webmail: /usr/local/cpanel/logs/access_log The error_log contains all errors when accessing a cPanel related …
How do I see which modules are currently enabled/installed for Apache? You can simply enter the following command from an SSH session to give a list of currently active Apache …
How do I manually export or "dump" a MySQL database from command line or SSH? You can dump a MySQL database to the current folder from an SSH session using …
How can I find a specific text string in a file or multiple files from an SSH session? You can use the grep command to easily find text within files. …
How do I bulk edit a DNS zone on cPanel? Changed nameserver name and need to update all the DNS zones on your cPanel server? Using the replace command from …
New to setting up cron jobs and need to know what each digit means? The following is an example of each digit and its function: * * * * …
How do I find and remove old cPanel backups? Use the following command from an SSH session to find all backups that are older than 60 days and delete them: …
How to create a cpmove file from a cPanel incremental backup? A cpmove file can be created by running the following command from an SSH session: tar -zcf /home/cpmove-<username>.tar.gz <incremental-files-path> …
How to package (make a full account backup) a cPanel account from SSH? From an SSH session, run the following command: /scripts/pkgacct <username> <destination> Where <username> is the username of …
How to reset file/folder permissions to folder to 755 and files to 644? Run the following command from an SSH session: chmod -R ugo-x,u+rwX,go+rX,go-w <path> Where <path> is the physical …