Posted by: Mangesh_Linux_Administrator | November 8, 2010

DirectAdmin File structure & log files


DirectAdmin Configuration Files:

/etc/

passwd
shadow
group
exim.conf
exim.pl
system_filter.exim
exim.cert (exim 4)
exim.key (exim 4)
proftpd.conf
proftpd.vhosts.conf
proftpd.passwd
hosts
resolv.conf
named.conf (/etc/namedb/named.conf on FreeBSD, /etc/bind/named.conf on debian)
dovecot.conf
ssh/sshd_config
virtual/

domainowners
domains
pophosts
majordomo/*
*

httpd/

conf/

httpd.conf
ips.conf
ssl.crt/

server.crt

ssl.key/

server.key

extra/

/var/

named/* (/etc/namedb/* on freebsd, /etc/bind/* on debian)
spool/

virtual/*
mail/*
cron/*

www/*
log/*
lib/

mysql/* (/home/mysql/* on freebsd and debian)

/usr/local/

frontpage/

*.cnf

directadmin/*

/home/*

 

*Note: these files/directories are what DirectAdmin uses.
Do not blindly delete them if you are attempting to uninstall DirectAdmin.
Many are required by the system. Deleteing system files can destroy your system.

To reset the permissions on these files, check: http://help.directadmin.com/item.php?id=173

—————————————————————————————————————————-

Log File Paths

The first place you should go when trying to debug a problem is the log file for that program. The list of Log Files are as follows:

DirectAdmin:
/var/log/directadmin/error.log
/var/log/directadmin/errortaskq.log
/var/log/directadmin/system.log
/var/log/directadmin/security.log

Apache:
/var/log/httpd/error_log
/var/log/httpd/access_log
/var/log/httpd/suexec_log
/var/log/httpd/fpexec_log
/var/log/httpd/domains/domain.com.error.log
/var/log/httpd/domains/domain.com.log
/var/log/messages (generic errors)

Proftpd:
/var/log/proftpd/access.log
/var/log/proftpd/auth.log
/var/log/messages (generic errors)

vm-pop3d:
/var/log/maillog
/var/log/messages

named (bind):
/var/log/messages

exim:
/var/log/exim/mainlog
/var/log/exim/paniclog
/var/log/exim/processlog
/var/log/exim/rejectlog
(on FreeBSD, they have “exim_” in front of the filenames)

mysqld:
RedHat:
/var/lib/mysql/server.hostname.com.err
FreeBSD:
/usr/local/mysql/data/server.hostname.com.err

crond:
/var/log/cron

To view a log file, run:

less /var/log/filename

Where /var/log/filename is the path of the log you wish to view. If the log is too large you can use the “tail” command:

tail -n 30 /var/log/filename

Where 30 is the number of lines from the end you wish to view.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: