24 Apr 2014 
Support Center » Knowledgebase » Useful cPanel Command List
 Useful cPanel Command List
Solution Ever locked yourself out of your Server while making some iptables changes? What about when you change your SSH port and then forget what you set it to? These are common support tickets we receive at RSHosting. In many cases this is something our customer’s can fix on their own if they are using cPanel on thier VPS/Server.

cPanel comes with a number of “hidden” autofix commands that allow for administrators to fix common problems simply be logging into WHM and going to a special URL. Two of the most useful ones I’ve seen are flushing iptables and restarting SSH in “safe mode” (basically the default settings and port).

Flushing iptables rules  http://yourdomain.com:2086/scripts2/doautofixer?autofix=iptablesflush

Restart SSH in safe mode  http://yourdomain.com:2086/scripts2/doautofixer?autofix=safesshrestart

Once you hit the URL you will be prompted to log in. Simply enter your root password and cPanel will do the rest. These have definitely saved me on more than one occasion when my attempt to ’secure’ my server worked a little too well.  Remember that if you happen to also lock yourself out of WHM through iptables, you will not be able to hit the URL’s I mentioned.  In that case, contact support.

Here are some other useful commands as well:

Reset the Firewall Settings  https://yourdomain.com:2087/scripts2/doautofixer?autofix=iptablesflush

Reset the SSH Settings  http://yourdomain.com:2086/scripts2/doautofixer?autofix=safesshrestart

bsdbindfix  http://yourdomain.com:2086/scripts2/doautofixer?autofix=bsdbindfix

Autorepair  http://yourdomain.com:2086/scripts2/doautofixer?autofix=autorepair

Compress Zlib   http://yourdomain.com:2086/scripts2/doautofixer?autofix=Compress-Zlib-1.42.tar.gz

Compresszlibfix  http://yourdomain.com:2086/scripts2/doautofixer?autofix=compresszlibfix

dbdmysql  http://yourdomain.com:2086/scripts2/doautofixer?autofix=dbdmysql

Cooldiagnose_apache_conf  http://yourdomain.com:2086/scripts2/doautofixer?autofix=diagnose_apache_conf

fpindexfile  http://yourdomain.com:2086/scripts2/doautofixer?autofix=fpindexfile

libxml2-2.6.28.tar.gz  http://yourdomain.com:2086/scripts2/doautofixer?autofix=libxml2-2.6.28.tar.gz

libxml64fix  http://yourdomain.com:2086/scripts2/doautofixer?autofix=libxml64fix

pro*  http://yourdomain.com:2086/scripts2/doautofixer?autofix=pro*

spamd_dbm_fix  http://yourdomain.com:2086/scripts2/doautofixer?autofix=spamd_dbm_fix

test  http://yourdomain.com:2086/scripts2/doautofixer?autofix=test

vfilterfix  http://yourdomain.com:2086/scripts2/doautofixer?autofix=vfilterfix

yumduprpmfix  http://yourdomain.com:2086/scripts2/doautofixer?autofix=yumduprpmfix

resellerresourceacctounts  http://yourdomain.com:2086/scripts2/doautofixer?autofix=resellerresourceacctounts

horde_sqmail_current_fix  http://yourdomain.com:2086/scripts2/doautofixer?autofix=horde_sqmail_current_fix

Good Luck, and if you need more help you can always Contact RSHosting Support!



Article Details
Article ID: 123
Created On: 09 Apr 2011 06:05 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | News | Downloads
Language:

Help Desk Software Help Desk Software By Kayako eSupport v3.60.03