RSS

Cpanel Log Konumları

cPanel logs most activity that happens on a server to log files so you can go back and review log entries for problems, instead of having to be on the server at the time of them happening.

This guide will cover the locations of the log files for things such as access logs, Apache web server logs, email logs, error logs, ftp logs, MySQL logs, and WHM logs.

If you’d like to have a poster of the 2013 cPanel logs location reference, you can request them from cPanel directly.

You can also view a digitial copy of this poster directly online at go.cPanel.net/logposter.

cPanel logs

Access logs and user actions /usr/local/cpanel/logs/access_log
Account transfers and misc. logs /var/cpanel/logs
Auditing log (account creations, deletions, etc) /var/cpanel/accounting.log
Backup logs /usr/local/cpanel/logs/cpbackup
Brute force protection (cphulkd) log /usr/local/cpanel/logs/cphulkd.log
Cpanel dnsadmin dns clustering daemon /usr/local/cpanel/logs/dnsadmin_log
Cpanel taskqueue processing daemon /usr/local/cpanel/logs/queueprocd.log
DBmapping /usr/local/cpanel/logs/setupdbmap_log
EasyApache build logs /usr/local/cpanel/logs/easy/apache/
Error log /usr/local/cpanel/logs/error_log
Installation log /var/log/cpanel
License updates and errors /usr/local/cpanel/logs/license_log
Locale database modifications /usr/local/cpanel/logs/build_locale_database_log
Login errors (CPSRVD) /usr/local/cpanel/logs/login_log
Horde /var/cpanel/horde/log/
RoundCube /var/cpanel/roundcube/log/
SquirrelMail /var/cpanel/squirrelmail/
Panic log /usr/local/cpanel/logs/panic_log
Per account bandwidth history (Cached) /var/cpanel/bandwidth.cache/{USERNAME}
Per account bandwidth history (Human Readable) /var/cpanel/bandwidth/{USERNAME}
Service status logs /var/log/chkservd.log
Tailwatch driver tailwatchd log /usr/local/cpanel/logs/tailwatch_log
Update analysis reporting /usr/local/cpanel/logs/updated_analysis/{TIMESTAMP}.log
Update (UPCP) log /var/cpanel/updatelogs/updated.{TIMESTAMP}.log
WebDisk (CPDAVD) /usr/local/cpanel/logs/cpdavd_error_log
Website statistics log /usr/local/cpanel/logs/stats_log

cPanel access log

Access logs and user actions /usr/local/cpanel/logs/access_log

cPanel apache log

Apache restarts done through cPanel and WHM /usr/local/cpanel/logs/safeapcherestart_log
Domain access logs /usr/local/apache/domlogs/{DOMAIN}
Processing of log splitting /usr/local/cpanel/logs/splitlogs_log
suPHP audit log /usr/local/apache/logs/suphp_log
Web server and CGI application error log /usr/local/apache/logs/error_log

cPanel email log

Delivery and receipt log /var/log/exim_mainlog
Incoming mail queue /var/spool/exim/input/
Log of messages rejected based on ACLS or other policies /var/log/exim_rejectlog
Unexpected/Fatal error log /var/log/exim_paniclog
IMAP, POP login attempts, transactions, fatal errors and spam scoring /var/log/maillog /var/log/messages
Mailman /usr/local/cpanel/3rdparty/mailmain/logs

MySQL log

MySQL error log /var/lib/mysql/{SERVER_NAME}.err
MySQL slow query log (if enabled in my.cnf) /var/log/slowqueries

Cpanel’de problemlerin kaynakları için bu loglara bakabilirsiniz.

 

Posted by on 23 Ekim 2014 in Bilgisayar, Server

Leave a comment

Linux’ta Dosyaları büyüklüğe göre sıralamak

Bulunduğunuz dizindeki dosyaları ve klasörleri(alt klasörler dahil) büyüklüğüne göre sıralamak için aşagıkaki komutu kullanabilirsiniz.

du -s * | sort -nr | cut -f2- | xargs du -hs

 

Posted by on 24 Ağustos 2014 in Bilgisayar, Linux

Leave a comment

DBERROR db4: /var/lib/imap/deliver.db: unexpected file type or format

Problem:

Aug 23 17:37:50 localhost master[16716]: about to exec /usr/lib/cyrus-imapd/lmtpd
Aug 23 17:37:50 localhost lmtpunix[16716]: executed
Aug 23 17:37:50 localhost lmtpunix[16716]: DBERROR db4: /var/lib/imap/deliver.db: unexpected file type or format
Aug 23 17:37:50 localhost lmtpunix[16716]: DBERROR: opening /var/lib/imap/deliver.db: Invalid argument
Aug 23 17:37:50 localhost lmtpunix[16716]: DBERROR: opening /var/lib/imap/deliver.db: cyrusdb error
Aug 23 17:37:50 localhost lmtpunix[16716]: FATAL: lmtpd: unable to init duplicate delivery database
Aug 23 17:37:50 localhost master[3545]: process 16716 exited, status 75
Aug 23 17:37:50 localhost master[3545]: service lmtpunix pid 16716 in READY state: terminated abnormally

 

Solution:

# service cyrus-imapd stop
# rm /var/lib/imap/tls_sessions.db*
# rm /var/lib/imap/deliver.db*
# rm /var/lib/imap/db/*
# service cyrus-imapd start
 

Posted by on 23 Ağustos 2014 in Bilgisayar, Linux, Server

Leave a comment

Speed Up Cydia – Remove Cydia ads

SSH into your iDevice and browse to /Applications/Cydia/ and create two copies of package.js computer ( one is your backup and you will edit the other one ) .
Inside that file search for
var depiction = package.depiction
. Edit that line so that
depiction = package.depiction
will become
depiction = null
Now save the file and copy it back to /Applications/Cydia/ , overwriting the original one. Thats it. Now restart Cydia and enjoy.

 

Posted by on 23 Ağustos 2014 in Bilgisayar

Leave a comment

Compress MysqlDump Output

      Making backup

all databases

    :

mysqldump -u root -p --all-databases > dump.sql

      Making backup only

one database

    :

mysqldump -u root -p --databases db1 > dump.sql

      Making backup

many databases

    :

mysqldump -u root -p --databases db1 db2 db... > dump.sql

      Making backup with

triggers

    :

mysqldump -u root -p --triggers --all-databases > dump.sql

    Making backup with

procedures and functions:

mysqldump -u root -p --routines --all-databases > dump.sql

    Now let’s compress our dump in real time with

gzip:

mysqldump -u root -p --all-databases | gzip > dump.sql.gz

    We can still reach a higher compression ratio using the

bzip2:

mysqldump -u root -p --all-databases | bzip2 > dump.sql.bz2

Making a comparison between the dump with three compression options (none, gzip and bzip2) had the following result:

    Dump normal – 947k
    Dump com gzip – 297k
    Dump com bzip2 – 205k

And how do I restore the dump?

Normal:

mysql -u root -p < dump.sql

gzip:

gunzip < dump.sql.gz | mysql -u root -p

bzip2:

bunzip2 < dump.sql.bz2 | mysql -u root -p

 

Posted by on 18 Ağustos 2014 in Bilgisayar, SQL

Leave a comment