Oscarman Posted November 21, 2008 Share Posted November 21, 2008 Thanks in advance I'm running Apache 2.2.4 with a virtual host. I'm really having trouble trying to create a log file on who visits the site by ip address. I have searched quite a bit and found lots of info that i do not under stand. Any simple tutorials out there? attached is part of my httpd file I hope this is enough info to start with (sorry really trying my best to help myself) <VirtualHost *:80> ServerAdmin me@gmail.com DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs3/ ServerName www.mysite.com ServerAlias mysite.com #ErrorLog C:\Program Files\Apache Group\Apache2\error\error.log CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/ Share on other sites More sharing options...
corbin Posted November 22, 2008 Share Posted November 22, 2008 So uh... what's wrong with that? Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/#findComment-696045 Share on other sites More sharing options...
Oscarman Posted November 22, 2008 Author Share Posted November 22, 2008 maybe you could explain what you mean by "whats wrong with that" I guess i'm not sure what i'm looking at thanks Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/#findComment-696294 Share on other sites More sharing options...
corbin Posted November 22, 2008 Share Posted November 22, 2008 http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog Looks valid to me, assuming the mod_log_config module loaded.... Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/#findComment-696371 Share on other sites More sharing options...
Oscarman Posted November 23, 2008 Author Share Posted November 23, 2008 I read over the link you gave several times still without understanding what to do. what is "mod_log_config module "? how do I know it's being loaded ? Would seeing my conf file be more helpful? http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog Looks valid to me, assuming the mod_log_config module loaded.... Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/#findComment-696666 Share on other sites More sharing options...
corbin Posted November 23, 2008 Share Posted November 23, 2008 It's a module, just like every other module in Apache. httpd -M should tell you if it's loaded. Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/#findComment-696876 Share on other sites More sharing options...
Oscarman Posted November 23, 2008 Author Share Posted November 23, 2008 how do i use "httpd -M" to see if it's loaded. Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/#findComment-696924 Share on other sites More sharing options...
corbin Posted November 23, 2008 Share Posted November 23, 2008 httpd as in the Apache binary. Don't know where it is on your system. Quote Link to comment https://forums.phpfreaks.com/topic/133723-creating-a-visitor-log-file/#findComment-697047 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.