lshttpd 2.2.2 doesn't start on FreeBSD6.1

#1
Hi,

I downloaded the FreeBSD 6.1 compile through the URL found in another post and installed it. Installation was smooth but at the end :

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

[OK] lshttpd: pid=63128.

[ERROR] Failed to start the web server. For trouble shooting information,
please refer to documents in "/opt/lsws/docs/".

[root@ /opt/lsws]# ls -al /tmp/lshttpd/
total 6
drwxr-xr-x 2 nobody nobody 512 Oct 5 21:18 .
drwxrwxrwt 9 root wheel 512 Oct 5 21:18 ..
-rw-r--r-- 1 root wheel 6 Oct 5 21:18 lshttpd.pid
[root@ /opt/lsws]# cat /tmp/lshttpd/lshttpd.pid
63128
[root@ /opt/lsws]# cat logs/error.log
2006-10-05 21:18:08.701 [NOTICE] Loading LiteSpeed/2.2.2 Standard ...
2006-10-05 21:18:08.704 [NOTICE] [ADMIN] server socket: 127.0.0.1:7503
2006-10-05 21:18:08.704 [NOTICE] Loading configuration from /opt/lsws/conf/httpd_config.xml ...
2006-10-05 21:18:08.706 [INFO] old priority: 0, new priority: 0
2006-10-05 21:18:08.706 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2006-10-05 21:18:08.710 [NOTICE] The maximum number of file descriptor limit is set to 11095.
At this point, the only running process is "lscgid". I killed and restarted with a debugLevel of 50, nothing better except a few more lines in the error log :

2006-10-05 21:34:27.237 [NOTICE] Loading LiteSpeed/2.2.2 Standard ...
2006-10-05 21:34:27.240 [DEBUG] Daemonized!
2006-10-05 21:34:27.240 [NOTICE] [ADMIN] server socket: 127.0.0.1:7556
2006-10-05 21:34:27.240 [NOTICE] Loading configuration from /opt/lsws/conf/httpd_config.xml ...
2006-10-05 21:34:27.242 [INFO] old priority: 0, new priority: 0
2006-10-05 21:34:27.242 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2006-10-05 21:34:27.246 [DEBUG] Created new Listener [adminListener].
2006-10-05 21:34:27.246 [DEBUG] Created new Listener [Default].
2006-10-05 21:34:27.246 [NOTICE] The maximum number of file descriptor limit is set to 11095.
Any help ?
 
#3
Here is the full installation procedure I replayed (FreeBSD 6.1 amd64 with 32 bits lib), all with default settings ... :

$ su -
Password:
# cd /tmp
# wget http://www.litespeedtech.com/packages/2.2/std/lsws-2.2.2-std-i386-freebsd6.tar.gz
--08:09:23-- http://www.litespeedtech.com/packages/2.2/std/lsws-2.2.2-std-i386-freebsd6.tar.gz
=> `lsws-2.2.2-std-i386-freebsd6.tar.gz'
Resolving www.litespeedtech.com... 209.151.227.121
Connecting to www.litespeedtech.com|209.151.227.121|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,653,955 (3.5M) [application/gzip]

100%[==========================================================>] 3,653,955 244.25K/s ETA 00:00

08:09:43 (188.50 KB/s) - `lsws-2.2.2-std-i386-freebsd6.tar.gz' saved [3653955/3653955]

# tar zxf lsws-2.2.2-std-i386-freebsd6.tar.gz
# cd lsws-2.2.2
# id
uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator)
# ./install.sh
source: not found
End-User License Agreement for LiteSpeed Software
[...]
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]:


Please specify the user name of the administrator.
This is the user name required to log into the administration web interface.

User name [admin]:

Please specify the administrator's password.
This is the password required to log into the administration web interface.

Password:

[ERROR] Sorry, password must be at least 6 characters!

Password:
Retype password:

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]:
Please choose the group that the web server running as.

User 'nobody' is the member of following group(s): nobody
Group [nobody]:

Please specify the port for normal HTTP service.
Port 80 is the standard HTTP port, only 'root' user is allowed to use
port 80, if you have another web server running on port 80, you need to
specify another port or stop the other web server before starting LiteSpeed
Web Server.
You can access the normal web page at http://<YOUR_HOST>:<HTTP_PORT>/

HTTP port [8088]:

Please specify the HTTP port for the administration web interface,
which can be accessed through http://<YOUR_HOST>:<ADMIN_PORT>/

Admin HTTP port [7080]:
Cannot find RUBY installation, remember to fix up the ruby path configuration
before you can use our easy RubyOnRails setup.


You can setup a global script handler for PHP with the pre-built PHP engine
shipped with this package now. The PHP engine runs as Fast CGI which
outperforms Apache's mod_php.
You can always replace the pre-built PHP engine with your customized PHP
engine.

Setup up PHP [Y/n]:
Suffix for PHP script(comma separated list)
PHP:
:

Installing, please wait...


PHP Opcode Cache Setup

In order to maximize the performance of PHP, a pre-built PHP opcode cache
can be installed automatically. An opcode cache increases performance of
PHP scripts by caching them in compiled state, the overhead of compiling
is avoided.

Note: If an opcode cache has been installed already, you do not need to
      change it. If you built PHP binary by yourself, you need to built
      PHP opcode cache from source as well, unless the version of your
      PHP binary is same as the pre-built PHP opcode cache built for.

Would you like to change PHP opcode cache setting [y/N]?


AWStats Integration

AWStats is a popular log analyzer that generates advanced web server
statistics. LiteSpeed web server seamlessly integrates AWStats into
its Web Admin Interface. AWStats configuration and statistics update
have been taken care of by LiteSpeed web server.

Note: If AWStats has been installed already, you do not need to
      install again unless a new version of AWStats is available.

Would you like to install AWStats Add-on module [y/N]?

Apache Configuration Migration

If Apache is your current web server, its configuration can be imported
automatically now.

Would you like to import Apache configuration [y/N]?
Congratulations! The LiteSpeed Web Server has been successfully installed.
Command line script - "/opt/lsws/bin/lswsctrl"
can be used to start or stop the server.

It is recommended to limit access to the web administration interface.
Right now the interface can be accessed from anywhere where this
machine can be reached over the network. Three options are available:
1. If the interface needs to be accessed only from this machine, just
   change the listener for the interface to only listen on the loopback
   interface - localhost(127.0.0.1).
2. If the interface needs to be accessible from limited IP addresses or sub
   networks, then set up access control rules for the interface accordingly.
3. If the interface has to be accessible via internet, SSL (Secure Sockets
   Layer) should be used. Please read respective HOW-TOs on SSL configuration.

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

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

[OK] The startup script has been successfully installed!
Would you like to start it right now [Y/n]?

[OK] lshttpd: pid=65317.

[ERROR] Failed to start the web server. For trouble shooting information,
        please refer to documents in "/opt/lsws/docs/".
# cat /opt/lsws/logs/error.log
2006-10-06 08:12:28.029 [NOTICE] Loading LiteSpeed/2.2.2 Standard ...
2006-10-06 08:12:28.032 [NOTICE] [ADMIN] server socket: 127.0.0.1:7323
2006-10-06 08:12:28.032 [NOTICE] Loading configuration from /opt/lsws/conf/httpd_config.xml ...
2006-10-06 08:12:28.033 [INFO] old priority: 0, new priority: 0
2006-10-06 08:12:28.033 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2006-10-06 08:12:28.037 [NOTICE] The maximum number of file descriptor limit is set to 11095.
#
[/QUOTE]

I should be missing some package or anything else, but I can find what. And strace is not available for amd64, so I can't help finding where it hangs.
 

mistwang

LiteSpeed Staff
#4
Looks like something wrong with the IP address detection, the 32bit compatible layer of amd64 may not be complete.
Can you try the linux binary instead? FreeBSD has a linux ABI compatible layer.
 
#5
Can you try the linux binary instead? FreeBSD has a linux ABI compatible layer.
The Linux binary on the same server works ... at least it starts, I didn't made more testing. I have Linux server to run Linux binaries ;)

Would be nice to be able to run the native FreeBSD binary on FreeBSD at it looks you support this OS.

Thanks.
 
Top