Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
RedHat/CentOS configuration files and paths of interest.

Apache

TXT /etc/httpd/conf/httpd.conf — Main Apache server configuration file.

TXT /etc/httpd/conf.d/ssl.conf — Apache server configuration file providing SSL support.

DIR /etc/httpd/vhosts.d/ — Virtual host configuration files.

DIR /var/log/httpd/ — Apache logs.

Cron

DIR /var/spool/cron/ — Cron jobs by user.

DIR /etc/cron.hourly/ — Execute scripts in directory hourly.

DIR /etc/cron.daily/ — Execute scripts in directory daily.

DIR /etc/cron.weekly/ — Execute scripts in directory weekly.

DIR /etc/cron.monthly/ — Execute scripts in directory monthly.

DNS

TXT /etc/resolv.conf — Resolver configuration file.

TXT /etc/hosts — Static table lookup for hostnames.

History

TXT ~/.bash_history — User command history.

TXT ~/.mysql_history — User MySQL command configuration.

TXT ~/.viminfo — User vim history.

MySQL

TXT /etc/my.cnf — MySQL configuration file.

Nginx

TXT /etc/nginx/nginx.cnf — Nginx configuration file.

DIR /etc/nginx/sites-available/ — Virtual host configs for existing sites.

DIR /etc/nginx/sites-enabled/ — Virtual host configs for live sites.

DIR /var/log/nginx/ — Nginx logs.

OSSEC

TXT /opt/ossec/etc/ossec.conf — Main OSSEC configuration file.

TXT /opt/ossec/etc/shared/agent.conf — OSSEC agent configuration file.

TXT /opt/ossec/rules/local_rules.xml — Local rules for OSSEC.

DIR /opt/ossec/logs/ — OSSEC logs.

PHP

TXT /etc/php.ini — PHP's initialization file.

DIR /etc/php.d/ — Installed PHP extensions.

PHP FPM

TXT /etc/php-fpm.conf — PHP FPM's configuration file.

DIR /etc/php-fpm.d/ — PHP FPM pool definitions.

DIR /var/log/php-fpm/ — PHP FPM logs.

Postfix

TXT /etc/postfix/main.cf — Global Postfix configuration file.

TXT /etc/postfix/access — Postfix SMTP server access table. *

TXT /etc/postfix/virtual — Postfix virtual alias table format. *

TXT /var/log/maillog — Main Postfix log.

DIR /var/mail/ — Incoming mail by user.

* Run postmap /etc/postfix/<file> to create required <file>.db counterpart.

SELinux

TXT /var/log/audit/audit.log — SELinux audit log.

SSH

TXT ~/.ssh/authorized_keys — SSH authorized keys.

TXT ~/.ssh/known_hosts — SSH authorized hosts.

TXT ~/.ssh/id_rsa — SSH private key.

TXT ~/.ssh/id_rsa.pub — SSH public key.

TXT /etc/ssh/sshd_config — SSHD server system-wide configuration file.

TXT /etc/sudoers — Users allowed to sudo.

TXT /var/log/secure — SSH log.

Yum

TXT /etc/yum.conf — Yum configuration file.

DIR /etc/yum.repos.d/ — Installed Yum repositories.

Other

DIR /etc/init.d/ — Run scripts within directory on boot.


Legend

DIR — Directory.

TXT — Text file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment