|
|

07-29-2011, 11:25 PM
|
|
Member
|
|
Join Date: Jul 2011
Posts: 11
|
|
[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..
|

07-29-2011, 11:32 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,226
|
|
Quote:
|
But the log is not changing.
|
can you tail your logs here?
|

07-30-2011, 02:11 AM
|
|
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 <====
|

07-30-2011, 02:14 AM
|
|
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.
|

07-30-2011, 02:18 AM
|
|
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
|

07-30-2011, 02:22 AM
|
|
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
|

07-30-2011, 02:26 AM
|
|
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.
|

07-30-2011, 02:31 AM
|
|
Member
|
|
Join Date: Jul 2011
Posts: 11
|
|
Quote:
Originally Posted by NiteWave
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 <======
|

07-30-2011, 02:51 AM
|
|
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!
|

07-30-2011, 03:14 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,226
|
|
|
then, is litespeed running ?
#netstat -ntlp
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 06:37 PM.
|
|