Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setup of new CustomLog

Status
Not open for further replies.

blrose

Programmer
Jul 12, 2001
9
US
I'd like to setup a customlog to display the user name, time of request and file requested.

I added this line to my httpd.conf file just above the other CustomLog entries. I then restarted apache.

CustomLog /usr/local/apache/logs/login_log "%u %t %f"


When I open my browser and access a .htaccess protected directory, I log in successfully. I then check my login_log file. The file has been created and has 775 permission. However, nothing is being written to the file.

Any idea why not ? Should I have set it up differently ? All suggestions welcome.

Thanks

Bonnie
 
Apache caches writes...

try this...

Do exactly what you did above, then type:
apachectl restart

this will force the writes to the file

-John ---
John Hoke
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top