PDA

View Full Version : litespeed not starting


bhanuprasad1981
01-30-2010, 01:55 AM
ok i thought of trying litespeed on my new server where presently i am having nginx as proxy to serve static files, i disabled nginx changed back apache port to 80 installed litespeed , tried to compile php on 5.2.9 (my last attempt to compile on 5.2.11 failed with 503 errors ) compile completed ,but cannot switch on litespeed , what maybe issue ?

NiteWave
01-30-2010, 03:02 AM
what's the error messages in error.log and stderr.log?

bhanuprasad1981
01-30-2010, 04:57 AM
Where can i find these logs

NiteWave
01-30-2010, 05:42 AM
/path/to/lsws/logs/error.log
/path/to/lsws/logs/stderr.log

bhanuprasad1981
01-30-2010, 08:43 AM
i dont see any such logs :( only one log which is also empty i see is "access.log"

mistwang
01-31-2010, 04:34 PM
Are you using cPanel? Or other control panel.
Your need to build PHP using the same configuration option used for Apache PHP. check the phpinfo() page.

bhanuprasad1981
02-01-2010, 12:23 AM
i am using latest version of whm / cpanel , i first degraded my php to 5.2.9 rebuild it using easy apache, next installed litespeed from ssh , then used litespeed whm plugin option to build litespeeed php using apache config, after that when i try to switch to litespeed , my apache is getting killed but litespeed is not starting. i tried even restart litespeed option , but no result , listespeed just wont start.

mistwang
02-01-2010, 08:33 AM
It is likely a license issue. Please try to start it from command line

/usr/local/lsws/bin/lswsctrl start

bhanuprasad1981
02-02-2010, 09:38 AM
It is likely a license issue. Please try to start it from command line

/usr/local/lsws/bin/lswsctrl start
ok i tried that i got :-

root@host [~]# /usr/local/lsws/bin/lswsctrl start
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to find your license key under - /usr/local/lsws/ or /usr/local/lsws/conf/!
[ERROR] Failed to start lshttpd!


i manually coped trial.key file to /usr/local/lsws

then tried command i got


root@host [~]# /usr/local/lsws/bin/lswsctrl start
[OK] Your trial license key will expire in 11 days!
[OK] lshttpd: pid=6174.
root@host [~]# /usr/local/lsws/bin/lswsctrl start
[OK] Your trial license key will expire in 11 days!
[OK] lshttpd: pid=7486.
[OK] Your trial license key will expire in 11 days!
cat: /tmp/lshttpd/lshttpd.pid: No such file or directory
[OK] lshttpd: pid=.
[OK] Your trial license key will expire in 11 days!
cat: /tmp/lshttpd/lshttpd.pid: No such file or directory
[OK] lshttpd: pid=.
[OK] Your trial license key will expire in 11 days!
[OK] lshttpd: pid=7611.
[OK] Your trial license key will expire in 11 days!
[OK] lshttpd: pid=7648.
[OK] Your trial license key will expire in 11 days!
[OK] lshttpd: pid=7691.




but litespeed still wont start :(

mistwang
02-02-2010, 09:52 AM
That's because trial key has been used on that IP before. May need to clear that IP from our tracking DB if you want to use trial key again.

bhanuprasad1981
02-02-2010, 09:57 AM
That's because trial key has been used on that IP before. May need to clear that IP from our tracking DB if you want to use trial key again.

can you help me to clear that ? i want to be sure that litespeed works 100% before i buy.

mistwang
02-02-2010, 09:58 AM
Please send email to sales@litespeedtech...

bhanuprasad1981
02-02-2010, 10:03 AM
Please send email to sales@litespeedtech...
thanks email sent hope i get reply soon :)

bhanuprasad1981
02-02-2010, 10:20 AM
ok got reply , i used new license key and liutespeed started working , but damm xacache is giving issue s now i get weird error on litespeed :(

xcache.var_size is either 0 or too small


whereas no error is seen on apache switch ?

mistwang
02-02-2010, 11:11 AM
Maybe you are using different php.ini for Apache and Litespeed.

bhanuprasad1981
02-02-2010, 11:16 AM
Maybe you are using different php.ini for Apache and Litespeed.
sorry i didnt get you , what you mean by that :( , i am not professional server admin , so please guide me :(

mistwang
02-02-2010, 11:18 AM
check phpinfo() page from LSWS and Apache, check the php.ini path.

bhanuprasad1981
02-02-2010, 11:53 AM
check phpinfo() page from LSWS and Apache, check the php.ini path.

path is same in both

mistwang
02-02-2010, 11:56 AM
Are you using the same version of PHP? You should.
And you cannot use PHP suEXEC with Xcache.

bhanuprasad1981
02-02-2010, 12:01 PM
Are you using the same version of PHP? You should.
And you cannot use PHP suEXEC with Xcache.
yes same version php 5.2.9, no phpsuexec on server

mistwang
02-02-2010, 12:11 PM
Seems it is a common problem with xcache if you google it, but no good solution.
Maybe you can try other opcode cache.

bhanuprasad1981
02-05-2010, 09:33 PM
ok its been 2 days passed i am using litespeed on my new server , load is around 4.0 average , but still my clients complain sometimes pages taking a 20-30 seconds to load what may be the reason ?

NiteWave
02-05-2010, 09:55 PM
how about try another opcode cache for example APC?

bhanuprasad1981
02-05-2010, 09:58 PM
most of my sites are vbulletin . those guys recommend xcache , but can we tune in something in settings ? ,i have dual cpu server,with 12gb ram , i think mysql is not using whole ram.

NiteWave
02-05-2010, 10:21 PM
in a recent thread:
http://www.litespeedtech.com/support/forum/showthread.php?t=3753


For comparison, http://photography-on-the.net/forum/ runs Litespeed.

2 x Intel Xeon-Nehalem 5520-Quadcore
12GB DDR3 RAM
2 x 64GB Intel X25-E SSD disks (one for database only, one for hotcopies)
2 x 500GB SATA disks
gigabit ports etc.

Current load average: 0.62, 0.89, 0.86 - usually around 1 even with 3000 people in.

I tried http://photography-on-the.net/forum/, very fast. Maybe you can ask PSS what opcode cache the forum is using.

bhanuprasad1981
02-05-2010, 10:25 PM
i see that he is using super fast disk for DB maybe i should check this

mistwang
02-07-2010, 09:38 PM
For shared hosting using PHP suEXEC, only eAccelerator is recommended. If you have enough spare memory in your server, you can try put eAccelerator disk cache in /dev/shm. It helps.

You may want to increase the "PHP suEXEC Max conn" a little if you got pretty busy vbulletin web sites.

bhanuprasad1981
02-07-2010, 09:41 PM
i dont use suexec my dual cpu server has 12gb ram but i am barely using half of it , any settings in litespeed can we use to utilize full ram , which can make site loading fast ?

mistwang
02-08-2010, 07:31 AM
If PHP create a lot of session files under /tmp/, you can change session path in php.ini to utilize /dev/shm, it may help.

Try a opcode cache if you do not use one yet.