Showing posts with label Cpanel. Show all posts
Showing posts with label Cpanel. Show all posts

June 30, 2016

August 29, 2015

How to restore Cpanel account backup

How to restore Cpanel account backup Hello, I have deleted user “xyz” from the WHM. Now I want to restore it. This account has been deleted on 2nd July 2013 and this account showing in daily, weekly and monthly backup. Daily backup updated today, monthly and weekly backup updated on 5 July 13. Now I...

Backup all cpanel accounts

UPDATE: The one-liner below still works as of 7/23/15 on CENTOS 5.8 x86_64 WHM 11.50.0 (build 27). Will be testing shortly on CENT7 To create all accounts backup on your server, execute following command  for backup in `\ls /var/cpanel/users/`; do echo /scripts/pkgacct $backup; done Run it...

August 14, 2015

NHỮNG LỆNH COMMAND HỮU ÍCH TRÊN CPANEL/WHM

Bên dưới đây là các lệnh command tự động sửa lỗi hệ thống rất hữu dụng. Giả sử như các thao tác trên SSH có lỗi nào đó xảy ra, thì các command bên dưới sẽ sửa được các lỗi đó. Thay yourdomain.com thành...

August 7, 2015

July 25, 2015

July 22, 2015

Các lệnh autofix dành cho cPanel/WHM

Một số lệnh autofix giúp bạn có thể thực hiện các tác vụ trên hệ thống trong nhiều trường hợp, chẳng hạn như đổi SSH port và quên mất, hay bạn block nhầm chính IP mình đang truy cập trên cổng FTP chẳng hạn. Flushing iptables rules http://yourdomain.com:2086/scripts2/doautofixer?autofix=iptablesflush Restart...

July 14, 2015

Disk Space for MySQL Databases in cPanel Show as 0MB

When you upgrade from cPanel 11.24 to 11.25, your users may notice that in cPanel, their MySQL databases show 0MB of disk space used, when they know their databases are much larger. This is due to an option in cPanel that you specifically have to enable. To enable MySQL disk usage tracking: 1) Edit /var/cpanel/cpanel.config Change: disk_usage_include_sqldbs=0 to disk_usage_include_sqldbs=1 Then...

5 Ways to Get a User’s Disk Usage

This may seem pretty simple, but I see a lot of questions about how to get a user’s disk space usage on a cPanel user. I put together a quick list of 5 simple ways for the average admin:  1) Good ole’ cPanel/WHM. You can see the usage on the left-hand side of cPanel, or in the ‘List Accounts’...

How to Delete all logs in a cpanel server - SSH

The command below will delete/empty all files in '/path/to/the/logdirectory' directory.for i in $(find /path/to/the/logdirectory -type f); do echo > $i; done You can empty the logs files via SSH as user root using the 'echo' commandecho > /path/to/the/logfileYou should be aware of the list...

How to Clean Log Files Before You Enable Log Rotation

Checking disk space usage and removing old log files cPanel & WHM create and maintain log files. These log files allow you to examine errors and other occurrences on the system. After an extended period of time, the system's storage devices will begin to fill, as the log files contain more information....