Ano-Tech Computers
Enter keyword:

mod_log_sql directives not recognized by Apache 1.3
Problem:
After carefully compiling and installing mod_log_sql, and then carefully editing httpd.conf as per the documentation, Apache still won't recognize any of the new config directives. All modules are confirmed to be in place.
 
Solution:
The documentation is incomplete. The following FOUR lines are needed to load and add the module with mysql support:

LoadModule log_sql_module modules/mod_log_sql.so
LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
AddModule mod_log_sql.c
AddModule mod_log_sql_mysql.c

(The third line is missing in som versions of the online documentation)

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles