Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67551 - app-admin/webalizer should set correct paths in Apache configs
Summary: app-admin/webalizer should set correct paths in Apache configs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 07:47 UTC by Narada Sage
Modified: 2005-07-07 15:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Narada Sage 2004-10-14 07:47:20 UTC
app-admin/webalizer-2.01.10-r4 gives incorrect postinst information if using apache2 even with the apache2 use flag enabled.  It says:

 * to update your apache.conf just type
 * echo "Include  conf/addon-modules/webalizer.conf"            >> /etc/apache/conf/apache.conf
 * 
 * Just type webalizer to generate your stats.
 * You can also use cron to generate them e.g. every day.
 * They can be accessed via http://localhost/webalizer

This is incorrect for apache2.  What it should say is that with apache2 there's no need to do anything.  The apache conf file is placed in /etc/apache2/conf/modules.d/55_webalizer.conf and everything in that directory is automatically imported by apache.  So it should merely ask to restart apache.  It should also say to edit /etc/webalizer.conf to add the hostname before running webalizer for the first time.

$ emerge info

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1)
=================================================================
System uname: 2.6.8.1 i686 Intel(R) Pentium(R) 4 CPU 2.50GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache notitles sandbox"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ http://www.mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X aalib acpi apache2 apm avi berkdb bitmap-fonts bzlib cdr crypt directfb divx4linux dvd encode escreen f77 fam fbcon foomaticdb ftp gd gdbm gif gtk gtk2 imagemagick imap imlib java jpeg libg++ libwww mad maildir mikmod mmap mmx motif mpeg msn mysql ncurses nocd nothemes oggvorbis openal opengl oscar oss pam pcre pdflib perl php png posix python quicktime readline sdl session simplexml slang soap sockets spell spl sqlite sse ssl svg svga tcpd tidy tiff tokenizer truetype usb videos x86 xine xml xml2 xmlrpc xmms xpm xprint xrandr xsl xv zlib"
Comment 1 Martin Mokrejš 2005-07-03 06:59:02 UTC
I had to do the following fix to /etc/apache2/modules.d/55_webalizer.conf:

-Alias /webalizer "/var/www/webalizer"
+Alias /webalizer "/var/www/localhost/htdocs/webalizer"


webalizer-2.01.10-r8, apache-2.0.54-r11
Comment 2 Jonathan Smith (RETIRED) gentoo-dev 2005-07-06 16:30:40 UTC
this issue does not exist in newer ebuilds. marking invalid
Comment 3 Renat Lumpau (RETIRED) gentoo-dev 2005-07-06 17:02:50 UTC
The original issue is invalid, but comment #1 is correct. Should be an easy fix
Comment 4 Narada Sage 2005-07-07 00:38:23 UTC
In the file:

/etc/apache2/conf/modules.d/55_webalizer.conf

is the content:

#
# This is the config snippet for Webalizer
#
# $Header: /var/cvsroot/gentoo-x86/app-
admin/webalizer/files/2.01.10/apache.webalizer,v 1.2 2004/07/18 02:25:49 
dragonheart Exp $

Alias /webalizer "/var/www/webalizer"

<Directory "/var/www/webalizer">
  Options None
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

Why is the alias in comment 1 necessary?  Doesn't the above do the trick?
Comment 5 Renat Lumpau (RETIRED) gentoo-dev 2005-07-07 15:27:02 UTC
-r9 in Portage sets Apache paths correctly.