User Post
11:58 am February 12, 2010
rfernandes
Member
posts 7
Hello,
I have problems with access.log, i use wamp server on local machine.
first problem:
if i have more more than 50 lines in access.log it gives error on permissions.
second problem:
if i have 50 lines in access.log it gives 49 corrupted records.
example of access.log:
127.0.0.1 – – [05/Feb/2010:23:54:14 +0000] "GET /index.php?img=favicon HTTP/1.1″ 200 13262
log format in awstats.mydomain.conf
LogFormat="%host %other %time1 %methodurl %code %bytesd"
i need help please!
12:14 pm February 12, 2010
Jean-Luc
Admin
posts 1043
Hi,
Use:
LogFormat=1
Short answer, isn't it ?
12:19 pm February 12, 2010
rfernandes
Member
posts 7
i tried that one and gives me the following error: 49 corrupted records.
12:50 pm February 12, 2010
Jean-Luc
Admin
posts 1043
Please paste here the complete message you got.
1:02 pm February 12, 2010
rfernandes
Member
posts 7
first error
second error
Click on images please
4:35 pm February 12, 2010
Jean-Luc
Admin
posts 1043
The first screenshot was not obtained with :
LogFormat=1
There might be other errors, but you need to correct the LogFormat first.
4:45 pm February 12, 2010
rfernandes
Member
posts 7
I resolved the problem wit,
Logformat=4
and now i have another problem.
When i try to access this link http://localhost/awstats/awsta…..fig=rodhas it gives the following error:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
5:04 pm February 12, 2010
Jean-Luc
Admin
posts 1043
You are absolutely right about the LogFormat. How could I confuse formats 1 and 4…
Regarding the 500 internal server error , try to run a very simple Perl script (a script just printing "Hello" on the screen) in the same directory. This will determine if it is an IIS or and AWStats issue.
You will find some useful tips here: Installing AWStats on IIS 6.0 (Including IIS 5.1) .
6:02 pm February 12, 2010
rfernandes
Member
posts 7
I'm using apache2.x, so i think that i don't need IIS.
10:19 pm February 12, 2010
Jean-Luc
Admin
posts 1043
Well, it seems that's not my day.
You can try to run this Perl script from the browser:
#!/usr/bin/perl
print "Content-type: text/html\n\n"; print "\nHello world!" ; exit ;
If this simple script does not work, check the permissions.