diff options
| -rw-r--r-- | INSTALL | 10 | ||||
| -rwxr-xr-x | make_combined_log.pl | 4 |
2 files changed, 8 insertions, 6 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | $Id: INSTALL,v 1.2 2001/12/03 19:54:02 helios Exp $ | 1 | $Id: INSTALL,v 1.3 2002/01/02 20:47:44 helios Exp $ |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | Requirements | 4 | Requirements |
| @@ -44,10 +44,12 @@ instructions.) | |||
| 44 | # tar zxf mod_log_mysql.tar.gz -C /usr/local/src | 44 | # tar zxf mod_log_mysql.tar.gz -C /usr/local/src |
| 45 | # cd /usr/local/src/mod_log_mysql | 45 | # cd /usr/local/src/mod_log_mysql |
| 46 | 46 | ||
| 47 | 2) Instruct apxs to compile and install the module as a DSO. (My apxs is | 47 | 2) Instruct apxs to compile and install the module as a DSO. You need |
| 48 | in /usr/local/Apache/bin, perform a "locate" to find yours...) | 48 | to know two things before you run apxs: |
| 49 | - The location of the apxs binary, find using 'locate apxs' | ||
| 50 | - The location of your MySQL libraries, find using 'locate libmysqlclient' | ||
| 49 | 51 | ||
| 50 | # <path>/apxs -i -a -c mod_log_mysql.c | 52 | # <path>/apxs -i -a -c -L<path to MySQL libs> -lmysqlclient -lz mod_log_mysql.c |
| 51 | 53 | ||
| 52 | You should see something like this: | 54 | You should see something like this: |
| 53 | 55 | ||
diff --git a/make_combined_log.pl b/make_combined_log.pl index e72cabb..cefc728 100755 --- a/make_combined_log.pl +++ b/make_combined_log.pl | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/usr/bin/perl | 1 | #!/usr/bin/perl |
| 2 | 2 | ||
| 3 | # $Id: make_combined_log.pl,v 1.3 2001/12/04 00:11:59 helios Exp $ | 3 | # $Id: make_combined_log.pl,v 1.4 2002/01/02 20:47:44 helios Exp $ |
| 4 | # | 4 | # |
| 5 | # make_combined_log.pl | 5 | # make_combined_log.pl |
| 6 | # | 6 | # |
| @@ -93,7 +93,7 @@ while (@data = $records->fetchrow_array) { | |||
| 93 | 93 | ||
| 94 | # Create format for leading-zero formatting | 94 | # Create format for leading-zero formatting |
| 95 | if ($mday < 10) { $mday = "0$mday"; } | 95 | if ($mday < 10) { $mday = "0$mday"; } |
| 96 | if ($month < 10) { $month = "0$month"; } | 96 | if ($mon < 10) { $mon = "0$mon"; } |
| 97 | if ($hour < 10) { $hour = "0$hour"; } | 97 | if ($hour < 10) { $hour = "0$hour"; } |
| 98 | if ($min < 10) { $min = "0$min"; } | 98 | if ($min < 10) { $min = "0$min"; } |
| 99 | if ($sec < 10) { $sec = "0$sec"; } | 99 | if ($sec < 10) { $sec = "0$sec"; } |
