PDA

View Full Version : cPanel useful scripts



mitto
10-29-2006, 12:40 PM
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

HosTechS
01-09-2007, 02:34 AM
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,

Oracle
05-17-2009, 03:21 AM
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............

RH1
05-17-2009, 12:15 PM
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.