CPanel
Jump to navigation
Jump to search
Hostname SSL
/usr/local/cpanel/bin/checkallsslcerts
Restart services via web when server is under high load
ssh: http://IPADDRESS:2086/scripts2/doautofixer?autofix=safesshrestart httpd: http://IPADDRESS:2086/scripts/reshttpd?confirm=1
Disable cPhulk
/usr/local/cpanel/etc/init/stopcphulkd stop /usr/local/cpanel/bin/cphulk_pam_ctl --disable
Update cPanel license
/usr/loca/cpanel/cpkeyctl
Create backups for all accounts using script
Command to create packages is /scripts/pkgacct
First, you can need to add all cPanel usernames to a text file called "/home/migrate". You can fo this using the following:
cat /etc/trueuserdomains | awk {'print $2'} >> /home/migrate
Backups without home folder:
for acct in `cat /home/migrate`; do echo creating packages $acct; /scripts/pkgacct --skiphomedir $acct; done > /tmp/create.log 2>&1 &
Backups with home folder:
for acct in `cat /home/migrate`; do echo creating packages $acct; /scripts/pkgacct $acct; done > /tmp/create.log 2>&1 &