Results 1 to 9 of 9
  1. #1
    omeeinter is offline Newbie
    Join Date
    Jun 2009
    Posts
    3

    Smile cPanel useful scripts

    Some of the important scripts function of cPanel at /scripts:

    To create new email account use
    # ./addpop
    And follow the steps

    # ./checkbadconf
    Checks /usr/local/apache/conf/httpd.conf for bad users.

    # ./fixcommonproblems
    - Attempt to fix the most common problems.

    # ./fixeverything
    - Fix common problems and quotas.

    # ./fixmysql
    - Fixes problems with mySQL.

    Nameserver, DNS related scripts to troubleshoot:

    # ./fixnamed - Updates bind to handle many DNS zones (more than 512).
    # ./fixrndc

    securetmp - Adds securetmp to system startup.

    Domains:

    listsubdomains - List subdomains.
    park - Parks a domain.
    newdomains*
    newdomains-sendmail*
    rebuildparkeddomains*
    updateuserdomains*

    FrontPage:
    checkfpkey - Checks for the FrontPage suid key
    setupfp5 - Install FrontPage 5 (2002) installer on an account.
    updatefrontpage - Updates FrontPage
    fixfrontpageperm – Fix the frontpage permission issues

    GD:

    checkgd - Checks to see if GD is built.
    cleangd - Cleans up old GD installs and reinstalls GD
    installgd - Builds GD.

    Zend:

    installzendopt - Install zend optimzer.

    ImageMagick:

    checkimagemagick
    cleanimagemagick
    fetchimagemagick
    installimagemagick

    Perl:

    fixperl - Symlink /usr/local/bin/perl /usr/bin/perl.
    fixperlscript - Makes sure a perlscript includes all corresponding modules.
    fixsuexeccgiscripts - Fix CGI scripts that are broken after suexec

    Mail:

    fixpop - Fix a POP account and reset password.
    fixspamassassinfailedupdate - Reinstalls a failed spamassassin update.
    fixvaliases
    listcheck - Checks mailing lists for issues.
    mailperm - Fix almost any mail permission problem.
    mailscannerupdate - Updates MailScanner
    mailtroubleshoot - Guided mail fix.
    patcheximconf - Fixes exim.conf
    reseteximtodefaults - Resets exim's default settings.
    resetimappasswds - Resets all imap passwords.

    Quote:
    fixquotas - Fix quotas.


    ftpquaotacheck - Runs quota checking for all ftp users.

    Stats:
    fixwebalizer - Repair a Webalizer that has stopped updating.


    Logs:


    fixsubdomainlogs
    runstatsonce - Runs statistics (should be used from the crontab).
    runweblogs - Run analog/webalizer/etc. for a user.

    SSL:

    gencrt - Generate a .crt and .csr file.

    Database:

    installpostgres - Installs PostrgeSQL.
    mysqladduserdb - Create a MySQL databse and user.
    mysqlconnectioncheck - Attempts to connect to MySQL, restarts SQL if necessary.
    mysqldeluserdb - Delete a MySQL databse and user.
    mysqlpasswd - Change MySQL password.
    mysqlrpmpingtest - Checks your connection speed for downloading

    Service restart:

    restartsrv - Restart a service.
    restartsrv_apache - Restart apache.
    restartsrv_bind - Restart bind.
    restartsrv_clamd - Restart clamd.
    restartsrv_courier - Restart courier imap.
    restartsrv_cppop - Restart cppop.
    restartsrv_entropychat - Restart entropy chat.
    restartsrv_exim - Restart exim.
    restartsrv_eximstats - Restart exim statistics.
    restartsrv_ftpserver - Restart your ftp server.
    restartsrv_ftpserver~ - (INTERNAL)
    restartsrv_httpd - Restart httpd.
    restartsrv_imap - Restart impad.
    restartsrv_inetd - Restart inetd.
    restartsrv_interchange - Restart Interchange Shopping Cart.
    restartsrv_melange - Restart melange chat.
    restartsrv_mysql - Restart mysqld.
    restartsrv_named - Restart named.
    restartsrv_postgres - Restart postgresql.
    restartsrv_postgresql - Restart postgresql.
    restartsrv_proftpd - Restart proftpd.
    restartsrv_pureftpd - Restart pure-ftpd.
    restartsrv_spamd - Restart spamd.
    restartsrv_sshd - Restart sshd.
    restartsrv_syslogd - Restart syslogd.
    restartsrv_tomcat - Restart tomcat.
    restartsrv_xinetd - Restart xinetd.

    To upgrade the cPanel(WHM) kindly use the script:

    # ./upcp –force

  2. #2
    Alexandre is offline Junior WHC Addict
    Join Date
    Oct 2008
    Posts
    154
    Thank you
    HostingZoom webhosting
    -------------------------
    Power, speed, reliability

  3. #3
    whcdavid is offline WHC Administrator
    Join Date
    Dec 2003
    Posts
    3,509
    Excellent. Thank you for sharing with us.
    DataCenterTalk Rate, review and Discuss about datacenters.
    DatacenterSearch Where your datacenter search ends.

  4. #4
    Linux is offline Member
    Join Date
    Jun 2009
    Posts
    73
    Nice one. Thanks for sharing!

  5. #5
    Alexandre is offline Junior WHC Addict
    Join Date
    Oct 2008
    Posts
    154
    btw, it would be better don't use "fixeverything" ))

    HostingZoom webhosting
    -------------------------
    Power, speed, reliability

  6. #6
    Athlon is offline Junior WHC Addict
    Join Date
    Jun 2009
    Posts
    211
    It is very useful. Thanks a lot for sharing it.
    Last edited by Athlon; 07-29-2009 at 07:03 AM.
    Athlon

  7. #7
    marryroy is offline Newbie
    Join Date
    Sep 2009
    Posts
    3
    Hi...
    I read your post.I like your idea to share such article.That is really wonderful.This type of information will very helpful to the new users,Please continue your sharing.thank you for the comment...

  8. #8
    Sphexa is offline Newbie
    Join Date
    Feb 2010
    Posts
    21
    Great article and all scripts are very good!
    CEO of Cellhost.net
    www.cellhost.net
    Proudly hosting over 600 domains and increasing everyday!
    Try out our shared hosting for 50 cents with code "azx50".

  9. #9
    SiberForum is offline WHC Administrator
    Join Date
    Dec 2007
    Posts
    1,614

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •