Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member celliott's Avatar
    Join Date
    Jan 2006
    Location
    United Kingdom
    Posts
    460

    Thumbs up cPanel /Scripts

    I have come accross an excellent list of all the cpanel /scripts also with a description. I have been looking for this quite a while and am wondering whether mods could make it a sticky for people looking in the future?

    Common cPanel /Scripts

    Install Zend Optimizer /scripts/installzendopt
    Hostname A Entry Missing! /scripts/fixndc then restart bind and apache
    Install Cron on New Server /scripts/installrpm anacron vixie-cron ; /etc/rc.d/init.d/crond start
    Bandwidth issues /scripts/cleanbw
    /scripts/fixwebalizer (To fix problem in webalizer that stop updating stats)
    /scripts/fixcommonproblems
    /scripts/fixeverything
    Fixing Mail List MailMan /usr/local/cpanel/bin/convertmailman2
    Reinstall MailMan /scripts/reinstallmailman
    Fix Permissions on accounts: /scripts/fixhome
    Edit mySQL conf file: pico /etc/my.cnf
    Edit php.ini: 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

    /scripts/adddns Add a Dns Entry
    /scripts/addfpmail Install Frontpage Mail Exts
    /scripts/addservlets Add JavaServlets to an account (jsp plugin required)
    /scripts/adduser Add a User
    /scripts/admin Run WHM Lite
    /scripts/apachelimits Add Rlimits (cpu and mem limits) to apache.
    /scripts/dnstransfer Resync with a master DNS Server
    /scripts/editquota Edit A User's Quota
    /scripts/finddev Search For Trojans in /dev
    /scripts/findtrojans Locate Trojan Horses
    Suggest Usage
    /scripts/findtrojans > /var/log/trojans
    /scripts/fixtrojans /var/log/trojans
    /scripts/fixcartwithsuexec Make Interchange work with suexec
    /scripts/fixinterchange Fix Most Problems with Interchange
    /scripts/fixtrojans Run on a trojans horse file created by findtrojans to remove them
    /scripts/fixwebalizer Run this if a user's stats stop working
    /scripts/fixvaliases Fix a broken valias file
    /scripts/hdparamify Turn on DMA and 32bit IDE hard drive access (once per boot)
    /scripts/initquotas Re-scan quotas. Usually fixes Disk space display problems
    /scripts/initsuexec Turn on SUEXEC (probably a bad idea)
    /scripts/installzendopt Fetch + Install Zend Optimizer
    /scripts/ipusage Display Ipusage Report
    /scripts/killacct Terminate an Account
    /scripts/killbadrpms Delete "Security Problem Infested RPMS"
    /scripts/mailperm Fix Various Mail Permission Problems
    /scripts/mailtroubleshoot Attempt to Troubleshoot a Mail Problem
    /scripts/mysqlpasswd Change a Mysql Password
    /scripts/quicksecure Kill Potential Security Problem Services
    /scripts/rebuildippool Rebuild Ip Address Pool
    /scripts/remdefssl Delete Nasty SSL entry in apache default httpd.conf
    /scripts/restartsrv Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)
    /scripts/rpmup Syncup Security Updates from RedHat/Mandrake
    /scripts/runlogsnow Force a webalizer/analog update.
    /scripts/secureit Remove non-important suid binaries
    /scripts/setupfp4 Install Frontpage 4+ on an account.
    /scripts/simpleps Return a Simple process list. Useful for finding where cgi scripts are running from.
    /scripts/suspendacct Suspend an account
    /scripts/sysup Syncup Cpanel RPM Updates
    /scripts/unblockip Unblock an IP
    /scripts/unsuspendacct UnSuspend an account
    /scripts/upcp Update Cpanel
    /scripts/updatenow Update /scripts
    /scripts/wwwacct Create a New Account

    /scripts/runweblogs account username for awstats to run manually


    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

    Chris

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    159

    Default

    a good list thank you

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Pretty much the same as the documentation:
    http://www.cpanel.net/docs/whm/Scripts.htm
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member celliott's Avatar
    Join Date
    Jan 2006
    Location
    United Kingdom
    Posts
    460

    Default

    Never knew that was there, ah well.

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Default

    I found this very useful I also had not found the other list posted by chirpy, so I had sit down and copied /etc/scripts/ and scripts2/ and then made my own explination for each command.......wish I had found this earlier

    Gham

  6. #6
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    881

    Default

    Quote Originally Posted by celliott View Post
    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

    Chris

    I get the following error:

    root@gandalf [/home/LordMerlin]# myisamchk -r /var/lib/mysql/*/*.MYI
    bash: /usr/bin/myisamchk: Argument list too long
    Any suggestions why?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge Alexandre's Avatar
    Join Date
    Jan 2004
    Location
    U.S.A.
    Posts
    19

    Default

    In this case, it would be better to rapir it in this way

    root@gandalf [/home/LordMerlin]# find /var/lib/mysql/ -name "*MYI" | xargs myisamchk -r
    Travellin' somewhere, could be anywhere
    There's a coldness in the air, but I don't care.
    We drift deeper into the sound, life goes on,
    We drift deeper into the sound, feeling strong
    So bring it on, so bring it on

  8. #8
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    881

    Default

    Cool, thanx

    That helped a lot! Wow, I've never seen so many corrupt DB tables!

    Would it be safe to run this command, as a crontab, on Sunday night 4am once per month?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 10-26-2009, 08:28 AM
  2. WHM and cPanel custom scripts - PWS Scripts Club
    By PWSowner in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-22-2004, 11:51 PM
  3. Replies: 1
    Last Post: 06-10-2004, 09:27 AM
  4. Replies: 79
    Last Post: 07-24-2003, 10:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube