Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Apache, create logfiles for every user/domain

Posted on 2004-03-30
4
Medium Priority
?
404 Views
Last Modified: 2008-03-06
Hello,

I have a server using "confixx" as an web-interface for managing user accounts.
It generally created logfiles for every domain in the users directory "/home/www/webX/log/access_log" but since I did an backup it's not creating them any more.
I must say that the config files of apache and confixx-hosts are the same as the previous.
The directory log has enough user-rights and for "web1" the logfiles are working very well, not for the other users.

My question is, where is this problem to solve and how to tell apache or confixx to do this logfiles?
I need them not only for webalizer, the web-traffic of every user is being calculated by using this logfiles.

Thanx
j79

0
Comment
Question by:j79
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Expert Comment

by:coatesg
ID: 10722627
I assume you are using virtualhosts here given the "domain" comment? If so you need to make sure that in httpd.conf (or an included file thereof) there are lines defining the error and access log locations within each <VirtualHost> section.

For example, my VirtualHost sections contain something along the lines of:

    ErrorLog logs/domain.name-error_log
    CustomLog logs/domain.name-access_log combined

(for Apache 2 on RedHat 8)

A backup shouldn't change anything on the server - it should just make a copy of all you've told it to...

If you are after per-directory logging, then it *may* be possible using apache, but I've never done it. Alternatively, you could get the log analysis tool to work from one file, and parse the results that way. Certainly analog can do this (and pretty much anything else in fact).

Never used confixx either so can't comment on that one, but am assuming all it does it creates the VirtualHost sections for you within the Apache configuration?


0
 
LVL 2

Accepted Solution

by:
j79 earned 0 total points
ID: 10728333

Hello coatesg,

thank you for your answer.
I know "CustomLog" of apache but in this case confixx is doing the logfiles automatically by using all domains of the database.
Anyway, I solved the problem by looking the functions of confixx in deep and came to the conclusion that confixx is splitting the apache main logfile and copying them into the custom logfiles of the users.

The procedure in this case is done by using symbolic links in:
/var/log/httpd/confixx/domains/access
like: www.mydomain.com -> /home/www/web**/log/access_log

Confixx has an counterscript running every some minutes by crontab to do this.
So defining anything in the httpd.conf with "CustomLog" would make me more work than because in that case I would have to look the changes done by my clients nearly every day to log/not log the correct traffic.

j79

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question