Oscar Picasso
2006-Apr-06 00:20 UTC
[Rails] Lighthttpd not working as default (configuration?)
Hi, On the api doc it is written that if lighttpd is installed, rails will use it as its web server instead of WebBrick. I have installed lighthttpd and verified it works (for example on the default port 80) but when lauching script/server, it still uses WebBrick. I wondering if I need to edit /etc/lighttpd/lighthttpd.conf myself or configure something else. Any idea? Thanks Oscar --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060406/9ee9855f/attachment-0001.html
Peter T Bosse II
2006-Apr-06 04:28 UTC
[Rails] Lighthttpd not working as default (configuration?)
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2392 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060406/dbeaacae/smime.bin
Oscar Picasso
2006-Apr-06 04:59 UTC
[Rails] Lighthttpd not working as default (configuration?)
lighthttpd is on the path. which lighttpd => ~/bin/lighttpd It''s actually a symlink to /usr/sbin/lighttpd I have installed it as root. I tried to launch it from the command line but i failed with (server.c.597) opening pid-file failed: /var/run/lighttpd.pid Permission denied /var/run is not writable for non root users. I''ll try to investigate further. Peter T Bosse II <ptb@eliving.us> wrote: Make sure the path to lighttpd is in your path.??? Try this: which lighttpd did it give you the path to lighttpd???? (On my system it''s installed in /usr/local/sbin/lighttpd)??????Where is lighttpd installed???? Is that directory in your path???? Try this: echo $PATH If the path to lighttpd isn''t listed you''ll need to add it.??? Look in ~/.bash_profile or /etc/profile - Peter P.S. This all assumes you''re running Rails on Mac OS X or some other unix-y type system. On Apr 5, 2006, at 5:20 PM, Oscar Picasso wrote: Hi, On the api doc it is written that if lighttpd is installed, rails will use it as its web server instead of WebBrick. I have installed lighthttpd and verified it works (for example on the default port 80) but when lauching script/server, it still uses WebBrick. I wondering if I need to edit /etc/lighttpd/lighthttpd.conf myself or configure something else. Any idea? Thanks Oscar --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1???/min._______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060406/4f2c6749/attachment.html
Chris Hall
2006-Apr-06 13:35 UTC
[Rails] Lighthttpd not working as default (configuration?)
you can force lighttpd by giving it as an option as ''script/server lighttpd'' if it can''t run it, most likely it''s not in your path. script/server will look to see if it can run lighttpd (it tries to run ''lighttpd -version''). if it can, it will copy a default lighttpd.conf file from the RAILS_ROOT/configs/ to yourapp/config/ unless it already exists. the server script then runs lighttpd with -f option for this new config file, which is tailor made (port/ip, log paths, etc) for running your app without requiring root access. check out RAILS_ROOT/lib/commands/server.rb and RAILS_ROOT/lib/commands/servers/lighttpd.rb RAILS_ROOT/configs/lighttpd.conf for more information on the process. On 4/6/06, Oscar Picasso <oscgoogle@yahoo.com> wrote:> > lighthttpd is on the path. > > which lighttpd => ~/bin/lighttpd > > It''s actually a symlink to /usr/sbin/lighttpd > > I have installed it as root. I tried to launch it from the command line > but i failed with > (server.c.597) opening pid-file failed: /var/run/lighttpd.pid Permission > denied > > /var/run is not writable for non root users. I''ll try to investigate > further. > > *Peter T Bosse II <ptb@eliving.us>* wrote: > > Make sure the path to lighttpd is in your path.??? Try this: > which lighttpd > > did it give you the path to lighttpd???? (On my system it''s installed in > /usr/local/sbin/lighttpd)??????Where is lighttpd installed???? Is that > directory in your path???? Try this: > > echo $PATH > > If the path to lighttpd isn''t listed you''ll need to add it.??? Look in > ~/.bash_profile or /etc/profile > > > - Peter > > P.S. This all assumes you''re running Rails on Mac OS X or some other > unix-y type system. > > On Apr 5, 2006, at 5:20 PM, Oscar Picasso wrote: > > Hi, > > On the api doc it is written that if lighttpd is installed, rails will use > it as its web server instead of WebBrick. > > I have installed lighthttpd and verified it works (for example on the > default port 80) but when lauching script/server, it still uses WebBrick. > > I wondering if I need to edit /etc/lighttpd/lighthttpd.conf myself or > configure something else. > > Any idea? > > Thanks > > Oscar > > ------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1???/min.<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > ------------------------------ > Blab-away for as little as 1?/min. Make PC-to-Phone Calls<http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>using Yahoo! Messenger with Voice. > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060406/a901a991/attachment.html
sean@iheartsquares.com
2006-Apr-06 14:44 UTC
[Rails] Lighthttpd not working as default (configuration?)
i''ve seen this happen if the fcgi socket files don''t get cleaned out properly from the last run session. Check the temp path in the error and delete any file that has a filename that starts with the name of your rails app. .sean -----Original Message----- From: "Oscar Picasso" <oscgoogle@yahoo.com> To: rails@lists.rubyonrails.org Sent: 4/5/2006 11:59 PM Subject: Re: [Rails] Lighthttpd not working as default (configuration?) lighthttpd is on the path. which lighttpd => ~/bin/lighttpd It''s actually a symlink to /usr/sbin/lighttpd I have installed it as root. I tried to launch it from the command line but i failed with (server.c.597) opening pid-file failed: /var/run/lighttpd.pid Permission denied /var/run is not writable for non root users. I''ll try to investigate further. Peter T Bosse II <ptb@eliving.us> wrote: Make sure the path to lighttpd is in your path.??? Try this: which lighttpd did it give you the path to lighttpd???? (On my system it''s installed in /usr/local/sbin/lighttpd)??????Where is lighttpd installed???? Is that directory in your path???? Try this: [truncated by sender]