Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

hy every body, We have dokeos application using apache as the web server. when accessing dokeos we have to login, So users who try to access this application , has to login using ID & pwd. But I don't have this ID information in the apache webserver log files. I mean "user name" information is not getting into the log files. Thanks.

share|improve this question

You need to do authentication via HTTP headers for apache to log the info in the user field of the http logs. If the login to the application is via a form/cookies then apache does not consider the user authenticated.

share|improve this answer
thank you, but i don't no hhow to do that dokeos is e-learning envirment, it need authentification to access. how can i link this authentification to http headers – nani Dec 15 '09 at 6:51

I assume we're talking about application-level login, not http auth here?

If the form submitting the username/password uses POST as the form method, then the username is embedded in the http body - you won't see it logged on the URL.


I looked at their demo site. Here is the form tag for the login form:

 <form action="/index.php" method="post" name="formLogin" id="formLogin"> 

Because the method is post, you won't see the username/password in the logs. In most cases, this is a good idea for security purposes. If you need to track logins by user, and the application doesn't already have this, you could add some code to index.php where it processes the login to make a log entry an a separate file:

2009-12-16 11:55:00 User jsmith logged in from

share|improve this answer
BTW, this post could be tagged better, but I don't have the points to re-tag. Anyone? – Matt Dec 15 '09 at 18:55
thank you for your hepl, i'm not good in that. so, i need to know if i can do some thing to have the login from dokeos form(php form) in the log file. or i can't have that – nani Dec 15 '09 at 21:16
edited my entry to reply to your comment... it didn't like the html in the comment. – Matt Dec 16 '09 at 16:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.