CPanel: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
<pre>ssh: http://IPADDRESS:2086/scripts2/doautofixer?autofix=safesshrestart | <pre>ssh: http://IPADDRESS:2086/scripts2/doautofixer?autofix=safesshrestart | ||
httpd: http://IPADDRESS:2086/scripts/reshttpd?confirm=1</pre> | httpd: http://IPADDRESS:2086/scripts/reshttpd?confirm=1</pre> | ||
==Disable cPhulk== | |||
<pre>/usr/local/cpanel/etc/init/stopcphulkd stop | |||
/usr/local/cpanel/bin/cphulk_pam_ctl --disable</pre> | |||
==Update cPanel license== | |||
<pre>/usr/loca/cpanel/cpkeyctl</pre> | |||
==Create backups for all accounts using script== | |||
<pre> 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 & | |||
</pre> | |||
Latest revision as of 05:10, 21 February 2023
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 &