⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 统计日志的工具
💻
字号:
Installation instructions for The WebalizerThe Webalizer is distributed in either source or binary distributions,and installation is different for each type.  Regardless of the typeof installation, you need to obtain and un-tar/un-zip the distributionfile somewhere.  For binary distributions, you should create a directorysomewhere and chdir to it before unpacking the file.  Source distributionswill automagically create a directory for you (webalizer-x.xx-xx).  Ifyou are upgrading from a previous version, check the CHANGES file, andthe README.FIRST file for important upgrade information.For Binary distributions------------------------You should have all the files you need in the directory you createdwhen you un-tarred/un-zipped the distribution file.  The file'webalizer' in this directory is the binary executable.  Copy thissomeplace useful, like /usr/local/bin or /usr/bin.  A man page forThe Webalizer is also supplied... If desired, copy the file'webalizer.1' to your local man directory (ie: /usr/local/man/man1).(You may also need to run 'makeinfo' or similar)Note: There may also be platform specific installation instructions      and/or usage notes supplied with the binary distribution.  You      should read them, as that will be your starting point if problems      are encountered.  Most of the binary distributions are submitted      by users, and I cannot support them the same way I can the      Linux binary distribution and the source code itself.For Source distributions------------------------The Webalizer requires the GD graphics library by Tom Boutell.  Ifyou don't already have it, go to http://www.boutell.com/gd/ andgrab a copy.New style build:The Webalizer source distribution now comes packaged with a GNUautoconf 'configure' script, which should allow you to simply type:./configuremakemake installNormal configure options apply, type ./configure --help to get acomplete list.  A few options in particular may be useful:--with-language=<language>Allows you to specify the language to use.  Check the /lang directoryto see the available language choices.  As an example, you could use./configure --with-language=frenchto compile the program using french (webalizer_lang.french) for output.You can also use the --without-language switch, which will use thedefault language (english).--with-gdlib=<path-to-gd-library>--with-gd=<path-to-gd-headers>The configure script will attempt to locate the gd library and headerfiles in some of the more usual places, and should find them in mostcases.  If you have the files someplace unusual, you can specifyadditional locations to look for them with this option.  (If you arecompiling gd in your home directory, and don't want to or can't putthem in the normal system places, create a directory under the webalizernamed 'gd' or 'gd1.3' for it and the script should find it withoutproblems or extra command line switches).--enable-dnsDNS lookup features are added.  This simply adds the -DUSE_DNS compilerswitch.  Several dependencies are present when using the DNS code,which is why it must be enabled manually.  If you system supports theDNS functionality, great.. if not, don't enable it.Some systems may require unusual settings that the configure scriptcannot determine.  You can pass values to the script by settingenvironment variables.  For example:CC=c89 CFLAGS=-O LIBS=-lposix ./configure --with-language=germanWould allow you to set the compiler (c89) and various flags andlibraries to use, which would then be passed to the configure scriptand eventually to the Makefile generated.  It also will cause theprogram to be compiled using German instead of the English default.If the configure script doesn't work for you.. please let me know(along with relevant info like system type, compiler, etc..)  If youare able and can tweek something to make it work, let me know as well.Old style build:If you have a platform that the configure script won't work on, orsome other situation where you have to configure and build thesource yourself,  the file 'Makefile.std' is a "stock" Makefilethat you can use to build the Webalizer.  Copy or rename the fileto 'Makefile', edit to match your system, and do the usual 'make'.If everything seems to have gone well, next type 'make install'.This will install the Webalizer on your system, and put a sampleconfiguration file in /etc (named 'webalizer.conf.sample').  Ifyou don't want to use the 'make install' method... just copy thefile 'webalizer' to someplace usefull and you are ready to go :)Makefile.std works on a stock slackware 3.6 linux system. YMMV.Usage-----When run, The Webalizer will read the specified log file andproduce HTML output in the directory specified (or currentdirectory if none).  You may specify various configurationoptions either on the command line or in a configuration file.The format of the command line is:webalizer [options] [log_file]Where 'options' may be any of the valid command line optionsdescribed in the README file.  If a log filename is not given,input is taken from stdin.  A typical command line might looksomething similar to:webalizer /var/lib/httpd/logs/access_logThis will produce output in the current directory based on thelogfile /var/lib/httpd/logs/access_log.  Another example:webalizer -c somehost.confThis will read the configuration file somehost.conf, whichshould specify, among other things, the log filename andoutput directory to use.  You can use 'webalizer -h' to geta list of available command line options, or view the fileREADME for complete instructions on all available configurationoptions.  You should note that The Webalizer will _always_look for a configuration file named 'webalizer.conf' in eitherthe current directory or in /etc/, and will process that file_before_ any other configuration or command line options.  Ifyou run a single server, you may want to create a defaultconfiguration file and place it in the /etc/ directory.  Thiswill allow you to simply type 'webalizer' without the need tospecify additional command line options.Configuration-------------The Webalizer can be customized in many ways using either thecommand line or configuration files.  To test The Webalizer,type: 'webalizer /var/lib/httpd/logs/access_log', changing thedirectory to wherever your log files are.  After processing,you should have the output and a file named index.html whichcan be viewed with any browser.  The Webalizer can accept manycommand line options as well, type 'webalizer -h' to view them.In addition to the command line options, The Webalizer canbe customized using configuration files. There is a sample.conffile that is part of both the source and binary distributionsthat can be used as a 'template' for creating your own siteconfiguration file.  Just make a copy of the file and name itsomething like 'mysite.conf'.  Edit the new file to match yourparticular setup and taste.To test the new configuration file, type 'webalizer -c mysite.conf'(or whatever your configuration file is named).  Fire up thebrowser and look at the results.  If you rename your newconfiguration file to 'webalizer.conf', you will only needto type 'webalizer', and The Webalizer will use it as thedefault.  See the README file for more on configuation anduse of configuation files.Language Support----------------Language support is provided as language specific headerfiles that must be compiled into the program.  If you don'thave the source code, get it.  If you can't compile theprogram yourself, ask a friend.  The /lang/ directory ofthe distribution contains all supported languages at thetime of release.  Additional/updated language files willbe found at ftp://ftp.mrunix.net/pub/webalizer/lang andare always the most current versions.To build with language support, use the --with-languageoption of the configure script.  This will automagicallydo for you the steps described below.  If you can't usethe configure script, you can manually select the languagefile to use.In the webalizer source directory, you will find a symboliclink for the file webalizer_lang.h, and it will be pointingto the file webalizer_lang.english which is the default.Delete the link (ie: rm webalizer_lang.h) and create a newone to the language file you want The Webalizer to use(ie: ln -s lang/webalizer_lang.spanish webalizer_lang.h)and re-compile the program.Note: The source distribution of The Webalizer contains all      language support files that were available at the time.      Additional/updated language files can be found at:      ftp://ftp.mrunix.net/pub/webalizer/lang where I will put      them as I receive them.Common Questions----------------Q: Will it run on [some platform]A: If it is a *nix platform, it should without a problem.  If it's   something different, probably not and your on your own if you   want to try to make it work.Q: When I compile, I get "file not found" errors?A: Most likely, the compiler cant find the header files for the   GD Graphics library.  If they are someplace other than the   default /usr/local/include/gd, then you need to change the   GDLIB variable in the Makefile to point to the proper place.Q: I get "libgd not found' errors?A: You don't have the GD graphics located in a standard library   path, or you don't have the GD graphics library at all.  If   the later, go to http://www.boutell.com/gd/ and grab a copy.   If you do have it, add a -L switch in the Makefile to point   to the proper location.Q: I can't get the GD graphics library to compile?A: The GD Library was written (and hopefully maintained) by   Tom Boutell, not me.  Visit his web site, ask him a   question or hit one of the newsgroups...  I can't help you   out too much with this one.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -