Basic Shell Commands for WH Providers.

Some of these commands are NOT basic linux commands, they are only available for users with CPanel or those who have installed certain scripts for monitoring their website, or to assist them in running their webhosting business. So if some of these commands do not work, please take note this is normal and you probably don't have the software required installed on your dedicated server.

I just uploaded/moved some files to a customers/user of mine and now they can't modify/rename/delete this file?
This is because you uploaded the file as a different user/root.
Login to your server via SSH & Type: /scripts/chownpublichtmls

Sometimes when moving an account to your WHM Account from another
WHM Account/server you will get an error where the domain is forbidden.
Login to your server via SSH & Type: /scripts/enablefileprotect

How can I view the status of my Advanced Policy Firewall ? (APF)
Login to your server via SSH & Type: /etc/apf/apf -st
How can I stop my Advanced Policy Firewall ? (APF)
Login to your server via SSH & Type: service apf stop
How can I start my Advanced Policy Firewall ? (APF)
Login to your server via SSH & Type: service apf start

How can I restart CPanel via SSH?
Login to your server via SSH & Type: /etc/rc.d/init.d/cpanel restart

How can I stop BIND / NAMED from SSH?
Login to your server via SSH & Type: /etc/init.d/named stop

How can I start BIND / NAMED from SSH?
Login to your server via SSH & Type: /etc/init.d/named start

How can I force AWSTATS to update?
Login to your server via SSH & Type: /scripts/runlogsnow

How can I find files owned by a customer/user?
Login to your server via SSH & Type: find -user username *Replace username*

Resources -
Signature

 

 

 

 

Top