Activity Stream
48,167 MEMBERS
6661 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Respected Member
    Bharat's Avatar
    Website's:
    ShineServers.Com Pickadedi.com

    Default cPanel Commands to run from SSH

    I thought these commands will be useful so just posted

    Restart chkservd:

    Code: 
    /etc/init.d/chkservd restart
    Tail Apache log:

    Code: 
    tail -f /usr/local/apache/logs/error_log
    Updates the cpanel server software:

    Code: 
    /scripts/upcp
    Reinstalls exim:

    Code: 
    /scripts/exim4
    View traffic or if you think a site is being DDoS:

    Code: 
    cd /usr/local/apache/domlogs
    tail -f targetsite.com

    Correct bandwidth issues

    Code: 
    /scripts/cleanbw
    To fix problem in webalizer that stop updating stats


    Code: 
    /scripts/fixwebalizer
    Fix everything


    Code: 
    /scripts/fixcommonproblems
    /scripts/fixeverything


    Fixing Mail List MailMan

    Code: 
    /usr/local/cpanel/bin/convertmailman2


    Reinstall MailMan

    Code: 
    /scripts/reinstallmailman
    
    /scripts/fixhome
    
    pico /etc/my.cnf

    Edit php.ini (may be in a differant place if you have Zend installed)

    Code: 
    pico /usr/local/lib/php.ini

    Edit Apache Conf

    Code: 
    pico /etc/httpd/conf/httpd.conf

    Checking Real Time Top Processes Login to SSH and run

    Code: 
    top

    Run cpanel backup

    Code: 
    /scripts/cpbackup

    To try and fix domain controller

    Code: 
    /scripts/fixndc
    Quotas

    Code: 
    /scripts/initquotas - takes a while to run
    /scripts/resetquotas
    /scripts/fixquotas - takes a while to run
    Add a Dns Entry


    Code: 
    /scripts/adddns

    Install Frontpage Mail Exts

    Code: 
    /scripts/addfpmail
    Add JavaServlets to an account (jsp plugin required)

    Code: 
    /scripts/addservlets
    Add a User

    Code: 
    /scripts/adduser
    Run WHM Lite

    Code: 
    /scripts/admin
    Add Rlimits (cpu and mem limits) to apache

    Code: 
    /scripts/apachelimits
    Resync with a master DNS Server

    Code: 
    /scripts/dnstransfer
    Edit A User's Quota

    Code: 
    /scripts/editquota
    Search For Trojans in /dev

    Code: 
    /scripts/finddev
    Locate Trojan Horses

    Code: 
    /scripts/findtrojans
    Suggest Usage

    Code: 
    /scripts/findtrojans > /var/log/trojans
    
    /scripts/fixtrojans /var/log/trojans
    Make Interchange work with suexec

    Code: 
    /scripts/fixcartwithsuexec
    Fix Most Problems with Interchange

    Code: 
    /scripts/fixinterchange
    Run on a trojans horse file created by findtrojans to remove them

    Code: 
    /scripts/fixtrojans
    Run this if a user's stats stop working

    Code: 
    /scripts/fixwebalizer
    Fix a broken valias file

    Code: 
    /scripts/fixvaliases
    Turn on DMA and 32bit IDE hard drive access (once per boot)

    Code: 
    /scripts/hdparamify
    Re-scan quotas. Usually fixes Disk space display problems

    Code: 
    /scripts/initquotas
    Turn on SUEXEC (probably a bad idea)

    Code: 
    /scripts/initsuexec
    Display Ipusage Report

    Code: 
    /scripts/ipusage
    Terminate an Account

    Code: 
    /scripts/killacct
    Delete "Security Problem Infested RPMS"

    Code: 
    /scripts/killbadrpms
    Fix Various Mail Permission Problems

    Code: 
    /scripts/mailperm
    Attempt to Troubleshoot a Mail Problem

    Code: 
    /scripts/mailtroubleshoot
    Change a Mysql Password

    Code: 
    /scripts/mysqlpasswd
    Kill Potential Security Problem Services

    Code: 
    /scripts/quicksecure
    Rebuild Ip Address Pool

    Code: 
    /scripts/rebuildippool
    Delete Nasty SSL entry in apache default httpd.conf

    Code: 
    /scripts/remdefssl
    Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)

    Code: 
    /scripts/restartsrv?? (example: /scripts/restartsrv httpd)
    Syncup Security Updates from RedHat/Mandrake

    Code: 
    /scripts/rpmup
    Force a webalizer/analog update

    Code: 
    /scripts/runlogsnow
    Remove non-important suid binaries

    Code: 
    /scripts/secureit
    Install Frontpage 4+ on an account

    Code: 
    /scripts/setupfp4
    Return a Simple process list. Useful for finding where cgi scripts are running from

    Code: 
    /scripts/simpleps
    Suspend an account

    Code: 
    /scripts/suspendacct
    Syncup Cpanel RPM Updates

    Code: 
    /scripts/sysup
    Unblock an IP

    Code: 
    /scripts/unblockip
    UnSuspend an account

    Code: 
    /scripts/unsuspendacct
    Update Cpanel

    Code: 
    /scripts/upcp
    Update /scripts

    Code: 
    /scripts/updatenow
    Create a New Account

    Code: 
    /scripts/wwwacct
    Awstats to run manually

    Code: 
    /scripts/runweblogs account_username
    License Not working

    Code: 
    rdate -s rdate.darkorb.net
    Sometimes such behavior of apache/httpd (taking more and more memory until it dies or crashes the server) can be caused by corrupted MySQL database. Try to do the following:
    1) Kill the mysql server
    Code: 
    /etc/rc.d/init.d/mysql stop
    2) Repair all SQL databases:
    Code: 
    myisamchk -r /var/lib/mysql/*/*.MYI
    3) Start mysql again:
    Code: 
    /etc/rc.d/init.d/mysql start
    -------------------------------------------------------------------------------

    Restarting cpanel

    Code: 
    /etc/rc.d/init.d/cpanel restart
    To run your clients stats now

    Code: 
    /scripts/runlogsnow
    Restart the background proccess that runs the stats for your clients

    Code: 
    /usr/local/cpanel/startup
    To run your clients stats now

    Code: 
    /scripts/runstatsonce
    To run one clients stats:

    Code: 
    /scripts/runweblogsnow username
    Shut down http

    Code: 
    httpd stop
    Start http with SSL

    Code: 
    httpd startssl
    Start http

    Code: 
    httpd start
    Thanks
    Bharat Reviewed by Bharat on . cPanel Commands to run from SSH I thought these commands will be useful so just posted :) Restart chkservd: /etc/init.d/chkservd restart Tail Apache log: tail -f /usr/local/apache/logs/error_log Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    MechoDDL.com Leaserver.com
    Great share Bharat.

    Thanks a lot
    || Leaserver : Virtual Server Solutions
    || Leaserver.com - Virtual servers | Netherlands
    || 99.9% server uptime guaranteed
    || www.leaserver.com | email : [email protected]

  4.     
    #3
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com

    Defendos BETA3 Released! Thread - Official Website

  5.     
    #4
    Respected Member
    Bharat's Avatar
    Website's:
    ShineServers.Com Pickadedi.com
    Mine is more systematic nvm i don't knw about that

  6.     
    #5
    Member
    Thank's for sharing

    Greate guides

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. GRUB Commands
    By Albert.Nawaro in forum Server Management
    Replies: 0
    Last Post: 17th Feb 2012, 08:21 AM
  2. Common SSH Commands - Linux Shell Commands
    By 0ccul7 in forum Server Management
    Replies: 15
    Last Post: 20th Jan 2012, 01:11 PM
  3. SSH FTP UPload Commands
    By Maverick in forum Server Management
    Replies: 6
    Last Post: 17th Jan 2012, 01:18 AM
  4. cPanel SSH Commands List
    By l0calh0st in forum Server Management
    Replies: 1
    Last Post: 9th Jan 2011, 01:27 PM

Tags for this Thread

BE SOCIAL