title: Common way to find apache directory and logs
body: <p>is there a common way to find the apaches directory and its log files?
  I found that question so often in the web but never a satisfying answer for it.</p>
  
  <p>I would like to write a bash script that can find the path and the log files on any server.
  But I struggle now with versions. Sometimes there is httpd installed and sometimes apache2. So that is the first impediment.
  Then I found out that often the /etc/apache2/envvars were not initialized and so there is no access to APACHE_LOG_DIR and so on.</p>
  
  <p>Isn't there really no easy to way to find the installation path and from there log files???</p>