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

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com

    Default cPanel SSH Commands List

    Hey, here is a list of commands for cPanel. Note that this is for SSH

    Code: 
    Restart chkservd:
    
    /etc/init.d/chkservd restart
    
    Tail Apache log:
    
    tail -f /usr/local/apache/logs/error_log
    
    Updates the cpanel server software:
    
    /scripts/upcp
    
    Reinstalls exim:
    
    /scripts/exim4
    
    View traffic or if you think a site is being DDoS:
    
    cd /usr/local/apache/domlogs
    tail -f targetsite.com
    
    
    Correct bandwidth issues
    
    /scripts/cleanbw
    
    To fix problem in webalizer that stop updating stats
    
    
    /scripts/fixwebalizer
    
    Fix everything
    
    
    /scripts/fixcommonproblems
    /scripts/fixeverything
    
    
    
    Fixing Mail List MailMan
    
    /usr/local/cpanel/bin/convertmailman2
    
    
    
    Reinstall MailMan
    
    /scripts/reinstallmailman
    
    /scripts/fixhome
    
    pico /etc/my.cnf
    
    
    Edit php.ini (may be in a differant place if you have Zend installed)
    
    pico /usr/local/lib/php.ini
    
    
    Edit Apache Conf
    
    pico /etc/httpd/conf/httpd.conf
    
    
    Checking Real Time Top Processes Login to SSH and run
    
    top
    
    
    Run cpanel backup
    
    /scripts/cpbackup
    
    
    To try and fix domain controller
    
    /scripts/fixndc
    
    Quotas
    
    /scripts/initquotas - takes a while to run
    /scripts/resetquotas
    /scripts/fixquotas - takes a while to run
    
    Add a Dns Entry
    
    
    /scripts/adddns
    
    
    Install Frontpage Mail Exts
    
    /scripts/addfpmail
    
    Add JavaServlets to an account (jsp plugin required)
    
    /scripts/addservlets
    
    Add a User
    
    /scripts/adduser
    
    Run WHM Lite
    
    /scripts/admin
    
    Add Rlimits (cpu and mem limits) to apache
    
    /scripts/apachelimits
    
    Resync with a master DNS Server
    
    /scripts/dnstransfer
    
    Edit A User's Quota
    
    /scripts/editquota
    
    Search For Trojans in /dev
    
    /scripts/finddev
    
    Locate Trojan Horses
    
    /scripts/findtrojans
    
    Suggest Usage
    
    /scripts/findtrojans > /var/log/trojans
    
    /scripts/fixtrojans /var/log/trojans
    
    Make Interchange work with suexec
    
    /scripts/fixcartwithsuexec
    
    Fix Most Problems with Interchange
    
    /scripts/fixinterchange
    
    Run on a trojans horse file created by findtrojans to remove them
    
    /scripts/fixtrojans
    
    Run this if a user's stats stop working
    
    /scripts/fixwebalizer
    
    Fix a broken valias file
    
    /scripts/fixvaliases
    
    Turn on DMA and 32bit IDE hard drive access (once per boot)
    
    /scripts/hdparamify
    
    Re-scan quotas. Usually fixes Disk space display problems
    
    /scripts/initquotas
    
    Turn on SUEXEC (probably a bad idea)
    
    /scripts/initsuexec
    
    Display Ipusage Report
    
    /scripts/ipusage
    
    Terminate an Account
    
    /scripts/killacct
    
    Delete "Security Problem Infested RPMS"
    
    /scripts/killbadrpms
    
    Fix Various Mail Permission Problems
    
    /scripts/mailperm
    
    Attempt to Troubleshoot a Mail Problem
    
    /scripts/mailtroubleshoot
    
    Change a Mysql Password
    
    /scripts/mysqlpasswd
    
    Kill Potential Security Problem Services
    
    /scripts/quicksecure
    
    Rebuild Ip Address Pool
    
    /scripts/rebuildippool
    
    Delete Nasty SSL entry in apache default httpd.conf
    
    /scripts/remdefssl
    
    Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)
    
    /scripts/restartsrv?? (example: /scripts/restartsrv httpd)
    
    Syncup Security Updates from RedHat/Mandrake
    
    /scripts/rpmup
    
    Force a webalizer/analog update
    
    /scripts/runlogsnow
    
    Remove non-important suid binaries
    
    /scripts/secureit
    
    Install Frontpage 4+ on an account
    
    /scripts/setupfp4
    
    Return a Simple process list. Useful for finding where cgi scripts are running from
    
    /scripts/simpleps
    
    Suspend an account
    
    /scripts/suspendacct
    
    Syncup Cpanel RPM Updates
    
    /scripts/sysup
    
    Unblock an IP
    
    /scripts/unblockip
    
    UnSuspend an account
    
    /scripts/unsuspendacct
    
    Update Cpanel
    
    /scripts/upcp
    
    Update /scripts
    
    /scripts/updatenow
    
    Create a New Account
    
    /scripts/wwwacct
    
    Awstats to run manually
    
    /scripts/runweblogs account_username
    
    License Not working
    
    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
    /etc/rc.d/init.d/mysql stop
    
    2) Repair all SQL databases:
    myisamchk -r /var/lib/mysql/*/*.MYI
    
    3) Start mysql again:
    /etc/rc.d/init.d/mysql start
    
    -------------------------------------------------------------------------------
    
    Restarting cpanel
    
    /etc/rc.d/init.d/cpanel restart
    
    To run your clients stats now
    
    /scripts/runlogsnow
    
    Restart the background proccess that runs the stats for your clients
    
    /usr/local/cpanel/startup
    
    To run your clients stats now
    
    /scripts/runstatsonce
    
    To run one clients stats:
    
    /scripts/runweblogsnow username
    
    Shut down http
    
    httpd stop
    
    Start http with SSL
    
    httpd startssl
    
    Start http
    
    httpd start
    
    /scripts/runweblogs
    Source: http://amplehosting.co.za/kb/entry/54/
    l0calh0st Reviewed by l0calh0st on . cPanel SSH Commands List Hey, here is a list of commands for cPanel. Note that this is for SSH :P Restart chkservd: /etc/init.d/chkservd restart Tail Apache log: tail -f /usr/local/apache/logs/error_log Rating: 5

    Defendos BETA3 Released! Thread - Official Website

  2.   Sponsored Links

  3.     
    #2
    Member
    thanks mate, handy list

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 Commands to run from SSH
    By Bharat in forum Technical and Security Tutorials
    Replies: 4
    Last Post: 5th Dec 2011, 01:18 PM

Tags for this Thread

BE SOCIAL