Home > Cpanel/Linux Internals > All services log files

All services log files

October 6th, 2009
  1. Apache:

======

Services Apchae

Version /usr/local/apache/bin/httpd -v Server version: Apache/1.3.37 (Unix)
Server built: Sep 15 2006 07:11:04

PortNumbers Unsecured http:// 80,
Secured https:// 443,

Paths /home/username/public_html

Configurationfiles /etc/httpd/conf/httpd.conf

Logfiles accessing logs ==> /usr/local/apache/logs/access_log
site logs ==> /usr/local/apache/logs/audit_log
error logs ==> /usr/local/apache/logs/error_log
We disabled ==> /usr/local/apache/logs/modsec_debug_log
domianlogs ==> /usr/local/apache/domlogs/domainname
bytes logs ==> /usr/local/apache/domlogs/domainname-bytes_log

Daemon httpd

Stoping service killall -9 httpd
service httpd stop
/etc/init.d/httpd stop

Restarting services service httpd start
service httpd restart
/etc/init.d/httpd start
/etc/init.d/httpd restart
/scripts/restartsrv_httpd
service httpd startssl

********************************************************************************************
Installing

Exim
====

Services Exim

Version

Paths mail path ==> /home/username/mail
mail account path ==> /home/username/mail/domain.com/username/
forwarders ==> /etc/valiases/domain.com
filters ==> /etc/vfilters/domain.com
filters ==> /home/username/.filter
sendmail ==> /usr/sbin/sendmail
Mail Quota ==> /home/username/etc/domain.com/quota

Configurationfiles /etc/exim.conf

Logfiles mail logs ==> /var/log/exim_mainlog
pop logs ==> /var/log/maillog
To check exim.conf logs ==> /var/log/paniclog
reject logs ==> /var/log/rejectlog
spamassasin ==> /etc/mail/spamassassin/local.cf

Daemons exim

Stoping service killall -9 exim

Restarting services service exim stop
service exim start
service exim restart
/etc/init.d/exim stop
/etc/init.d/exim start
/etc/init.d/exim restart
/scripts/restartsrv_exim

PortNumbers smtp 25
pop 110

Mail queue path /var/spool/exim/input

exim -bp ==> Shows all the messages in the queue

exim -bpc ==> Show the count of messages in the queue

exim -M < Message Id > ==> Delivers the mail from the queue with the given message id

exim -Mvl < Message Id > ==> Lists the log info for the given message id

exim -Mvh < Message Id > ==> Will show the headers of the message id

exim -Mvb < Message Id > ==> Will show the complete body of the message id

exim -Mrm ==> Will remove the mail from the queue with the given message id

exim -bp | exiqsumm ==> Will give complete summary of the queue

As grep is used to grep for a word in the file similarly exigrep is used to grep the mail logs

exigrep “string” /var/log/exim_mainlog

In the same way exiqgrep is used to from the queue

exiqgrep -z ==> Shows all the messages that are frozen in the queue

exiqgrep -zc ==> Shows the count of frozen messages in the queue

exiqgrep -zi ==> Gives the message ids of the frozen mails in the queue

exiqgrep -zi | xargs exim -Mrm ==> Will remove all the frozen mails in the queue

exinext mail|domain ==> Will show when the mail has tried to deliver to that domain and when is the next time to try

exigrep “YYYY-MM-DD” /var/log/exim_mainlog | eximstats -txt=testing.txt # Will give complete mail stats for that date

exiqgrep -f domain.com ==> Will show the mails for that domain

exiqgrep -r domain.com ==> Will show the mails for the receipent domain

exiqgrep -f domain.com -[c|i] ==> Will show count for the sending domain if c is used and will show messg ids if i is used

exiqgrep -r domain.com -[c|i] ==>Will show count for the receiving domain if c is used and will show messg ids if i is used

FTP:

FTP - File Transfer Protocol. A protocol that allows clients to connect to FTP servers and download and upload files.

Paths                                    /home/username/public_html

configuration Files      Proftp      ==> /etc/proftpd.conf
Pureftp     ==> /etc/pure-ftpd.conf

Log Files                                /var/log/messages

Daemons                  Proftp      ==> proftpd
Pureftpd    ==> pure-ftpd
If you use pure-ftpd

Stoping service          killall -9 pure-ftpd

If you use pure-ftpd
Restarting services      service pure-ftpd  stop
service pure-ftpd  start
service pure-fptd  restart
/etc/init.d/pure-ftpd stop
/etc/init.d/pure-ftpd start
/etc/init.d/pure-ftpd  restart
/scripts/restartsrv_pureftpd

PortNumbers              21,20

=========================================================================================
Mysql

Version                  mysql -v

Configuration            /etc/my.cnf

Paths                    database ==> /var/lib/mysql/username_database

Log Files                /var/log/mysqld.log

Stoping service          killall -9 mysql
If you use pure-ftpd
Restarting services      service mysql start
service mysql stop
service mysql restart
/etc/init.d/mysql stop
/etc/init.d/mysql start
/etc/init.d/mysql  restart
/scripts/restartsrv_mysql
===========================================================================================

php                  : /usr/bin/php

Perl                 : /usr/bin/perl

Cpanel user deatils  : /var/cpanel/users/username

php.ini              : /usr/local/Zend/etc/php.ini or /usr/local/lib

===========================================================================================
Cron:

Paths           server             ==> /etc/cron
usercron           ==> /var/spool/cron/username

Log file        tail -f /var/log/cron

Restarting services      service crond  stop
service crond  start
service crond  restart
/etc/init.d/crond stop
/etc/init.d/crond start
/etc/init.d/crond  restart
/scripts/restartsrv_crond

crontab -l [ List the crons set in the server ]

crontab -e [ To edit the cron for system wide ] control X to save and quit

crontab -e -u <username> [ To check the user crontab file ]

crontab -r      Remove your crontab file.

  1. crontab -v      Display the last time you edited your crontab file. (This option is only available on a few systems.)

Cpanel/Linux Internals

  1. No comments yet.
  1. No trackbacks yet.