Saturday, February 7, 2009

Litespeed on FreeBSD

I compile my kernel FreeBSD 7.1 to try dtrace running on FreeBSD, because lastweek I got error, the dtrace cannot running. To spend my time while compiling my kernel, I try to install Litespeed, on my FreeBSD.
Please for more information visit http://www.litespeedtech.com

Download the package on
http://www.litespeedtech.com/products/webserver/download/

I download the free version, for FreeBSD 6, with release 3.3.24 Std, release data 01-12-2009. For more details please consult to www.litespeedtech.com it’s stable or not running on FreeBSD >6.

viperbsd# ls lsws-3.3.24-std-i386-freebsd6.tar.gz
lsws-3.3.24-std-i386-freebsd6.tar.gz
viperbsd#

viperbsd# tar zxfv lsws-3.3.24-std-i386-freebsd6.tar.gz
viperbsd# mkdir /usr/local/lsws
viperbsd# cd lsws-3.3.24


READ INSTALL


Do you agree with above license? Yes
Please specify the destination directory. You must have permissions to
create and manage the directory. It is recommended to install the web server
at /opt/lsws, /usr/local/lsws or in your home directory like '~/lsws'.

ATTENTION: The user 'nobody' must be able to access the destination
directory.

Destination [/opt/lsws]: /usr/local/lsws


To change configurations of the interface, login and click
"Interface Configuration" button on the main page.
The administration interface is located at http://localhost:/
or http://:/

Would you like to have LiteSpeed Web Server started automatically
when the server restarts [Y/n]? n

If you want to start the web server automatically later, just run
"/usr/local/lsws/admin/misc/rc-inst.sh"
to install the service control script.

Would you like to start it right now [Y/n]? y

[OK] lshttpd: pid=40872.

LiteSpeed Web Server started successfully! Have fun!

viperbsd#

I got error when trying login in admin console, the error was “ Invalid Credential”

I found the solution on litespeed forum.
http://litespeedtech.com/support/forum/archive/index.php/t-1590.html

edit file and change it to …

/usr/local/lsws/admin/html.3.3.24/classes/ws/CLIENT.php

$salt = substr($pass,0,2);
change it to
$salt = substr($pass,0,CRYPT_SALT_LENGTH);

Here is screen capture





Sunday, February 1, 2009

freebsd page fault panic

I am playing with dtraceall, my silly mistake is make loader module on loader.conf.
I can't boot my machine because I just add one line on loader.conf
link_elf lapic_cyclic_clock_func undefined bla..bla...

I got page fault panic
cat /boot/loader.conf
dtraceall_load="YES"

So, I when to console menu, no "6"
and in the console
OK unload --> to unload all modules
OK load kernel --> load kernel modules
OK boot --> then boot the system.

that's it. Then I remove "dtraceall_load="YES" the line on /boot/loader.conf

Until now I can't play with dtrace. I am still not sure why, but my error messages on /var/log/messages are
...
Feb 1 21:38:54 viperbsd kernel: This module (opensolaris) contains code covered by the
Feb 1 21:38:54 viperbsd kernel: Common Development and Distribution License (CDDL)
Feb 1 21:38:54 viperbsd kernel: see http://opensolaris.org/os/licensing/opensolaris_license/
Feb 1 21:38:54 viperbsd kernel: link_elf: symbol lapic_cyclic_clock_func undefined
Feb 1 21:38:54 viperbsd kernel: KLD profile.ko: depends on cyclic - not available
Feb 1 21:38:54 viperbsd kernel: KLD dtraceall.ko: depends on profile - not available