FreeBSD 9.0 installation

#1
Hi,

I'm running:

FreeBSD 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Feb 27 00:45:07 UTC 2012 root@:/usr/obj/usr/src/sys/GENERIC amd64

I downloaded the FreeBSD 6.2 version 64bit and installed it. After installing /usr/ports/misc/compat6x/

Everything installed and the web server is running but when I try to access the admin system I get a timeout and then an error:

503 Service Unavailable

The server is temporarily busy, try again later!
Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!

The logs show:

2012-04-05 13:20:31.682 [NOTICE] [Child: 22780] LiteSpeed/4.1.12 Enterprise starts successfully!
2012-04-05 13:20:32.202 [NOTICE] [AutoUpdate] Checking for new releases..., pid=22781
2012-04-05 13:20:32.205 [NOTICE] Start to clean up cache directory, pid=22782
2012-04-05 13:20:32.507 [INFO] [AutoUpdate] No new update.
2012-04-05 13:21:01.032 [INFO] [62.255.188.109:64306-0#_AdminVHost] ExtConn timed out while processing.
2012-04-05 13:21:01.032 [INFO] [62.255.188.109:64306-0#_AdminVHost] connection to [/tmp/lshttpd/admin_php.sock.474] on request #0, confirmed, 0, associated process: 1952543827, running: 0, error: Operation timed out!
2012-04-05 13:21:01.032 [NOTICE] [62.255.188.109:64306-0#_AdminVHost] Suspicious request timeout, associated process: 1952543827, running: 0.
2012-04-05 13:21:11.031 [INFO] [62.255.188.109:64306-0#_AdminVHost] ExtConn timed out while processing.
2012-04-05 13:21:11.031 [INFO] [62.255.188.109:64306-0#_AdminVHost] connection to [/tmp/lshttpd/admin_php.sock.474] on request #0, confirmed, 0, associated process: 1952543827, running: 0, error: Operation timed out!
2012-04-05 13:21:11.031 [NOTICE] [62.255.188.109:64306-0#_AdminVHost] Suspicious request timeout, associated process: 1952543827, running: 0.
2012-04-05 13:21:11.031 [NOTICE] [62.255.188.109:64306-0#_AdminVHost] Max retries has been reached, 503!
2012-04-05 13:21:11.031 [NOTICE] [62.255.188.109:64306-0#_AdminVHost] oops! 503 Service Unavailable
2012-04-05 13:21:11.031 [NOTICE] [62.255.188.109:64306-0#_AdminVHost] Content len: 0, Request line: 'GET / HTTP/1.1'


Has anyone got any ideas on how to solve this issue? Why are the FreeBSD binaries so old?

Is Litespeed still supported on FreeBSD and actively improved?

Jonathan
 

webizen

Well-Known Member
#2
Yes, FreeBSD is actively supported.

Seems admin_php failed to run on your server.

1. Manually run admin_php (i.e. '/usr/local/lsws/admin/fcgi-bin/admin_php -v') see if any errors.
2. ls -la /tmp/lshttpd.
3. Check admin error log (i.e. /usr/local/lsws/admin/logs/error.log) for any errors.
 
#3
# ./admin_php -v
PHP 4.4.9 (litespeed) (built: Apr 12 2011 13:32:49)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


# ls -la /tmp/lshttpd/
total 14
drwxr-x--x 3 www www 512 Apr 5 23:51 .
drwxrwxrwt 10 root wheel 512 Apr 5 18:47 ..
-rw-r--r-- 1 www www 580 Apr 5 23:51 .rtreport
-rw-r--r-- 1 www www 580 Apr 5 23:51 .rtreport.2
-rw-r--r-- 1 root www 261 Apr 5 23:51 .status
srwxr-xr-x 1 www www 0 Apr 5 02:55 admin_php.sock
srwxr-xr-x 1 www www 0 Apr 5 18:53 admin_php.sock.005
srwxr-xr-x 1 www www 0 Apr 5 02:59 admin_php.sock.746
srwxr-xr-x 1 www www 0 Apr 5 13:16 admin_php.sock.790
-rw-r--r-- 1 root www 6 Apr 5 18:52 lshttpd.pid
drwxr-x--- 8 www www 512 Apr 5 03:08 swap

# tail error.log
2012-04-05 18:53:20.095 [INFO] [109.152.101.48:51331-0#_AdminVHost] ExtConn timed out while processing.
2012-04-05 18:53:20.095 [INFO] [109.152.101.48:51331-0#_AdminVHost] connection to [/tmp/lshttpd/admin_php.sock.005] on request #0, confirmed, 0, associated process: 1952543827, running: 0, error: Operation timed out!
2012-04-05 18:53:20.095 [NOTICE] [109.152.101.48:51331-0#_AdminVHost] Suspicious request timeout, associated process: 1952543827, running: 0.
2012-04-05 18:53:30.094 [INFO] [109.152.101.48:51331-0#_AdminVHost] ExtConn timed out while processing.
2012-04-05 18:53:30.094 [INFO] [109.152.101.48:51331-0#_AdminVHost] connection to [/tmp/lshttpd/admin_php.sock.005] on request #0, confirmed, 0, associated process: 1952543827, running: 0, error: Operation timed out!
2012-04-05 18:53:30.094 [NOTICE] [109.152.101.48:51331-0#_AdminVHost] Suspicious request timeout, associated process: 1952543827, running: 0.
2012-04-05 18:53:30.094 [NOTICE] [109.152.101.48:51331-0#_AdminVHost] Max retries has been reached, 503!
2012-04-05 18:53:30.094 [NOTICE] [109.152.101.48:51331-0#_AdminVHost] oops! 503 Service Unavailable
2012-04-05 18:53:30.094 [NOTICE] [109.152.101.48:51331-0#_AdminVHost] Content len: 0, Request line: 'GET / HTTP/1.1'

2012-04-06 00:02:03.013 [INFO] [127.0.0.1:41027-0#_AdminVHost] Connection idle time: 301 while in state: 5 watching for event: 25,close!
2012-04-06 00:02:03.013 [NOTICE] [127.0.0.1:41027-0#_AdminVHost] Content len: 0, Request line: 'GET / HTTP/1.1'
2012-04-06 00:02:03.013 [INFO] [127.0.0.1:41027-0#_AdminVHost] HttpExtConnector state: 8, request body sent: 0, response body size: 0, response body sent:0, left in buffer: 0, attempts: 0.
2012-04-06 00:02:03.013 [INFO] [127.0.0.1:41027-0#_AdminVHost] Lsapi connection state: 2, watching event: 25, respState: 1, m_iTotalPending:0, m_iPacketLeft:0, m_iCurRespHeader:1163149650, req sent for 301 seconds,Total processing time: 301.


I can't see any log messages giving any indication of why the sockets are not working

Jonathan
 
Last edited:
#7
Thanks, I've now got this running and after a couple of attempts got php compiled and the wordpress site running. I'm on a trial here and testing out and initial impressions are that it runs very fast out of the box.
Is there a guide on performance settings? so I can ensure I'm getting the most out of the software. Also are there any plans to release a version which does not need the compat libraries and works out of the box on fbsd9?
 
Top