Results 1 to 9 of 9
Thread: cPanel useful scripts
- 06-01-2009, 06:07 AM #1
Newbie
- Join Date
- Jun 2009
- Posts
- 3
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
- 06-01-2009, 10:31 AM #2
Junior WHC Addict
- Join Date
- Oct 2008
- Posts
- 154
Thank you
- 07-06-2009, 05:52 PM #3
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.
- 07-07-2009, 08:56 AM #4
Member
- Join Date
- Jun 2009
- Posts
- 73
Nice one. Thanks for sharing!
- 07-07-2009, 11:04 AM #5
Junior WHC Addict
- Join Date
- Oct 2008
- Posts
- 154
btw, it would be better don't use "fixeverything"
))
- 07-29-2009, 06:58 AM #6
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
- 09-17-2009, 06:44 AM #7
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...
- 02-26-2010, 12:29 AM #8
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".
- 02-26-2010, 04:03 AM #9
WHC Administrator
- Join Date
- Dec 2007
- Posts
- 1,614



LinkBack URL
About LinkBacks




Reply With Quote






Bookmarks