Unix command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix command
# 15  
Old 11-16-2001
Thank you for reply but it doesn't help
Quote:
##
## httpd.conf -- Apache HTTP server configuration file
##

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://www.apache.org/docs/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# After this file is processed, the server will look for and process
# /usr/local/apache/conf/srm.conf and then /usr/local/apache/conf/access.conf
# unless you have overridden these with ResourceConfig and/or
# AccessConfig directives here.
#
# The configuration directives are grouped into three basic sections:
# 1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
# 2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
# 3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/usr/local/apache" will be interpreted by the
# server as "/usr/local/apache/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
/usr/local/apache/conf/httpd.conf: unmodified: line 1
I can't see any record anyhow related with a webalizer Smilie

by the way
I can generate the report by usung:
Quote:
webalizer -c webalizer.conf -N 10 -D dns_cache.db /usr/local/apache/logs/access_log
or

webalizer -o /usr/home/sitename/public_html/statistic -D dns_cache.db /usr/local/apache/logs/access_log
but after that everything is going as it used to be (same ROOT messages)

Thank you
strok
# 16  
Old 11-16-2001
Apache itself has nothing to do with webalizer per se.

I was pointing this out because I thought you also wanted
to know how to configure apache Smilie

Anyway, the first thing you should do is find webalizer...

find / -name webalizer -print

...next, check root's cron file; as root do...

crontab -l

...this will list out the cron job file for root which is where the
emails (about webalizer errors) are comming from.
Post that output as well so we can go over the specific
entry. I'm assuming that webalizer may be complaining that
it cannot find the apache access log at: /var/log/httpd-access.log
You should also do...

fins / -name httpd-access.log -print

...to find exactly where that file is. You can then edit the cron
job file by, as root do...

crontab -e

...and change the /var/log/httpd-access.log in the webalizer line
to the correct location.


Don't worry, we'll get there Smilie
# 17  
Old 11-16-2001
webalizer is located in (/usr/local/bin/webalizer)


Quote:
virt1-180# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.UmVd7L2XUU installed on Fri Aug 31 14:17:22 2001)
# (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.2 2000/12/11 01:03:31 obrien Exp $)
1 * * * * webalizer -pQ -o /usr/local/share/doc/apache/webalizer /var/log/httpd-access.log
virt1-180#
Quote:
virt1-180# find / -name httpd-access.log -print
/var/log/httpd-access.log
virt1-180#
Quote:
virt1-180# crontab -e


1 * * * * webalizer -pQ -o /usr/local/share/doc/apache/webalizer /var/log/httpd-access.log
~
~
~
~
~
~
~
~
Sorry for the dumb question.
But I have problems to eddit this line Smilie
Do I have to run some special command ?

Thanks

Last edited by strok; 11-16-2001 at 01:12 PM..
strok
# 18  
Old 11-16-2001
Sorry about that...

I should have been more concise about the "crontab -e" stuff.
This command will bring up the crontab file in vi for editing.
If you are not familiar with vi then I would suggest another
method (a later post). However, for now just get out of that
by doing...

:q!<Enter_key>

Essentially, you only do that to actually edit the crontab file.
Before we do that, I wanted to "see" what was in it and
also find out the exact location of the log file.

It appears that /var/log/httpd-access.log is actually there
as verified by...

virt1-180# find / -name httpd-access.log -print
/var/log/httpd-access.log
virt1-180#

...since I'm not a "webalizer" guru, I'm going to have to read
through (the very sparse) documentation but I suspect that
there is somthing wrong with the first parameter...

-o /usr/local/share/doc/apache/webalizer

...I will get back with more info.
# 19  
Old 11-16-2001
Thank youSmilie

by the way
Are you a sendmail guru ?
If yes, than I have a few more questions Smilie
strok
# 20  
Old 11-17-2001
According the the webalizer docs I have found
at: http://tvcnet.com/services/webalizer/readme.txt
the "-o" option specifies an output directory...

-o dir This options specifies the output directory for the reports.
If not specified here or in a configuration file, the current
default directory will be used for output.
Config file keyword: OutputDir

...so you need to verify if the directory
/usr/local/share/doc/apache/webalizer
exists. You can do this by...

cd /usr/local/share/doc/apache/webalizer

...or...

cd /usr/local/share/doc/apache
ls -l

...and you should see a webalizer directory...

drwxr-xr-x 2 root 1024 Oct 10 2001 webalizer

...or somthing like that. Can you verify this?


On the question of sendmail, if you search this
forum for "sendmail", you will find several
threads which may have answers for you. Otherwise,
you should start a new thread. I personally only
"hack" around with sendmail. There are others
with considerably more knowledge on that. Smilie
# 21  
Old 11-18-2001
Thank you for your help
strok
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies

2. Shell Programming and Scripting

Specify an entire UNIX command as a command line argument

I'm trying to write a bash script called YN that looks like the following YN "Specify a question" "doThis" "doThat" where "doThis" will be executed if the answer is "y", otherwise "doThat". For example YN "Do you want to list the file dog?" "ls -al dog" "" Here's my attempt... (3 Replies)
Discussion started by: LeoKSimon
3 Replies

3. UNIX Desktop Questions & Answers

Can Unix access Windows' File through Command Prompt in Unix

Hi all, I wish to know whether Unix can access window's file in Unix's terminal? Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies

4. UNIX for Dummies Questions & Answers

New to Unix command line and have a question about the "sort" command

I am going through the Unix Made Easy second edition book by John Muster. So far it's been very informative and I can tell it may be a bit out of date. In one of the exercises it talks about the "sort" command and using it to sort column's of data etc. The "sort" command has changed a bit and... (1 Reply)
Discussion started by: budfoxcat
1 Replies

5. UNIX for Advanced & Expert Users

unix command : how to insert text at the cursor location via command line?

Hi, Well my title isn't very clear I think. So to understand my goal: I have a script "test1" #!/bin/bash xvkbd -text blabla with xbindkeys, I bind F5 key in order it runs my test1 script So when I press F5, test1 runs. I'm under Emacs/Vi and I press F5 in order to have "blabla" be... (0 Replies)
Discussion started by: xib.be
0 Replies

6. Shell Programming and Scripting

assign a command line argument and a unix command to awk variables

Hi , I have a piece of code ...wherein I need to assign the following ... 1) A command line argument to a variable e.g origCount=ARGV 2) A unix command to a variable e.g result=`wc -l testFile.txt` in my awk shell script When I do this : print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies

7. HP-UX

How to use more than one MPE command STREAM with Unix command in a single shell?

Hello, I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM" sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM" sh "nlshCMD 'STREAM <job name3>' |... (1 Reply)
Discussion started by: bosskr
1 Replies

8. Shell Programming and Scripting

How to use more than one MPE command STREAM with Unix command in a single shell?

Hello, I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM" sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM" sh "nlshCMD 'STREAM <job name3>' |... (0 Replies)
Discussion started by: bosskr
0 Replies

9. UNIX for Dummies Questions & Answers

wc command help.... and other unix command....... urgent

hi all. thanks for looking i am doing some homework. one question is that when type wc and then how to tell the program that we have finished entering data? also why do some operating systems report 22 as the number of bytes in the file above, while others only 20? thanks so much,... (1 Reply)
Discussion started by: dashi2k
1 Replies
Login or Register to Ask a Question