LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] litespeed access log not working

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2011, 11:25 PM
oggix oggix is offline
Member
 
Join Date: Jul 2011
Posts: 11
Default [solved] litespeed access log not working

i use aws ec2 and install the litespeed.
i set litespeed to use apache's httpd.conf.
here is the httpd.conf setting:
CustomLog /etc/httpd/logs/xxx.com combined
CustomLog /etc/httpd/logs/xxx.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."

But the log is not changing.

Can anyone help me?


thanks

Last edited by NiteWave; 07-30-2011 at 06:36 AM..
Reply With Quote
  #2  
Old 07-29-2011, 11:32 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
But the log is not changing.
can you tail your logs here?
Reply With Quote
  #3  
Old 07-30-2011, 02:11 AM
oggix oggix is offline
Member
 
Join Date: Jul 2011
Posts: 11
the access logs file is created automatically by lsws, but it is empty.


tail -f /etc/httpd/logs/xxx.com

==> empty here <====



tail -f /usr/local/lsws/logs/error_log

2011-07-30 16:05:29.024 [INFO] [125.162.147.183:27488-0#APVH_xxx.yyy.co.id] File not found [/home/xxxs/public_html/images/xxx/Lea_Blazer_Black.jpg]
2011-07-30 16:05:33.624 [INFO] [125.162.147.183:27498-0#APVH_xxx.yyy.co.id] File not found [/home/xxxs/public_html/images/xxx/Lea_Blazer_Black.jpg]
2011-07-30 16:05:36.787 [INFO] [223.255.229.11:34717-4#APVH_xxx.yyy.co.id] File not found [/home/xxxs/public_html/themes/simpleBox/css/images/selected-item.gif]
2011-07-30 16:05:37.023 [INFO] [182.2.251.55:62930-0#APVH_xxx.yyy.co.id] File not found [/home/xxxs/public_html/images/zoomloader.gif]






tail -f /usr/local/lsws/logs/access.log

==> empty here <====
Reply With Quote
  #4  
Old 07-30-2011, 02:14 AM
oggix oggix is offline
Member
 
Join Date: Jul 2011
Posts: 11
BTW, i was using apache before migrating to litespeed,
and the access log was working when using apache.
Reply With Quote
  #5  
Old 07-30-2011, 02:18 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
should be folder/file permission issue.

to test,
#chmod 777 /etc/httpd/logs/xxx.com

and tail xxx.com again
Reply With Quote
  #6  
Old 07-30-2011, 02:22 AM
oggix oggix is offline
Member
 
Join Date: Jul 2011
Posts: 11
i already changed file permission to 777 to all logs in /etc/httpd/logs/
then restarted the lsws, and nothing happen


here is the result when i type ls -al command:
-rwxrwxrwx 1 apache apache 0 Jul 30 12:41 xxx.com
-rwxrwxrwx 1 apache apache 0 Jul 30 12:41 xxx.com-bytes_log
Reply With Quote
  #7  
Old 07-30-2011, 02:26 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Code:
BTW, i was using apache before migrating to litespeed,
and the access log was working when using apache.
what user apache run as ?
and what litespeed run as? they should match.
if not, re-install litespeed again, to specify same user as apache.
Reply With Quote
  #8  
Old 07-30-2011, 02:31 AM
oggix oggix is offline
Member
 
Join Date: Jul 2011
Posts: 11
Quote:
Originally Posted by NiteWave View Post
what user apache run as ?
and what litespeed run as? they should match.
if not, re-install litespeed again, to specify same user as apache.
apache run as apache:apache
and the litespeed also apache:apache, i set it



when installing litespeed:

As you are the root user, you must choose the user and group
whom the web server will be running as. For security reason, you should choose
a non-system user who does not have login shell and home directory such as
'nobody'.

User [nobody]: =====> i typed apache <=====




Please choose the group that the web server running as.

User 'nobody' is the member of following group(s): nobody
Group [nobody]: =======> i typed apache <======
Reply With Quote
  #9  
Old 07-30-2011, 02:51 AM
oggix oggix is offline
Member
 
Join Date: Jul 2011
Posts: 11
FYI, everytime i restart the lsws,
the error log show the following error:

tail -f /etc/httpd/logs/error_log
2011-07-30 16:45:55.682 [ERROR] [/etc/httpd/conf/httpd.conf:1071] Listener for _default_ is not available!
Reply With Quote
  #10  
Old 07-30-2011, 03:14 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
then, is litespeed running ?

#netstat -ntlp
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:37 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.