LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2008, 01:54 AM   #1
NickInZim
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
sarg.conf - Invalid command 'access_log'


Hi All,

I have a problem in that my Apache won't start since a change was made to my server yesterday. I had to reboot it this morning and it now gives the error below, when I watch it boot or use "Webmin" its the same. I'm using CentOS 4.6 and Apache version 2.0.52. For various reasons I can't currently contact the guy who set it up for me, please help...

The error:

Starting httpd: Syntax error on line 9 of /etc/httpd/conf.d/sarg.conf:
Invalid command 'access_log', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]


The Conf file:

Alias /sarg /var/www/sarg

<Directory /var/www/sarg>
DirectoryIndex index.html
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>
access_log /var/log/squid/access.log
output_email me@mydomain.com
 
Old 05-16-2008, 02:29 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
remove
Code:
access_log /var/log/squid/access.log
output_email me@mydomain.com
Those are not apache config options they are for sarg, you need those in sargs config file not in the apache config.
 
Old 05-17-2008, 04:53 AM   #3
NickInZim
LQ Newbie
 
Registered: May 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
remove
Code:
access_log /var/log/squid/access.log
output_email me@mydomain.com
Those are not apache config options they are for sarg, you need those in sargs config file not in the apache config.
Hi,

I'm a newbie when it comes to apache / linux, but, I realize that they are not apache commands, as said before, these items are in the SARG.CONF file.

The error I face is:

Starting httpd: Syntax error on line 9 of /etc/httpd/conf.d/sarg.conf:
Invalid command 'access_log', perhaps mis-spelled or defined by a
module not included in the server configuration
[FAILED]

What I take it to mean is that:
- It's trying to start the httpd service and due to the configuration of the SARG.CONF file it can't:

# sarg.conf:
Alias /sarg /var/www/sarg

<Directory /var/www/sarg>
DirectoryIndex index.html
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>
access_log /var/log/squid/access.log
output_email me@mydomain.com

- The above seems to indicate that if I visit "http://localhost/sarg" it will show me the "index.html" file in the "/var/www/sarg" folder, or, I guess you could call it a virtual folder.

- If I'm correct, and I think I am, the "httpd" service is apache, so what I did for now was comment out the "access_log" and "output_email" lines as they both seem problematic, and not surprisingly apache started fine!?
- It makes sense to me, that the "access_log" and "output_email" lines should in fact be in some sort of CONF file in the SARG program folder and not in an apache "Virtual Directory" command file

What I would really like to know is, should the commands be in this SARG.CONF file, since it seems to complain about it. Is there another sarg.conf file where they should be, or maybe they should be in the squid.conf file.
 
Old 05-17-2008, 05:50 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
How did you install this sarg package ? If you installed from rpm or deb then the sarg config file should be in /etc/sarg/
 
  


Reply

Tags
accesslog, command, invalid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chown command giving invalid user ServerStorm Linux - Software 6 03-23-2010 02:42 AM
mod_perl error Invalid command 'PerlOptions' agentc0re Slackware 6 05-24-2007 01:22 PM
Invalid command : monitor tekn0phile Linux - Hardware 0 10-18-2003 07:04 AM
v4l2-conf- VIDIOC_QUERYCAP Invalid argument The Yeti Lives Linux - Software 0 08-07-2003 10:18 PM
invalid dial command haknot Linux - General 0 03-01-2001 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration