[Solved] New user, some questions

bettinz

Well-Known Member
#1
Hi all, i'm a new user of litespeed.
I've the VPS edition, and it's on vps with 768MB of ram and 1.13 GHz of CPU.
I've about 12 dynamic website with Joomla on my vps.
This is the configuration:
Max connections: 150
timeout: 120s
keep-alive: 7s
lsphp5 max conn: 70
PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=?
Apc 3.1.9
Okay, so this is the question: i think my litespeed restart itself. It's on since yesterday, but now it say:
Uptime 00:28:17
Load 0.20, 0.64, 0.82
Anti-DDoS Blocked IP NONE

Also, it appear to delete the log, now it say:
Total Req 172

The vps is with whm and apache, and the log is located here:

$SERVER_ROOT/logs/access.log

the file is writeable I think, but it still empty.

With my configuration, can you help me to optimize litespeed and mysql?

Thanks
 

webizen

Well-Known Member
#3
for server restart, see if there is any indication in error.log. usually, lsws will restart when you make changes to httpd configuration in whm.
 

bettinz

Well-Known Member
#4
Ok, now the log is:

Server Log: File Name /usr/local/apache/logs/error_log

Access Log: File Name $SERVER_ROOT/logs/access.log

is that ok? I can't find the reference to vhost log into the litespeed configuration :(

For the error and litespeed restart, i've found this:
Code:
2011-05-31 10:51:37.644	WARN	[config:server:listener] No listener is available for normal virtual host!
2011-05-31 10:51:37.646	ERROR	[config] rewrite: unknown server variable while parsing: Referer
2011-05-31 10:51:37.646	ERROR	[config] rewrite: unknown server variable while parsing: X-OS-Prefs)$/'
2011-05-31 10:51:37.646	ERROR	[config] rewrite: unknown server variable while parsing: Referer
2011-05-31 10:51:37.646	ERROR	[config] rewrite: unknown server variable while parsing: X-OS-Prefs)$/'
2011-05-31 10:51:37.646	ERROR	[config] rewrite: unknown server variable while parsing: Referer
2011-05-31 10:51:37.646	ERROR	[config] rewrite: unknown server variable while parsing: X-OS-Prefs
2011-05-31 10:51:37.646	ERROR	[config] rewrite: unknown server variable while parsing: User-Agent)$/'
but i can't find where it find where is located..
thanks

ps: about the optimization, is ok for you?

edit: the http in and out (like virtual host stats) is still empty :(
Http In 0KB Http Out 0KB
Https In 0KB Https Out 0KB
 
Last edited:

webizen

Well-Known Member
#5
As previously mentioned, if LSWS loads Apache config (managed by WHM/cpanel), the log files should be:

/usr/local/apache/logs/[error|access]_log (server logs)
/usr/local/apache/domlogs/* (vhost logs)

Access Log defined in LSWS has no effect.

The error doesn't tell why server is restarted. Is it still restarting without you doing anything?

The WARN is OK since LSWS reads Apache httpd.conf and there is no (native LSWS) listener defined in LSWS.

For the ERROR, please check your rewrite rule in httpd.conf or .htaccess

2011-05-31 10:51:37.644 WARN [config:server:listener] No listener is available for normal virtual host!
2011-05-31 10:51:37.646 ERROR [config] rewrite: unknown server variable while parsing: Referer
2011-05-31 10:51:37.646 ERROR [config] rewrite: unknown server variable while parsing: X-OS-Prefs)$/'
2011-05-31 10:51:37.646 ERROR [config] rewrite: unknown server variable while parsing: Referer
2011-05-31 10:51:37.646 ERROR [config] rewrite: unknown server variable while parsing: X-OS-Prefs)$/'
2011-05-31 10:51:37.646 ERROR [config] rewrite: unknown server variable while parsing: Referer
2011-05-31 10:51:37.646 ERROR [config] rewrite: unknown server variable while parsing: X-OS-Prefs
2011-05-31 10:51:37.646 ERROR [config] rewrite: unknown server variable while parsing: User-Agent)$/'
For optimization, we can answer your general question on forum. For service improvement, you need to pay for our support (https://store.litespeedtech.com/store/cart.php?gid=5) before we can work on it.
 

bettinz

Well-Known Member
#6
Yes, it restart one hour ago..
i've disabled Auto Reload On Changes, Auto Restart and Auto Fix 503 Error, to test if this is the problem, but it appear to restart it self.
I can't find the problem.
 

bettinz

Well-Known Member
#7
problem solved:
apache infact, restart it self every hour..i've disabled it in whm services configuration, and now it work ;)
for the optimization, i think it's ok, now my vps works very well!!
Thanks for LiteSpeed :)
 
Top