Results 1 to 4 of 4
  1. #1

    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.

    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
    Strat with Linux || Optimize, Secure and increase performance of Apache || Already Started
    The visionary conceives the impossible, The missionary makes it possible. ...Gita.

  2. #2
    Senior Member
    Join Date
    Jul 2006
    Location
    IndiaMDM
    Posts
    365
    Hello,

    there are few mor added in the cpanel scripts, since the cpanek has changed all the internal structures that they were using. The most commonly used is ./convertmaildir since the mailing structure of exim that is provided by the cpanel has been changed completely.

    Thank you.

    Regards,
    HostechSupport
    24x7 Remote Services
    Linux/Windows Server Administration Server Management
    Get in touch: support@hostechsuppport.com

  3. #3
    Senior Member
    Join Date
    May 2009
    Posts
    179
    Use cPanel Subdomain Creator to create subdomains on cPanel based hosting.

    Input:

    cPanel account username
    cPanel account password
    cPanel skin (see Determining your cPanel Theme/Skin for more info on how to determine cPanel skin)
    list of subdomains to be created in the plain text file (if creating from file)
    Parent domain (can create subdomains for different domains when creating from file)

    Update program header with above settings and script is ready to use............

  4. #4
    Senior Member
    Join Date
    Sep 2008
    Location
    Montesano, Wa
    Posts
    285
    Wow, an extremely old thread that was dug up - Maybe someone can start up a new one with useful commands etc... that isnt 3 years old? Closing this one.

Posting Permissions

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

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.