grep -r username /usr/local/cpanel/logs/access_log | grep login
no matching cipher found: client arcfour server
Control socket connect: Connection refused
sshd -T | grep "\(ciphers\)"
ciphers [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
arcfour is disabled on Centos 7, its weak, but you can enable it to speed rsync or rnaspshopt
vi /etc/ssh/sshd_config
Ciphers [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc,arcfour,arcfour128,arcfour256
strace httpd debug
strace -f $(for i in `ps aux | grep http | awk ' { print $2 }'`; do echo -n "-p $i "; done) $@ | tee /tmp/http_output
Sometimes helps to debug slow web
Policy server HTTP error: 500 Internal Error Temporary internal error: retry timeout exceeded
dovecot: auth: Error: policy(?,xx.xx.xx.xx): Policy server HTTP error: Connection lost: read(127.0.0.1:579) failed: EOF (Request queued 2.784 secs ago, 1 attempts in 2.784 secs, 2.784 in other ioloops, connected 21.780 secs ago)
This error is caused by cPhulkd of cPanel, so you can temporally disable it, while investigating.
Than check for errors:
/usr/local/cpanel/logs/cphulkd_errors.log
/usr/local/cpanel/logs/cphulkd.log
LMTP error after RCPT TO – Temporary internal error: retry timeout exceeded
LMTP error after RCPT TO:
451 4.3.0
dovecot: lmtp(5768): Error: fchown(/home/user/mail/domain.com/info/maildirsizesrv.domain.com.5768.87dedd4b02379106, group=12(mail)) failed: Operation not permitted (egid=507(user), group based on /home/user/mail/domain.com/info – see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
lmtp(6918): Error: safe_mkstemp(/home/user/mail/domain.tld/info/maildirsize) failed: Operation not permitted
Its cPanel issue, so you cha try update [email protected] mailbox quota to new: Allocated Storage Space
linux find reverse dns name servers – rDNS whois
Find IP PTR record name servers
host 8.8.8.8
8.8.8.8.in-addr.arpa domain name pointer google-public-dns-a.google.com
host -t ns 8.8.8.in-addr.arpa
8.8.8.in-addr.arpa name server ns2.google.com.
8.8.8.in-addr.arpa name server ns3.google.com.
8.8.8.in-addr.arpa name server ns1.google.com.
8.8.8.in-addr.arpa name server ns4.google.com.
phpmyadmin session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)
chmod 1777 /var/lib/php/session
grep from file list
Useful to compare list of data
grep -f list.txt search_file.txt
mysql find database size
mysql -e 'SELECT table_schema 'Database Name', SUM(data_length + index_length) 'Size in Bytes', ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) 'Size in MiB' FROM information_schema.tables WHERE table_schema = 'some_database';'
exim show config
exim show variables
exim -bP | grep size
mysql list all databases and size
mysql -e 'SELECT table_schema AS "Database name", SUM(data_length + index_length) / 1024 / 1024 AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema;'
ERR_TOO_MANY_REDIRECTS prestashop security compromised
index.php/security/compromised?uri= ERR_TOO_MANY_REDIRECTS prestashop
Check session directory access: 1777 /var/lib/php/session
Helo command rejected: Host not found (in reply to DATA postfix
You need to check your hostname, also you can set:
vim /etc/postfix/main.cf
myhostname = myhostname = virtual.domain.tld
service postfix restart
unsupported driver name ‘file’ for disk ‘hdc’
virsh add iso image like this:
virsh edit some_vm <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/systemrescuecd-6.0.2.iso'/> <target dev='hdc' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='1' target='0' unit='0'/> </disk>
crond BAD FILE MODE
chmod 0644 /etc/cron.d/some_cron_file