|
|

09-18-2006, 06:33 AM
|
|
New Member
|
|
Join Date: Sep 2006
Posts: 8
|
|
Problem installing LiteSpeed 2.2.1 Standard on UNIX
Hello and sorry if my english is not always perfect,
We are very interested in buying the Enterprise version of the server to serve our new Rails apps if it keeps it promises in terms of performance, scalability and deployment easiness of Rails apps.
I decided then to download and have a look at the Standard edition.
Here is the os/hardware I want to intall LiteSpeed Std on :
Code:
SunOS hulk3.bil.lu 5.8 Generic_117350-23 sun4u sparc SUNW,Sun-Fire-280R
So I dowloaded the Solaris (SPARC) version, unpacked it in my home directory (since I'm not a super user) and ran :
Code:
./install.sh
Destination [~/lsws]:
User name [admin]: admin
Password:
Retype password:
And then I got this :
Code:
ld.so.1: /globalhome2/eg818/lsws-2.2.1/admin/fcgi-bin/admin_php: fatal: libjpeg.so.62: open failed: No such file or directory
But the install procedure continued and went ok till the end with the following inputs from my part :
Code:
Setup up PHP [Y/n]: Y
Suffix for PHP script(comma separated list) [php]:
Installing, please wait...
Your current PHP engine /globalhome2/eg818/lsws/fcgi-bin/lsphp is renamed to lsphp.old
Would you like to change PHP opcode cache setting [y/N]? N
Would you like to install AWStats Add-on module [y/N]? N
Would you like to import Apache configuration [y/N]? N
Congratulations! The LiteSpeed Web Server has been successfully installed.
Command line script - "/globalhome2/eg818/lsws/bin/lswsctrl"
can be used to start or stop the server.
I started the server and I managed to access the default site : http://hulk3:8088
But when I tried the admin part : http://hulk3:7080 filling the login and password and clicking OK, then the browser gave me this :
Code:
503 Service Unavailable
The server is temporarily busy, try again later!
--------------------------------------------------------------------------------
Powered By LiteSpeed Web Server
Lite Speed Technologies is not responsible for administration and contents of this web site!
Looking in the logs directory gives the following :
error.log
Code:
[eg818@hulk3.bil.lu] /globalhome2/eg818/lsws/logs > more error.log
2006-09-18 14:53:53.492 [NOTICE] Loading LiteSpeed/2.2.1 Standard ...
2006-09-18 14:53:53.601 [NOTICE] [ADMIN] server socket: 127.0.0.1:7316
2006-09-18 14:53:53.601 [NOTICE] Loading configuration from /globalhome2/eg818/lsws/conf/httpd_config.xml ...
2006-09-18 14:53:53.605 [NOTICE] [suEXEC] disabled, web server is not started by root user.
2006-09-18 14:53:53.609 [INFO] old priority: 0, new priority: 0
2006-09-18 14:53:53.609 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2006-09-18 14:53:53.635 [NOTICE] The maximum number of file descriptor limit is set to 1024.
2006-09-18 14:53:53.644 [WARN] [config:server:rails] Cannot find ruby interpreter, Rails easy configuration is turned off
2006-09-18 14:53:53.665 [NOTICE] [AutoRestarter] new child process with pid=4805 is forked!
2006-09-18 14:53:53.667 [NOTICE] [Child: 4805] Setup swapping space...
2006-09-18 14:53:53.667 [NOTICE] [Child: 4805] LiteSpeed/2.2.1 Standard starts successfully!
2006-09-18 14:53:54.347 [NOTICE] [AutoUpdate] Checking for new releases...
2006-09-18 14:54:14.414 [NOTICE] [AutoUpdate] Failed, updateagent exit code: 3
[eg818@hulk3.bil.lu] /globalhome2/eg818/lsws/logs >
stderr.log
Code:
ld.so.1: admin_php: fatal: libjpeg.so.62: open failed: No such file or directory
ld.so.1: admin_php: fatal: libjpeg.so.62: open failed: No such file or directory
ld.so.1: admin_php: fatal: libjpeg.so.62: open failed: No such file or directory
ld.so.1: admin_php: fatal: libjpeg.so.62: open failed: No such file or directory
Did someone has an idea ? I am not a UNIX expert guru but I feel this may be a system problem...
I have other questions :
1) Why two directories : ~/lsws and ~/lsws-2.2.1 ?
2) I installed Ruby version 1.8.4 in ~/ruby and added the ~/ruby/bin in my PATH, but it seems that LiteSpeed did not succeed in detecting my Ruby install.
Code:
2006-09-18 14:53:53.644 [WARN] [config:server:rails] Cannot find ruby interpreter, Rails easy configuration is turned off
Anyone has an idea ? Is there a way to specify manually where the Ruby is installed ?
Thanks in advance,
PS : I must admin that I spent a couple of days trying to run Apache + FastCGI and gave up because of instability issues. So LiteSpeed is my last chance to convince my friends / developpers of the beauty of Ruby on Rails...
|

09-18-2006, 07:28 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
We made a mistake when building admin_php binary, admin_php dynamically linked to libjpeg.so, we updated the binary with static linkage to libjpeg.a, you can download 2.2.1 package again, the problem should be fixed.
~/lsws-2.2.1 is where the installation package expanded, you can remove it after installation, ~/lsws is the directory where LSWS has been installed to.
You can change the path to ruby executable after you get into the web admin console under "Rails" tab. If it is better to install ruby to server wide directory if you have the authority to do that.
LiteSpeed + Rails is quick and easy, one of the best platform for RoR development and deployment. I hope you enjoy working on it. 
|

09-18-2006, 08:03 AM
|
|
New Member
|
|
Join Date: Sep 2006
Posts: 8
|
|
Hi and thank you for your fast answer,
I downloaded the install again deleted all the directories and tried to reinstall, but I have the same error message during the install :
Code:
Please specify the administrator's password.
This is the password required to log into the administration web interface.
Password:
Retype password:
ld.so.1: /globalhome2/eg818/lsws-2.2.1/admin/fcgi-bin/admin_php: fatal: libjpeg.so.62: open failed: No such file or directory
Please choose the group that the web server running as.
What looks strange is that the new install has the same filesize as the old one. Could you confirm that you changed the install file ?
|

09-18-2006, 09:02 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
Sorry, made another mistake again.
Fixed, please download the package again.
|

09-19-2006, 12:36 AM
|
|
New Member
|
|
Join Date: Sep 2006
Posts: 8
|
|
|
Work great !
Thank you.
One last thing : do you forsee in a near futur to provide a Windows version of your server ?
|

09-19-2006, 06:34 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
Quote:
|
do you forsee in a near futur to provide a Windows version of your server ?
|
It probably will not happen in the near future.
|

09-19-2006, 06:36 AM
|
|
New Member
|
|
Join Date: Sep 2006
Posts: 8
|
|
I was too optimistic...
I managed to start view the "Youre riding the Rails!" page of a test application. But when I click on the link "About your applications environment" then the browser waits for ages and responds back :
Code:
503 Service Unavailable
The server is temporarily busy, try again later!
--------------------------------------------------------------------------------
Powered By LiteSpeed Web Server
Lite Speed Technologies is not responsible for administration and contents of this web site!
Going in the server log directory I have this in the stderr.log file :
Code:
ld.so.1: ruby: fatal: relocation error: file /globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solaris2.8/lsapi.so: symbol unsete
nv: referenced symbol not found
When I start an irb session and type :
I get this :
Code:
irb(main):001:0> require 'lsapi'
/globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solaris2.8/lsapi.so: warning: already initialized constant ENV
ld.so.1: /globalhome2/eg818/ruby/bin/ruby: fatal: relocation error: file /globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solari
s2.8/lsapi.so: symbol getpeername: referenced symbol not found
Killed
I remember I had warning when I installed ruby-lsapi-1.8 :
Code:
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8 > ruby setup.rb config
---> ext
---> ext/lsapi
/globalhome2/eg818/ruby/bin/ruby /globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi/extconf.rb
creating Makefile
<--- ext/lsapi
<--- ext
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8 > ruby setup.rb setup
---> ext
---> ext/lsapi
make
make: Warning: File `Makefile' has modification time 1.1e+03 s in the future
gcc -fPIC -g -O2 -I. -I/globalhome2/eg818/ruby/lib/ruby/1.8/sparc-solaris2.8 -I/globalhome2/eg818/ruby/lib/ruby/1.8/sparc-solaris2.
8 -I/globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi -c lsruby.c
gcc -fPIC -g -O2 -I. -I/globalhome2/eg818/ruby/lib/ruby/1.8/sparc-solaris2.8 -I/globalhome2/eg818/ruby/lib/ruby/1.8/sparc-solaris2.
8 -I/globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi -c lsapilib.c
gcc -Wl,-G -L'/globalhome2/eg818/ruby/lib' -Wl,-R'/globalhome2/eg818/ruby/lib' -o lsapi.so lsruby.o lsapilib.o -ldl -lcrypt -lm
-lc
make: warning: Clock skew detected. Your build may be incomplete.
<--- ext/lsapi
<--- ext
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8 > ruby setup.rb install
rm -f InstalledFiles
---> ext
---> ext/lsapi
mkdir -p /globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solaris2.8
install lsapi.so /globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solaris2.8/.
<--- ext/lsapi
<--- ext
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8 >
But I don't think this warning is important.
Anyway, your help will be appreciated... I am near then end of a nightmare...
PS : Two optional questions :
1) Do you prescribe to store vhost configuration under the lsws directory or under the application conf directory ?
2) Is there a way to have one listener (say 8088) that serves several rails apps like http://hulk3:8088/my_app_1 and http://hulk3:8088/my_app_2
Thanks in advance.
|

09-19-2006, 09:20 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
ruby-lsapi need to be patched on solaris 8, please do the following:
Please open ext/lsapi/lsruby.c, replace all "unsetenv" with "ruby_unsetenv".
Open ext/lsapi/Makefile, search for "LIBS" variable, add "-lsocket -lnsl" at the beginning.
Run "make install" under ext/lsapi/ directory.
We will find a way to generate a special version of Makefile for Solaris, please patch it manually for now. Please let me know it works or not.
Answer to your other questions:
1) I prefer store vhost configuration under lsws/conf/ directory, if stored under the application conf directory, you need to make sure that directory is writable for the user that lshttpd running as.
2) You can host multiple rails app in different path under one vhost. You need to create those Rails context manually, not through our rails vhost template.
|

09-20-2006, 12:44 AM
|
|
New Member
|
|
Join Date: Sep 2006
Posts: 8
|
|
It doesnt work.
In the file lsruby.c
All the "unsetenv" were in the lsapi_Init function and have been replaced by "ruby_unsetenv".
In the file Makefile
I changed the LIB variable from :
Code:
LIBS = -ldl -lcrypt -lm -lc
to
Code:
LIBS = -lsocket -lnsl -ldl -lcrypt -lm -lc
But when compiling in the ext/lsapi directory with "make install" I get this :
Code:
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi > make install
make: Warning: File `Makefile' has modification time 1e+03 s in the future
gcc -fPIC -g -O2 -I. -I/globalhome2/eg818/ruby/lib/ruby/1.8/sparc-solaris2.8 -I/globalhome2/eg818/ruby/lib/ruby/1.8/sparc-solaris2.
8 -I/globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi -c lsruby.c
gcc -Wl,-G -L'/globalhome2/eg818/ruby/lib' -Wl,-R'/globalhome2/eg818/ruby/lib' -o lsapi.so lsruby.o lsapilib.o -lsocket -lnsl -ld
l -lcrypt -lm -lc
./install-sh -c -m 0755 lsapi.so /globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solaris2.8
make: ./install-sh: Command not found
make: *** [/globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solaris2.8/lsapi.so] Error 127
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi >
What is this file install-sh ?
I tried to manually copy the file lsapi.so from "ext/lsapi" to "site_ruby/1.8/sparc-solaris2.8" but when starting an irb session with require 'lsapi' I get this :
Code:
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi > cp lsapi.so /globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-
solaris2.8/lsapi.so
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi > irb
irb(main):001:0> require 'lsapi'
/globalhome2/eg818/ruby/lib/ruby/site_ruby/1.8/sparc-solaris2.8/lsapi.so: warning: already initialized constant ENV
/globalhome2/eg818/ruby/lib/ruby/1.8/irb/input-method.rb:49:in `gets': private method `gets' called for #<LSAPI:0xee2a8> (NoMethodEr
ror)
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb.rb:132:in `eval_input'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb.rb:259:in `signal_status'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb.rb:131:in `eval_input'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/ruby-lex.rb:189:in `buf_input'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/ruby-lex.rb:104:in `getc'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/slex.rb:206:in `match_io'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/slex.rb:76:in `match'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/ruby-lex.rb:287:in `token'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/ruby-lex.rb:263:in `lex'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/ruby-lex.rb:234:in `each_top_level_statement'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/ruby-lex.rb:230:in `each_top_level_statement'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb/ruby-lex.rb:229:in `each_top_level_statement'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb.rb:146:in `eval_input'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb.rb:70:in `start'
from /globalhome2/eg818/ruby/lib/ruby/1.8/irb.rb:69:in `start'
from /globalhome2/eg818/ruby/bin/irb:13
[eg818@hulk3.bil.lu] /globalhome2/eg818/ruby-lsapi-1.8/ext/lsapi >
I tried the test app and it works !
So I can see here one real error (the install-sh) and may be one small "error" raised by the require 'lsapi' in the irb session.
Can you confirm please that the irb problem is "normal" and that what the install-sh file would have done is a copy and a chmod 755.
Thank you for your precious help !
|

09-20-2006, 06:45 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
What you did is correct.
I had the same problem with install-sh on solaris, just copy it manually.
The problem with irb is that "gets" function is not defined with LSAPI. Will fix that.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 03:52 AM.
|
|