NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > Webmaster Tutorials
Reload this Page Commands all cPanel for Linux admins should know

Webmaster Tutorials Instructional webmaster-related how-to's and tutorials.

Advanced Search
0 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 05-07-2010, 06:17 AM THREAD STARTER               #1 (permalink)
Account Suspended
Join Date: Dec 2008
Location: Boston, Ma
Posts: 650
CrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to all
 



Marrow Donor Program Animal Rescue Autism Autism

Commands all cPanel for Linux admins should know


Commands all cPanel for Linux admins should know

Tips that every cPanel for Linux admin should know. | PHP Tips and Linux Tips

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
????: NamePros.com http://www.namepros.com/webmaster-tutorials/655079-commands-all-cpanel-linux-admins-should.html

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
CrackFeed.Com is offline  
Old 05-09-2010, 04:37 AM   #2 (permalink)
New Member
Join Date: Apr 2010
Posts: 10
hardwarez is an unknown quantity at this point
 



Helpful guide, thanx for sharing.
__________________
Computer Tips
hardwarez is offline  
Old 05-09-2010, 09:27 PM   #3 (permalink)
I'll do it
 
-Nick-'s Avatar
Join Date: Dec 2005
Location: India
Posts: 6,939
-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness
 


Member of the Month
September 2007
Adoption
Excellent stuff This are the kind of tutorials we wanted
-Nick- is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 01:02 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger