+ Reply to Thread
Results 1 to 7 of 7

Commands For cPanel All Linux Admins Should Know

This is a discussion on Commands For cPanel All Linux Admins Should Know within the Web & Server Administration forums, part of the Web Designing & Development category; These are common commands that I think all Linux for cpanel admin should know, some are just linux commands but ...

Share/Bookmark
  1. #1
    Junior Member Array
    Join Date
    Jun 2010
    Posts
    2

    Default Commands For cPanel All Linux Admins Should Know

    These are common commands that I think all Linux for cpanel admin should know, some are just linux commands but quite handy anyway.

    Note:
    Never use the command line unless you know Linux quite well.

    Update Awstats and Webalizer for a certain user:

    /scripts/runweblogs username

    Set all files in a directory recursively to secure permissions. Never do at root level.

    find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;

    This corrects file owerships for webusers:

    /scripts/chownpublichtmls

    Update cPanel via command line:

    /scripts/upcp

    Edit root cron jobs command line:

    crontab -e

    Change default linux editor (I selected VI):

    VISUAL=vi;export VISUAL;EDITOR=vi;export EDITOR;

    Edit commands to run at boot time:

    vi /etc/rc.local

    Fix cPanel license after hostname change (I run at boot time):

    /usr/local/cpanel/cpkeyclt

    Clone directory to another directory (Permissions and all):

    rsync -rHDgopt --progress /sourcedirectory/* /destinationdirectory

    Backup only php files recursively and retain directory structure:

    find . -name '*.php' | xargs tar -rf BACKUP.tar;

    Import large SQL files faster:

    mysql -u db_user_here -p'db_pass_here' db_name_here < Name_Of_Backup_File.sql

    Export large SQL files faster:

    mysqldump -u db_user -p'db_pass' db_name > Name_Of_Backup_File.sql

    Limit webuser resources (cpu / memory / etc):

    vi /etc/security/limits.conf

    Edit mysql configuration file:

    vi /etc/my.cnf

    Edit php.ini:

    vi /etc/php.ini

  2. #2
    Junior Member Array
    Join Date
    Jan 2011
    Posts
    17

    Default Re: Commands For cPanel All Linux Admins Should Know

    this is great knowledge u have shared with us. it can help us to having proper control on our operating system.

  3. #3
    Banned Array
    Join Date
    Oct 2011
    Posts
    34

    Default Re: Commands For cPanel All Linux Admins Should Know

    Hello,


    Thank you so much for sharing:::::::::

  4. #4
    Member Array
    Join Date
    Nov 2011
    Posts
    42

    Default Re: Commands For cPanel All Linux Admins Should Know

    Hello,

    Thank you so much for sharing such type of nice information:::::::::

  5. #5
    Banned Array
    Join Date
    Nov 2011
    Posts
    77

    Default Re: Commands For cPanel All Linux Admins Should Know

    Hello,


    Thank you so much for sharing..........

  6. #6
    Senior Member Array
    Join Date
    Jun 2011
    Posts
    1,381

    Default Re: Commands For cPanel All Linux Admins Should Know

    I never use Linux. Your post helps me a lot. Thanks you.
    Join ACP and get Payment Weekly!

  7. #7
    Junior Member Array ultimatehostings's Avatar
    Join Date
    Jan 2012
    Location
    India
    Posts
    18

    Default Re: Commands For cPanel All Linux Admins Should Know

    That's a great share.
    Ultimatehostings
    Fully Managed Services



+ Reply to Thread

Similar Threads

  1. Use of Copy and Paste Commands???
    By realistic in forum Tech Support
    Replies: 6
    Last Post: 05-31-2011, 03:45 PM
  2. Need cPanel VPS
    By Mister in forum Web Hosting
    Replies: 15
    Last Post: 06-22-2010, 07:10 AM
  3. Replies: 2
    Last Post: 05-21-2010, 06:09 AM
  4. Replies: 0
    Last Post: 04-10-2008, 02:34 PM
  5. Palm Adds Voice Commands For Smartphone Messaging, Browsing
    By TechMaster in forum Member Discussion
    Replies: 0
    Last Post: 03-27-2008, 05:52 AM
SEO Forum | Web Hosting Forum | Websites For Sale |