What is the location of the configuration files, commands and the logfiles of all the stuff we installed. This is a quick reference card I’ve put in place for troubleshooting.

MySQL

Install location: /usr/local/mysql
Configuration location: /etc/my.cnf
Logfile location: /usr/local/mysql/data
Restart: sudo mysqladmin -p shutdown

Apache

Install location: /usr/local/apache2
Configuration location: /etc/httpd
Logfile location: /var/log/httpd

Starting: sudo /usr/local/apache2/bin/apachectl start
Stopping: sudo /usr/local/apache2/bin/apachectl stop
Restarting: sudo /usr/local/apache2/bin/apachectl restart

PHP

Install location: /usr/local/php
Configuration location: /etc/php.ini
Logfile location: configured in php.ini (not set)

Postfix

Install location: /usr/local/sbin
Configuration location: /usr/local/etc/postfix
Logfile location: /var/log/mail.log

Starting: sudo /usr/local/sbin/postfix start
Stopping: sudo /usr/local/sbin/postfix stop
Restarting: sudo /usr/local/sbin/postfix reload

Dovecot

Install location: /usr/local/sbin
Configuration location: /usr/local/etc/dovecot
Logfile location: /var/log/mail.log