Josh Kieschnick
2006-Jul-05 21:39 UTC
[Rails] ok, lightTPD is installed... how do i use it.
i used the hivelogic article to install ruby on rails to my mac: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger everything works great using the script/server command, but isn''t that still using WEBrick? how do i server my apps with lightTPD? i tried following the instructions given here: http://duncandavidson.com/essay/2005/12/railsonlighty but have had no success so far. when i try running sudo lighttpd -t -f /etc/lighttpd/lighttpd.conf i get the following output: 2006-07-05 15:46:26: (plugin.c.165) dlopen() failed for: /usr/local/lib/modaccesslog.so dlopen(/usr/local/lib/modaccesslog.so, 1): image not found 2006-07-05 15:46:26: (server.c.583) loading plugins finally failed are there any more resources on server my rails applications with the lightTPD webserver? i haven''t been able to find much. -- Posted via http://www.ruby-forum.com/.
Josh Kieschnick
2006-Jul-05 21:41 UTC
[Rails] Re: ok, lightTPD is installed... how do i use it.
i had a typo in the lighttpd command:> sudo lighttpd -f /etc/lighttpd/lighttpd.confis what i meant. -- Posted via http://www.ruby-forum.com/.
Stephen Smith
2006-Jul-05 22:33 UTC
[Rails] Re: ok, lightTPD is installed... how do i use it.
I think script/server defaults to lighttpd after the hivelogic install. You have to do something like script/server webrick to get webrick. Just take a look at the name scrolling by when the server starts up. :-) On 7/5/06, Josh Kieschnick <jjkiesch@gmail.com> wrote:> i had a typo in the lighttpd command: > > sudo lighttpd -f /etc/lighttpd/lighttpd.conf > > is what i meant. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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/20060705/748f55e6/attachment.html
Josh Kieschnick
2006-Jul-06 18:29 UTC
[Rails] Re: Re: ok, lightTPD is installed... how do i use it.
Stephen Smith wrote:> I think script/server defaults to lighttpd after the hivelogic install. > You > have to do something like script/server webrick to get webrick. Just > take a > look at the name scrolling by when the server starts up. > > :-)ok, i feel dumb. it is lightTPD. this brings up more questions though. i want lighty to run without me having to call script/server everytime. i would also like to have multiple apps hosted on the machine. is there some instruction on doing this with the hivelogic installation method? is there anything special i need to do? when i try to start the server on it''s own, i still get: 2006-07-05 15:46:26: (plugin.c.165) dlopen() failed for: /usr/local/lib/modaccesslog.so dlopen(/usr/local/lib/modaccesslog.so, 1): image not found 2006-07-05 15:46:26: (server.c.583) loading plugins finally failed i had to create the lighttpd.conf file. i''m wondering if the errors could be related to a permissions thing or what. setting groups and permissions aren''t strong points of mine because i''m fairly new to unix. the tutorial here: http://duncandavidson.com/essay/2005/12/railsonlighty simply says to just create the config files. not much detail on how to set the file up. -- Posted via http://www.ruby-forum.com/.
Stephen Smith
2006-Jul-06 23:16 UTC
[Rails] Re: Re: ok, lightTPD is installed... how do i use it.
Hi - You could take a look at Shovel (http://nubyonrails.com/pages/shovel) or the lighttpd.conf file suggested by TextDrive ( http://help.textdrive.com/index.php?pg=file&from=2&id=77) for inspiration. I''m not sure what if anything is sacred in the lighttpd.conf. But these docs should get you started. :-) On 7/6/06, Josh Kieschnick <jjkiesch@gmail.com> wrote:> > Stephen Smith wrote: > > I think script/server defaults to lighttpd after the hivelogic install. > > You > > have to do something like script/server webrick to get webrick. Just > > take a > > look at the name scrolling by when the server starts up. > > > > :-) > > ok, i feel dumb. it is lightTPD. this brings up more questions though. i > want lighty to run without me having to call script/server everytime. i > would also like to have multiple apps hosted on the machine. > > is there some instruction on doing this with the hivelogic installation > method? is there anything special i need to do? > > when i try to start the server on it''s own, i still get: > > 2006-07-05 15:46:26: (plugin.c.165) dlopen() failed for: > /usr/local/lib/modaccesslog.so dlopen(/usr/local/lib/modaccesslog.so, > 1): image not found > 2006-07-05 15:46:26: (server.c.583) loading plugins finally failed > > i had to create the lighttpd.conf file. i''m wondering if the errors > could be related to a permissions thing or what. setting groups and > permissions aren''t strong points of mine because i''m fairly new to unix. > > the tutorial here: http://duncandavidson.com/essay/2005/12/railsonlighty > simply says to just create the config files. not much detail on how to > set the file up. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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/20060706/71a9a416/attachment.html
Stephen Smith
2006-Jul-06 23:21 UTC
[Rails] Re: Re: ok, lightTPD is installed... how do i use it.
P.S. - I think you just add a line to your lighttpd.conf in the lighttpd folder of your server user''s ~/home/USERNAME/var directory and a new APPNAME.conf for each app in your vhosts folder. That''s how it works on TextDrive, anyway. On 7/6/06, Stephen Smith <4fires@gmail.com> wrote:> > > Hi - > > You could take a look at Shovel (http://nubyonrails.com/pages/shovel) or > the lighttpd.conf file suggested by TextDrive (http://help.textdrive.com/index.php?pg=file&from=2&id=77) > for inspiration. > I''m not sure what if anything is sacred in the lighttpd.conf. > > But these docs should get you started. > > :-) > > On 7/6/06, Josh Kieschnick <jjkiesch@gmail.com> wrote: > > > > Stephen Smith wrote: > > > I think script/server defaults to lighttpd after the hivelogic > > install. > > > You > > > have to do something like script/server webrick to get webrick. Just > > > take a > > > look at the name scrolling by when the server starts up. > > > > > > :-) > > > > ok, i feel dumb. it is lightTPD. this brings up more questions though. i > > > > want lighty to run without me having to call script/server everytime. i > > would also like to have multiple apps hosted on the machine. > > > > is there some instruction on doing this with the hivelogic installation > > method? is there anything special i need to do? > > > > when i try to start the server on it''s own, i still get: > > > > 2006-07-05 15:46:26: (plugin.c.165) dlopen() failed for: > > /usr/local/lib/modaccesslog.so dlopen(/usr/local/lib/modaccesslog.so, > > 1): image not found > > 2006-07-05 15:46:26: (server.c.583) loading plugins finally failed > > > > i had to create the lighttpd.conf file. i''m wondering if the errors > > could be related to a permissions thing or what. setting groups and > > permissions aren''t strong points of mine because i''m fairly new to unix. > > > > the tutorial here: http://duncandavidson.com/essay/2005/12/railsonlighty > > simply says to just create the config files. not much detail on how to > > set the file up. > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > 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/20060706/bd25b100/attachment.html