Adding an SSL cert in WHM throws an error.
It gives me this error at top. “The system failed to find an owner for the domain “domain.com”.”

Resolution

The domain was added in accounts in WHM as www.domain.com. Chabge to domain.com

fixallcartswithsuexec – Fixes permissions on carts when using suexec.
fixallinterchangeperm – Fixes permissions on all users’ Interchange Shopping Carts.
fixbinpath – Makes sure all bin file paths are correct.
fixbuggynamed – Updates bind to solve any problems with bugs.
fixcommonproblems – Attempt to fix the most common problems.
fixetchosts – Fixes problems with /etc/hosts
fixeverything – Fix common problems and quotas.
fixfpwml – Fix for .wml errors with frontpage.
fixheaders – Run if nothing compiles errors with .h files on compile.
fixinterchange – Reinstall interchange Perl modules.
fixinterchangeperm – fix permissions on a user’s interchange cart.
fixipsnm – Same as addnetmask ips, but Perl though.
fixlibnet – Reinstall Bundle::libnet (Perl).
fixlocalhostwithphp – Change /etc/hosts to work better with PHP 4.2.0 + MySQL.
fixmailman – Updates and restarts mailman.
fixmailmanwithsuexec –
fixmuse – Reinstalls muse.
fixmysql – Fixes problems with mySQL.
fixmysqlbsd – Fixes problesm with mySQL on FreeBSD.
fixnamed – Updates bind to handle many DNS zones (more than 512).
fixndc – Repair redhat’s broken named.conf on 7.2.
fixoldlistswithsuexec – Run after enabling suexec on the server to change the URLs that Mailman gives out to ones that don’t give a 500 internal server error.
fixperl – Symlink /usr/local/bin/perl /usr/bin/perl.
fixperlscript – Makes sure a perlscript includes all corresponding modules.
fixpop – Fix a POP account and reset password.
fixproftpdconf – Fixes problems with /usr/local/etc/proftpd.conf
fixproftpddupes – Updates proftpd.
fixquotas – Fix quotas.
fixrndc – Fixes named.conf to prevent rndc staus failed.
fixspamassassinfailedupdate – Reinstalls a failed spamassassin update.
fixsubdomainlogs – Run if subdomain logs don’t show up in cPanel.
fixsuexeccgiscripts – Fix CGI scripts that are broken after suexec installed.
fixvaliases – Fix permisions on valiases.
fixwebalizer – Repair a Webalizer that has stopped updating.

Common cPanel /Scripts

Install Zend Optimizer /scripts/installzendopt
Hostname A Entry Missing! /scripts/fixndc then restart bind and apache
Install Cron on New Server /scripts/installrpm anacron vixie-cron ; /etc/rc.d/init.d/crond start
Bandwidth issues /scripts/cleanbw
/scripts/fixwebalizer (To fix problem in webalizer that stop updating stats)
/scripts/fixcommonproblems
/scripts/fixeverything
Fixing Mail List MailMan /usr/local/cpanel/bin/convertmailman2
Reinstall MailMan /scripts/reinstallmailman
Fix Permissions on accounts: /scripts/fixhome
Edit mySQL conf file: pico /etc/my.cnf
Edit php.ini: pico /usr/local/lib/php.ini
Edit Apache Conf: pico /etc/httpd/conf/httpd.conf
Checking Real Time Top Processes Login to SSH and run: top
Run cpanel backup /scripts/cpbackup
To try and fix domain controller: /scripts/fixndc

Quotas /scripts/initquotas – takes a while to run
/scripts/resetquotas
/scripts/fixquotas – takes a while to run

/scripts/adddns Add a Dns Entry
/scripts/addfpmail Install Frontpage Mail Exts
/scripts/addservlets Add JavaServlets to an account (jsp plugin required)
/scripts/adduser Add a User
/scripts/admin Run WHM Lite
/scripts/apachelimits Add Rlimits (cpu and mem limits) to apache.
/scripts/dnstransfer Resync with a master DNS Server
/scripts/editquota Edit A Users Quota
/scripts/finddev Search For Trojans in /dev
/scripts/findtrojans Locate Trojan Horses
Suggest Usage
/scripts/findtrojans > /var/log/trojans
/scripts/fixtrojans /var/log/trojans
/scripts/fixcartwithsuexec Make Interchange work with suexec
/scripts/fixinterchange Fix Most Problems with Interchange
/scripts/fixtrojans Run on a trojans horse file created by findtrojans to remove them
/scripts/fixwebalizer Run this if a users stats stop working
/scripts/fixvaliases Fix a broken valias file
/scripts/hdparamify Turn on DMA and 32bit IDE hard drive access (once per boot)
/scripts/initquotas Re-scan quotas. Usually fixes Disk space display problems
/scripts/initsuexec Turn on SUEXEC (probably a bad idea)
/scripts/installzendopt Fetch + Install Zend Optimizer
/scripts/ipusage Display Ipusage Report
/scripts/killacct Terminate an Account
/scripts/killbadrpms Delete Security Problem Infested RPMS
/scripts/mailperm Fix Various Mail Permission Problems
/scripts/mailtroubleshoot Attempt to Troubleshoot a Mail Problem
/scripts/mysqlpasswd Change a Mysql Password
/scripts/quicksecure Kill Potential Security Problem Services
/scripts/rebuildippool Rebuild Ip Address Pool
/scripts/remdefssl Delete Nasty SSL entry in apache default httpd.conf
/scripts/restartsrv Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)
/scripts/rpmup Syncup Security Updates from RedHat/Mandrake
/scripts/runlogsnow Force a webalizer/analog update.
/scripts/secureit Remove non-important suid binaries
/scripts/setupfp4 Install Frontpage 4+ on an account.
/scripts/simpleps Return a Simple process list. Useful for finding where cgi scripts are running from.
/scripts/suspendacct Suspend an account
/scripts/sysup Syncup Cpanel RPM Updates
/scripts/unblockip Unblock an IP
/scripts/unsuspendacct UnSuspend an account
/scripts/upcp Update Cpanel
/scripts/updatenow Update /scripts
/scripts/wwwacct Create a New Account

/scripts/runweblogs account username for awstats to run manually

Sometimes such behavior of apache/httpd (taking more and more memory until it dies or crashes the server) can be caused by corrupted MySQL database. Try to do the following:
1) Kill the mysql server
/etc/rc.d/init.d/mysql stop

2) Repair all SQL databases:
myisamchk -r /var/lib/mysql/*/*.MYI

3) Start mysql again:
/etc/rc.d/init.d/mysql start

If you have a Windows server and FileZilla Server as your FTP server (the default for our Managed Windows servers), you can easily add additional FTP users as needed. Each user will be ‘jailed’ into their shared folder.

Open FileZilla Server Interface (start menu or desktop icon), then click ‘OK’ on the ‘Connect to Server’ dialog.’
Go to Edit -> Users.
Click Add, type in username, then click ‘OK’.
Click the ‘password’ checkbox and enter the password.
Click ‘Shared folders’, then click ‘Add’ and choose a folder.
Check (enable) all permissions under ‘Files’ and ‘Directories’.
Click ‘OK’ towards the bottom.

The users/settings will be updated on the last step.

Migration check in plesk shows this error:

The ‘max_allowed_packet’ parameter on the source database server is 16777216, which is bigger than on the destination server, where it is 1048576

RDP the the server. The file is at C:Program Files (x86)ParallelsPleskDatabasesMySQLDatamy.ini

Add this to it:

[mysqld]
# max_allowed_packet=16M

Sometimes the resolvers in the server cannot find a server. You can update the DNS resolvers (/etc/resolv.conf) to rotate between a number of nameservers to try and resolve the issue. Add google nameservers to the mix with your Host resolvers.

# nano /etc/redolv.conf

nameserver 8.8.8.8
nameserver 69.xx.xx.xx
nameserver 8.8.4.4
nameserver 69.xx.xx.xx

The following guide was taken from Cpanel support forum. This information is when you need to migrate Cpanel account information from one drive or to another.

Manually moving Cpanel

These commands will allow you to manually migrate all customer data and configs from an old primary drive installed as a slave.

source drive should be mounted to /mnt/slave1

run chkrootkit to make sure you don’t copy back infected files.. chkrootkit — locally checks for signs of a rootkit

now we can start copying back data from the old drive

Run these rSync commands to move everything over:


# rsync -vrplogDtH /slave1/usr/local/apache/conf /usr/local/apache
# rsync -vrplogDtH /slave1/var/named /var
# rsync -vrplogDtH /slave1/home/* /home
# rsync -vrplogDtH /slave1/usr/local/cpanel /usr/local
# rsync -vrplogDtH /slave1/var/lib/mysql /var/lib
# rsync -vrplogDtH /slave1/var/cpanel /var
# rsync -vrplogDtH /slave1/usr/share/ssl /usr/share
# rsync -vrplogDtH /slave1/var/ssl /var
# rsync -vrplogDtH /slave1/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty
# rsync -vrplogDtH /slave1/var/log/bandwidth /var/log
# rsync -vrplogDtH /slave1/usr/local/frontpage /usr/local
# rsync -vrplogDtH /slave1/var/spool/cron /var/spool
# rsync -vrplogDtH /slave1/root/.my.cnf /root
# rsync -vrplogDtH /slave1/etc/httpd/conf/httpd.conf /etc/httpd/conf

* rsync options
-v, –verbose increase verbosity
-r, –recursive recurse into directories
-p, –perms preserve permissions
-l, –links copy symlinks as symlinks
-o, –owner preserve owner (super-user only)
-g, –group preserve group
-D same as –devices –specials
-t, –times preserve modification times
-H, –hard-links preserve hard links

See a list of all the options –

cd to the old etc directory:


#cd /slave1/etc

And copy some files from here:


# rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc 

Update cpanel afterwards


# /scripts/upcp
# /scripts/updatenow
# /scripts/sysup
# /scripts/fixeverything
# /scripts/exim4
# /scripts/easyapache
# /scripts/securetmp 

Restarting services


# /scripts/restartsrv httpd
# /scripts/restartsrv cpanel
# /scripts/restartsrv mysql
# /scripts/restartsrv named
# /scripts/restartsrv exim 

Source: http://forums.cpanel.net/f49/help-moving-cpanel-accounts-damaged-disk-163734.html

Run top

top - 01:11:13 up 6 days,  1:43,  3 users,  load average: 1.96, 2.41, 2.48
Tasks: 245 total,   2 running, 243 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us,  0.1%sy,  0.0%ni, 97.1%id,  2.5%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3838996k total,  3637052k used,   201944k free,   924288k buffers
Swap:  4194296k total,    82612k used,  4111684k free,  1474944k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                              
 8047 root      20   0  895m 762m 2324 R 93.6 20.3  53:18.98 perl            

Find what’s going on:


# lsof -p 8047
COMMAND  PID USER   FD   TYPE DEVICE   SIZE/OFF     NODE NAME
perl    8047 root  cwd    DIR    8,3       4096 11191353 /home/fl/tmp/awstats
perl    8047 root  rtd    DIR    8,3       4096        2 /
perl    8047 root  txt    REG    8,3      13568 23379957 /usr/bin/perl
perl    8047 root  mem    REG    8,3     156936  6960459 /lib64/ld-2.12.so
perl    8047 root  mem    REG    8,3    1926760  6960467 /lib64/libc-2.12.so
perl    8047 root  mem    REG    8,3     145896  6960747 /lib64/libpthread-2.12.so
perl    8047 root  mem    REG    8,3      22536  6960599 /lib64/libdl-2.12.so
perl    8047 root  mem    REG    8,3      17520  6960912 /lib64/libutil-2.12.so
perl    8047 root  mem    REG    8,3     599392  7044605 /lib64/libm-2.12.so
perl    8047 root  mem    REG    8,3     113952  7044614 /lib64/libresolv-2.12.so
perl    8047 root  mem    REG    8,3     480264  6960710 /lib64/libfreebl3.so
perl    8047 root  mem    REG    8,3    1488544 23639376 /usr/lib64/perl5/CORE/libperl.so
perl    8047 root  mem    REG    8,3      43392  6960711 /lib64/libcrypt-2.12.so
perl    8047 root  mem    REG    8,3     116368  7044608 /lib64/libnsl-2.12.so
perl    8047 root  mem    REG    8,3      65928  6960428 /lib64/libnss_files-2.12.so
perl    8047 root  mem    REG    8,3      41704 23770555 /usr/lib64/perl5/auto/Encode/Encode.so
perl    8047 root  mem    REG    8,3      25624 23770786 /usr/lib64/perl5/auto/Socket/Socket.so
perl    8047 root  mem    REG    8,3   99154480 23380451 /usr/lib/locale/locale-archive
perl    8047 root    0u   CHR  136,0        0t0        3 /dev/pts/0
perl    8047 root    1u   CHR  136,0        0t0        3 /dev/pts/0
perl    8047 root    2u   CHR  136,0        0t0        3 /dev/pts/0
perl    8047 root    3r   REG    8,3      14977 23379268 /usr/local/share/perl5/Geo/IPfree.pm
perl    8047 root    4r   REG    8,3     990145 23379201 /usr/local/share/perl5/Geo/ipscountry.dat
perl    8047 root    5r   DIR    8,3       4096 11191353 /home/fl/tmp/awstats
perl    8047 root    6r   REG    8,3 5603612003  4549256 /home/fl/logs/flvoters.com-Oct-2014.log
perl    8047 root    7r   REG    8,3  119605932 11191354 /home/fl/tmp/awstats/awstats102014.tmp.8047
perl    8047 root    8w   REG    8,3    8892416 11191361 /home/fl/tmp/awstats/awstats102014.tmp.8047.bis

This is a process to re-run awstats

# /usr/bin/perl /usr/local/cpanel/3rdparty/bin/awstats.pl -config=/home/user_name/tmp/awstats/awstats.domain.com.conf -LogFile=/usr/local/apache/domlogs/domain.com -update

For a plesk server

IMAP

Incomming server
Server: mail.domain.com
Connection security: none
Authentication: Password, transmitted insecurely
User Name: user@domain.com
Port: 143

Outgoing Server:
Server: mail.domain.com
Connection security: STARTTLS
Authentication: Encrypted password
User Name: user@domain.com
Incomming: Port 587

POP

Incomming server
Server: mail.domain.com
Connection security: STARTTLS
Authentication: Encrypted Password
User Name: user@domain.com
Port: 110

Outgoing Server:
Server: mail.domain.com
Connection security: STARTTLS
Authentication: Normal Password
User Name: user@domain.com
Incomming: Port 587

Check the logs:

# nano /var/log messages
PAM-hulk[13813]: Brute force detection active: 580 LOGIN DENIED

Check

cphulkd.log at /usr/local/cpanel/logs


# nano /usr/local/cpanel/logs/login_log
72.177.xxx.xx - root [11/04/2014:05:48:13 -0000] "POST /login/?login_only=1 HTTP/1.1" DEFERRED LOGIN whostmgrd: brute force attempt (user root) has locked out IP 72.177.xxx.xx