Quote:
Originally Posted by datopdog
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.