CPanel: Difference between revisions

From Wiki
Jump to navigation Jump to search
(Created page with "==Hostname SSL== <pre>/usr/local/cpanel/bin/checkallsslcerts</pre>")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Hostname SSL==
==Hostname SSL==
<pre>/usr/local/cpanel/bin/checkallsslcerts</pre>
<pre>/usr/local/cpanel/bin/checkallsslcerts</pre>
==Restart services via web when server is under high load==
<pre>ssh: http://IPADDRESS:2086/scripts2/doautofixer?autofix=safesshrestart
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 &