How to create a log file from htaccess

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
Henri_IV
Forum Newbie
Posts: 3
Joined: Mon Mar 22, 2010 10:15 pm

How to create a log file from htaccess

Post by Henri_IV »

hello developpers!

I created .htaccess and .htpasswd to allow some users to connect to my website. It works perfectly:)
I would like to create a log file into my folder that contains my two others files (I don't have the rights to check the Apache's logs from the roots).
I would like to know the users, the time, the date and if possible IPs when they connect to my website.
I searched a lot, but found a big donut...

Is there a code that exist that would be able to do that ?

I have a Linux server that runs Apache.

Thank you
Post Reply