<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>82486</bug_id>
          
          <creation_ts>2005-02-18 11:41 0000</creation_ts>
          <short_desc>mod_log_sql configuration file is incorrect.</short_desc>
          <delta_ts>2005-02-20 15:12:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>chtekk@gentoo.org</reporter>
          <assigned_to>apache-bugs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2005-02-18 11:41:57 0000</bug_when>
            <thetext>Hi, I&apos;ve noticed some problems with the shipped mod_log_sql config file (10_mod_log_sql.conf):
1) There is no mention of the LogSQLLoginInfo directive in that file, but that directive is strictly necessary to let the module work! Please add it. (See http://www.outoforder.cc/projects/apache/mod_log_sql/docs-2.0/#Sect.ConfigReference)
2) You use &quot;LogSQLDBParam user loguser&quot; etc. to specify the database connection proprieties, that should be done with LogSQLLoginInfo and thus after the change in 1) these lines are unnecessary.
3) &quot;LogSQLCreateTables on&quot; is there two times, one time it&apos;s commented with the mention that it isn&apos;t needed, the second time it&apos;s there, but like in the first mention: it is not needed since you turn &quot;LogSQLMassVirtualHosting on&quot; earlier.
4) With the new 1.100 version in portage, done with the new Apache ebuild classes, I noticed that also if you use Apache2, the config files is always /usr/portage/net-www/mod_log_sql/files/10_mod_log_sql.conf, and not 10_mod_log_sql_apache2.conf like it should be, thus you get a config file with &quot;LogSQLPreserveFile /var/log/apache/mod_slog_sql_preserve.sql&quot;, but with Apache2 it should be &quot;LogSQLPreserveFile /var/log/apache2/mod_slog_sql_preserve.sql&quot;.

Reproducible: Always
Steps to Reproduce:
1. Install the package.
2. Take a look at the default configuration file.
Actual Results:  
The mod doesn&apos;t work/doesn&apos;t work properly.

Expected Results:  
It should be configured correctly and work. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2005-02-18 13:52:07 0000</bug_when>
            <thetext>Ok, examining further the config files I also found a typo in the Apache1 config file, it&apos;s &quot;LoadModule log_sql_mysql_module extramoudles/mod_log_sql_mysql.so&quot; in the file, but it should be &quot;LoadModule log_sql_mysql_module extramodules/mod_log_sql_mysql.so&quot;. To help I&apos;ll attach the two rewritten config files. Also in mod_log_sql-1.100.ebuild change line 20 from:
APACHE2_MOD_CONF=&quot;${PV}/10_${PN}&quot;
to:
APACHE2_MOD_CONF=&quot;${PV}/10_${PN}_apache2&quot;
and then also that should work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2005-02-18 13:52:58 0000</bug_when>
            <thetext>Created an attachment (id=51548)
Rewritten config files.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2005-02-18 14:11:23 0000</bug_when>
            <thetext>Oups, two little errors in my previous postings:
1) It&apos;s not line 20, but line 21.
2) I forgot to mention that you also need to create a config file for Apache2 in the files/1.100/ directory if you use that modify, so you&apos;ll end up with:
files/10_mod_log_sql.conf
files/10_mod_log_sql_apache2.conf
files/1.100/10_mod_log_sql.conf
files/1.100/10_mod_log_sql_apache2.conf
The 10_mod_log_sql.conf and 10_mod_log_sql_apache2.conf are both the same as mine, and I tried it and it works.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2005-02-19 05:26:35 0000</bug_when>
            <thetext>Ahh another oups! :) For the files/1.100/10_mod_log_sql*.conf you have to change the LoadModule directives paths from extramodules/ to modules/, then it will work perfectly fine (atm it&apos;s logging my webserver, so it does! :D ).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2005-02-20 15:12:22 0000</bug_when>
            <thetext>&gt; 1) There is no mention of the LogSQLLoginInfo directive

added

&gt; 3) &quot;LogSQLCreateTables on&quot; is there two times

fixed

&gt; 4) With the new 1.100 version in portage, done with the new Apache ebuild classes, I noticed that also if you use Apache2, the config files is always /usr/portage/net-www/mod_log_sql/files/10_mod_log_sql.conf, and not 10_mod_log_sql_apache2.conf like it should be

It shouldn&apos;t

&gt; thus you get a config file with &quot;LogSQLPreserveFile /var/log/apache/mod_slog_sql_preserve.sql&quot;, but with Apache2 it should be &quot;LogSQLPreserveFile /var/log/apache2/mod_slog_sql_preserve.sql&quot;.

fixed by using relative path information in mod_log_sql.conf

i reviewed and completely redid mod_log_sql.conf it&apos;s clean now and provides good default behaviour</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>51548</attachid>
            <date>2005-02-18 13:52 0000</date>
            <desc>Rewritten config files.</desc>
            <filename>mod_log_sql_correct.txt</filename>
            <type>text/plain</type>
            <data encoding="base64">MTBfbW9kX2xvZ19zcWwuY29uZjoKCjxJZkRlZmluZSBMT0dfU1FMPgoKICAgICMgTG9hZCB0aGUg
bW9kdWxlIGZpcnN0CiAgICA8SWZNb2R1bGUgIW1vZF9sb2dfc3FsLmM+CiAgICAgICAgTG9hZE1v
ZHVsZSBsb2dfc3FsX21vZHVsZSAgICAgICAgZXh0cmFtb2R1bGVzL21vZF9sb2dfc3FsLnNvCiAg
ICAgICAgTG9hZE1vZHVsZSBsb2dfc3FsX215c3FsX21vZHVsZSAgZXh0cmFtb2R1bGVzL21vZF9s
b2dfc3FsX215c3F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A8L0lmTW9kdWxlPgo8L0lmRGVmaW5lPg==
</data>        

          </attachment>
    </bug>

</bugzilla>