Hi, some days ago I posted a message asking for help with using Rails on a WinXP/Apache2/FastCGI installation... Some guys kindly responded with sugestions and thoughts but, I''m still unknow what''s going on. What I now is: FastCGI is working. After the first call to the Rails app (and after the error message) if I wait a few moments (actually as soon as all ''rubyw.exe'' instances are running) and call again the application, it works well and keeps ok till I (for any reason) needs restart Apache (in that case all happens again...). I know now that, what is happening is in the first call is a ''timeout'', probably caused by the 100% cpu usage when the rubyw.exe instances are beeing loaded. So, can anyone tell me why FastCGI (or Apache?) starts 10 instances of rubyw.exe if only one (at least at that time) is needed? How can I drop the number of instances started? Is it possible? Regards, Eduardo.
You could try some of the settings from the readme that comes with the isapi fast cgi source [1]. There''s a ThreadPoolSize described in there that has a default of 10. You might also be interested in [2]. Which describes how to get IIS/FCGI/Rails going. I''ve tried it with a simple hello world app, and it works. It only started on listener for me, though more were started when I put the sample app under a bit of load. HTH, Chris [1] http://www.caraveo.com/fastcgi/ [2] http://bitmask.co.uk/notes/PermaLink.aspx?guid=b85838a0-5e60-4b1f-93ca-c2647fa326ff On Apr 8, 2005 4:07 PM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > > some days ago I posted a message asking for help with > using Rails on a WinXP/Apache2/FastCGI installation... > > Some guys kindly responded with sugestions and thoughts but, > I''m still unknow what''s going on. > > What I now is: FastCGI is working. > > After the first call to the Rails app (and after the error message) > if I wait a few moments (actually as soon as all ''rubyw.exe'' instances > are running) and call again the application, it works well and keeps ok > till I (for any reason) needs restart Apache (in that case all happens > again...). > > I know now that, what is happening is in the first call is a ''timeout'', > probably caused by the 100% cpu usage when the rubyw.exe instances are > beeing loaded. > > So, can anyone tell me why FastCGI (or Apache?) starts 10 instances of > rubyw.exe if only one (at least at that time) is needed? > > How can I drop the number of instances started? Is it possible? > > Regards, > > Eduardo. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Tanks Chris, I''ll take a look at that... Eduardo. Chris McGrath wrote:> You could try some of the settings from the readme that comes with the > isapi fast cgi source [1]. There''s a ThreadPoolSize described in there > that has a default of 10. > > You might also be interested in [2]. Which describes how to get > IIS/FCGI/Rails going. I''ve tried it with a simple hello world app, and > it works. It only started on listener for me, though more were started > when I put the sample app under a bit of load. > > HTH, > > Chris > > [1] http://www.caraveo.com/fastcgi/ > [2] http://bitmask.co.uk/notes/PermaLink.aspx?guid=b85838a0-5e60-4b1f-93ca-c2647fa326ff > > > On Apr 8, 2005 4:07 PM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >>Hi, >> >>some days ago I posted a message asking for help with >>using Rails on a WinXP/Apache2/FastCGI installation... >> >>Some guys kindly responded with sugestions and thoughts but, >>I''m still unknow what''s going on. >> >>What I now is: FastCGI is working. >> >>After the first call to the Rails app (and after the error message) >>if I wait a few moments (actually as soon as all ''rubyw.exe'' instances >>are running) and call again the application, it works well and keeps ok >>till I (for any reason) needs restart Apache (in that case all happens >>again...). >> >>I know now that, what is happening is in the first call is a ''timeout'', >>probably caused by the 100% cpu usage when the rubyw.exe instances are >>beeing loaded. >> >>So, can anyone tell me why FastCGI (or Apache?) starts 10 instances of >>rubyw.exe if only one (at least at that time) is needed? >> >>How can I drop the number of instances started? Is it possible? >> >>Regards, >> >>Eduardo. >> >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
No idea why those instances of Apache and Rails are popping up, but thanks to your reply I was able to get Apache + FastCGI working on my windows machine. I haven''t had any problems yet. But I only have a single model/view/controller right now. Its a simple scaffold so nothing much is happening. If I run into the same problem you''re having, i''ll post it here. Maybe try to reinstall everything? =P On Apr 8, 2005 11:26 AM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Tanks Chris, > > I''ll take a look at that... > > Eduardo. > > > Chris McGrath wrote: > > You could try some of the settings from the readme that comes with the > > isapi fast cgi source [1]. There''s a ThreadPoolSize described in there > > that has a default of 10. > > > > You might also be interested in [2]. Which describes how to get > > IIS/FCGI/Rails going. I''ve tried it with a simple hello world app, and > > it works. It only started on listener for me, though more were started > > when I put the sample app under a bit of load. > > > > HTH, > > > > Chris > > > > [1] http://www.caraveo.com/fastcgi/ > > [2] > http://bitmask.co.uk/notes/PermaLink.aspx?guid=b85838a0-5e60-4b1f-93ca-c2647fa326ff > > > > > > On Apr 8, 2005 4:07 PM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >>Hi, > >> > >>some days ago I posted a message asking for help with > >>using Rails on a WinXP/Apache2/FastCGI installation... > >> > >>Some guys kindly responded with sugestions and thoughts but, > >>I''m still unknow what''s going on. > >> > >>What I now is: FastCGI is working. > >> > >>After the first call to the Rails app (and after the error message) > >>if I wait a few moments (actually as soon as all ''rubyw.exe'' instances > >>are running) and call again the application, it works well and keeps ok > >>till I (for any reason) needs restart Apache (in that case all happens > >>again...). > >> > >>I know now that, what is happening is in the first call is a ''timeout'', > >>probably caused by the 100% cpu usage when the rubyw.exe instances are > >>beeing loaded. > >> > >>So, can anyone tell me why FastCGI (or Apache?) starts 10 instances of > >>rubyw.exe if only one (at least at that time) is needed? > >> > >>How can I drop the number of instances started? Is it possible? > >> > >>Regards, > >> > >>Eduardo. > >> > >>_______________________________________________ > >>Rails mailing list > >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >>http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Ramin, I''m glady you got Rails running on WinXP. Ramin wrote:> No idea why those instances of Apache and Rails are popping up, but > thanks to your reply I was able to get Apache + FastCGI working on my > windows machine. I haven''t had any problems yet. But I only have a > single model/view/controller right now. Its a simple scaffold so nothingWhat you did!? In my case I just did x:\> cd directory_where_i_want_the_app x:\directory_where_i_want_the_app\>rails app x:\directory_where_i_want_the_app\>cd app x:\directory_..._app\app\>ruby script\generate controller test in generated tesT_controller.rb I defined: def index render_text "Hello Rails" end and in browser called the app/test was enough to get all problems I said!> much is happening. If I run into the same problem you''re having, i''ll > post it here. Maybe try to reinstall everything? =P >You think it will do? Regards, Eduardo.
On Apr 8, 2005 10:16 AM, Chris McGrath <c.r.mcgrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You could try some of the settings from the readme that comes with the > isapi fast cgi source [1]. There''s a ThreadPoolSize described in there > that has a default of 10. > > You might also be interested in [2]. Which describes how to get > IIS/FCGI/Rails going. I''ve tried it with a simple hello world app, and > it works. It only started on listener for me, though more were started > when I put the sample app under a bit of load. > > HTH, > > Chris > > [1] http://www.caraveo.com/fastcgi/ > [2] http://bitmask.co.uk/notes/PermaLink.aspx?guid=b85838a0-5e60-4b1f-93ca-c2647fa326ffWow, I got so close to getting that working. Two issues: The Rewrite filter isn''t working for some reason. I added the isapirewrite4.dll to c:\winnt\system32\inetsrv (Win2003). I added rails\myapp\IonicIsapiRewriter1.0\IsapiRewrite4.ini with the proper contents from that article. I can go to http://myserver.com/dispatch.fcgi/test, and it''s fine, yet http://myserver.com/test returns a 404. Also, the SQL Server stuff isn''t working. I loaded the ADO stuff, and it works great from webrick and from the console. Yet, I get "Could not load driver (No such file to load -- DBD/ADO/ADO)" when I try it from FastCGI. I created that ''test'' controller to render_text, and it''s fine. Any ideas? -- rick http://techno-weenie.net
Rick, eeeek! you''re using IIS ? =] I have no idea about IIS and isapi filters. I messed around with them once, but I gave up. If you can, just use Apache or the internal webserver. Beyond that, I can''t be of much help. Eduardo, I didn''t do anything besides follow your procedure for getting apache + fastcgi working. I updated all my libraries. got that RubyForApache package and just configured my http.conf file to use fastcgi. besides that, I didn''t do anything else. Im not sure why you are getting all those extra processes. What "I" would do is just remove everything and resintall everything from scratch. I sometimes resort to that when I''m fed up and dont feel like fixing things =] Sorry, I couldnt help much, good luck though. On Apr 8, 2005 3:24 PM, Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Apr 8, 2005 10:16 AM, Chris McGrath <c.r.mcgrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > You could try some of the settings from the readme that comes with the > > isapi fast cgi source [1]. There''s a ThreadPoolSize described in there > > that has a default of 10. > > > > You might also be interested in [2]. Which describes how to get > > IIS/FCGI/Rails going. I''ve tried it with a simple hello world app, and > > it works. It only started on listener for me, though more were started > > when I put the sample app under a bit of load. > > > > HTH, > > > > Chris > > > > [1] http://www.caraveo.com/fastcgi/ > > [2] > http://bitmask.co.uk/notes/PermaLink.aspx?guid=b85838a0-5e60-4b1f-93ca-c2647fa326ff > > Wow, I got so close to getting that working. Two issues: > > The Rewrite filter isn''t working for some reason. I added the > isapirewrite4.dll to c:\winnt\system32\inetsrv (Win2003). I added > rails\myapp\IonicIsapiRewriter1.0\IsapiRewrite4.ini with the proper > contents from that article. I can go to > http://myserver.com/dispatch.fcgi/test, and it''s fine, yet > http://myserver.com/test returns a 404. > > Also, the SQL Server stuff isn''t working. I loaded the ADO stuff, and > it works great from webrick and from the console. Yet, I get "Could > not load driver (No such file to load -- DBD/ADO/ADO)" when I try it > from FastCGI. I created that ''test'' controller to render_text, and > it''s fine. > > Any ideas? > > -- > rick > http://techno-weenie.net > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I am having the same problem as you it seems! I just tried to access my page and was getting some errors.. I checked my Task Manager and noticed 10-12 rubyw.exe''s executing. So now I know what you are talking about. It must be an issue with fastcgi or maybe ruby+fastcgi. If the problem persists, I''m going to just use mod_ruby. Please let me know if you find out more about this problem! Ramin On Apr 8, 2005 2:13 PM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi Ramin, > > I''m glady you got Rails running on WinXP. > > Ramin wrote: > > No idea why those instances of Apache and Rails are popping up, but > > thanks to your reply I was able to get Apache + FastCGI working on my > > windows machine. I haven''t had any problems yet. But I only have a > > single model/view/controller right now. Its a simple scaffold so nothing > > What you did!? > > In my case I just did > > x:\> cd directory_where_i_want_the_app > x:\directory_where_i_want_the_app\>rails app > x:\directory_where_i_want_the_app\>cd app > x:\directory_..._app\app\>ruby script\generate controller test > > in generated tesT_controller.rb I defined: > > def index > render_text "Hello Rails" > end > > and in browser called the app/test > > was enough to get all problems I said! > > > > much is happening. If I run into the same problem you''re having, i''ll > > post it here. Maybe try to reinstall everything? =P > > > > You think it will do? > > Regards, > > Eduardo. >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Rick. I''m sorry but I''m not trying to use IIS. So, I have not mutch to say you about... If you wish to give Apache a try then I''d try to help you as mutch as I can. Regards, Eduardo. Rick Olson wrote:> On Apr 8, 2005 10:16 AM, Chris McGrath <c.r.mcgrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >>You could try some of the settings from the readme that comes with the >>isapi fast cgi source [1]. There''s a ThreadPoolSize described in there >>that has a default of 10. >> >>You might also be interested in [2]. Which describes how to get >>IIS/FCGI/Rails going. I''ve tried it with a simple hello world app, and >>it works. It only started on listener for me, though more were started >>when I put the sample app under a bit of load. >> >>HTH, >> >>Chris >> >>[1] http://www.caraveo.com/fastcgi/ >>[2] http://bitmask.co.uk/notes/PermaLink.aspx?guid=b85838a0-5e60-4b1f-93ca-c2647fa326ff > > > Wow, I got so close to getting that working. Two issues: > > The Rewrite filter isn''t working for some reason. I added the > isapirewrite4.dll to c:\winnt\system32\inetsrv (Win2003). I added > rails\myapp\IonicIsapiRewriter1.0\IsapiRewrite4.ini with the proper > contents from that article. I can go to > http://myserver.com/dispatch.fcgi/test, and it''s fine, yet > http://myserver.com/test returns a 404. > > Also, the SQL Server stuff isn''t working. I loaded the ADO stuff, and > it works great from webrick and from the console. Yet, I get "Could > not load driver (No such file to load -- DBD/ADO/ADO)" when I try it > from FastCGI. I created that ''test'' controller to render_text, and > it''s fine. > > Any ideas? >
Ramin, I think you''re right. I''m going to reinstall everything this weekend. Let''s see. Cheers, Eduardo. Ramin wrote:> Rick, > > eeeek! you''re using IIS ? =] > > I have no idea about IIS and isapi filters. I messed around with them > once, but I gave up. If you can, just use Apache or the internal > webserver. Beyond that, I can''t be of much help. > > > Eduardo, > > I didn''t do anything besides follow your procedure for getting apache + > fastcgi working. I updated all my libraries. got that RubyForApache > package and just configured my http.conf file to use fastcgi. besides > that, I didn''t do anything else. Im not sure why you are getting all > those extra processes. What "I" would do is just remove everything and > resintall everything from scratch. I sometimes resort to that when I''m > fed up and dont feel like fixing things =] > > Sorry, I couldnt help much, good luck though. > > > On Apr 8, 2005 3:24 PM, *Rick Olson* <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > <mailto:technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote: > > On Apr 8, 2005 10:16 AM, Chris McGrath <c.r.mcgrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > <mailto:c.r.mcgrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote: > > You could try some of the settings from the readme that comes > with the > > isapi fast cgi source [1]. There''s a ThreadPoolSize described in > there > > that has a default of 10. > > > > You might also be interested in [2]. Which describes how to get > > IIS/FCGI/Rails going. I''ve tried it with a simple hello world > app, and > > it works. It only started on listener for me, though more were > started > > when I put the sample app under a bit of load. > > > > HTH, > > > > Chris > > > > [1] http://www.caraveo.com/fastcgi/ > > [2] > http://bitmask.co.uk/notes/PermaLink.aspx?guid=b85838a0-5e60-4b1f-93ca-c2647fa326ff > > Wow, I got so close to getting that working. Two issues: > > The Rewrite filter isn''t working for some reason. I added the > isapirewrite4.dll to c:\winnt\system32\inetsrv (Win2003). I added > rails\myapp\IonicIsapiRewriter1.0\IsapiRewrite4.ini with the proper > contents from that article. I can go to > http://myserver.com/dispatch.fcgi/test, and it''s fine, yet > http://myserver.com/test returns a 404. > > Also, the SQL Server stuff isn''t working. I loaded the ADO stuff, and > it works great from webrick and from the console. Yet, I get "Could > not load driver (No such file to load -- DBD/ADO/ADO)" when I try it > from FastCGI. I created that ''test'' controller to render_text, and > it''s fine. > > Any ideas? > > -- > rick > http://techno-weenie.net > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > - Ramin > http://www.getintothis.com/blog > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I''m kind of jumping into the middle of the conversion here, so I''m not sure what you guys have tried... I''ve been successfully running Rails on both Win32\Apache and IIS. With Apache you need FastCgiConfig -processSlack 1 -maxprocesses 2 in your conf to prevent it starting too many processes. I''ve found each process usually takes around 15mb, and should be idling at 0 CPU, so it''s fairly easy to see which processes haven''t finished initialising. Also, you may need to increase your TimeOut in Apache, if the spin-up time is taking unusually long. If anyone has a question about IIS, I''d be happy to help. It''d help with my howto rewrite on bitmask :) Rick: isapirewrite4.dll needs to be in the same dir as the .ini - this is why I keep the filter in my Rails app dir; you''re going to need individual copies for different projects. (Hacking it to look in the website root is on my todo list). - Paul
Hi, I think I''ve solved the problem. In the Apache''s config file ''httpd.conf'', add the following line FastCgiConfig -maxClassProcesses 3 -startDelay 30 in the ''<IfModule mod_fastcgi.c>'' block definitions. Mine look now look like this: ... <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi FastCgiConfig -maxClassProcesses 3 -startDelay 30 </IfModule> ... The ''Application error'' page was gone and now I have just one instance of rubyw.exe running. Try it out. Regards, Eduardo. Ramin wrote:> I am having the same problem as you it seems! I just tried to access my > page and was getting some errors.. I checked my Task Manager and noticed > 10-12 rubyw.exe''s executing. So now I know what you are talking about. > It must be an issue with fastcgi or maybe ruby+fastcgi. If the problem > persists, I''m going to just use mod_ruby. > > Please let me know if you find out more about this problem! > > Ramin > > > On Apr 8, 2005 2:13 PM, *Eduardo Manso* <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > <mailto:emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote: > > Hi Ramin, > > I''m glady you got Rails running on WinXP. > > Ramin wrote: > > No idea why those instances of Apache and Rails are popping up, but > > thanks to your reply I was able to get Apache + FastCGI working on my > > windows machine. I haven''t had any problems yet. But I only have a > > single model/view/controller right now. Its a simple scaffold so > nothing > > What you did!? > > In my case I just did > > x:\> cd directory_where_i_want_the_app > x:\directory_where_i_want_the_app\>rails app > x:\directory_where_i_want_the_app\>cd app > x:\directory_..._app\app\>ruby script\generate controller test > > in generated tesT_controller.rb I defined: > > def index > render_text "Hello Rails" > end > > and in browser called the app/test > > was enough to get all problems I said! > > > > much is happening. If I run into the same problem you''re having, i''ll > > post it here. Maybe try to reinstall everything? =P > > > > You think it will do? > > Regards, > > Eduardo. > > > > > -- > - Ramin > http://www.getintothis.com/blog
Paul, I just solved the problem, but I used FastCgiConfig -maxClassProcesses 3 -startDelay 30 However, reading the text at http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html I started to believe that your solution is better. Tanks, Eduardo. Paul Nicholls wrote:> I''m kind of jumping into the middle of the conversion here, so I''m not > sure what you guys have tried... > > I''ve been successfully running Rails on both Win32\Apache and IIS. > With Apache you need > > FastCgiConfig -processSlack 1 -maxprocesses 2 > > in your conf to prevent it starting too many processes. I''ve found > each process usually takes around 15mb, and should be idling at 0 CPU, > so it''s fairly easy to see which processes haven''t finished > initialising. Also, you may need to increase your TimeOut in Apache, > if the spin-up time is taking unusually long. > > If anyone has a question about IIS, I''d be happy to help. It''d help > with my howto rewrite on bitmask :) > > Rick: isapirewrite4.dll needs to be in the same dir as the .ini - this > is why I keep the filter in my Rails app dir; you''re going to need > individual copies for different projects. (Hacking it to look in the > website root is on my todo list). > > - Paul > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
I noticed some of you are using rubyw.exe with Apache, and I''m wondering which ruby.exe file should be used with it? I''ve been using the straight ruby.exe with it, and have had no trouble. I was under the impression that rubyw''s purpose was for gui apps. Any reason/benefit to switching to rubyw.exe with Apache? -- Bill Guindon (aka aGorilla)
Eduardo: yep, I got your mail right after I sent mine :) Glad it''s working now. Bill: I''d read somewhere that it was the appropriate version to use, according to this page[1] "It is the same as ruby.exe except that it does not provide standard in, standard out, or standard error, and does not launch a DOS shell when run" Which is interesting, wondering if using ruby.exe will help the IIS/FastCGI config problem. Going to test it out. [1] http://ruby.activeventure.com/programmingruby/book/win32.html -paul
Hi Bill, Bill Guindon wrote:> I noticed some of you are using rubyw.exe with Apache, and I''m > wondering which ruby.exe file should be used with it? I''ve been using > the straight ruby.exe with it, and have had no trouble.Actually the problems was with the configuration of Apache/FastCGI. They are gone.> > I was under the impression that rubyw''s purpose was for gui apps. Any > reason/benefit to switching to rubyw.exe with Apache? >I tested with both (ruby and rubyw) and couldn''t see any difference. Regards, Eduardo
On Apr 9, 2005 11:47 AM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi Bill, > > > Bill Guindon wrote: > > I noticed some of you are using rubyw.exe with Apache, and I''m > > wondering which ruby.exe file should be used with it? I''ve been using > > the straight ruby.exe with it, and have had no trouble. > > Actually the problems was with the configuration of Apache/FastCGI. > They are gone. > > > > > I was under the impression that rubyw''s purpose was for gui apps. Any > > reason/benefit to switching to rubyw.exe with Apache? > > > > I tested with both (ruby and rubyw) and couldn''t see any difference.Glad to hear you got it to work. Still leaves me wondering which one "should" be used, or if it matters at all.> Regards, > > Eduardo >-- Bill Guindon (aka aGorilla)
Paul, Paul Nicholls wrote:> Eduardo: yep, I got your mail right after I sent mine :) Glad it''s working now.Thanks anyway.> > Bill: I''d read somewhere that it was the appropriate version to use, > according to this page[1] > > "It is the same as ruby.exe except that it does not provide standard > in, standard out, or standard error, and does not launch a DOS shell > when run" > > Which is interesting, wondering if using ruby.exe will help the > IIS/FastCGI config problem. Going to test it out. > > [1] http://ruby.activeventure.com/programmingruby/book/win32.html > > -paul > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Bill, take a look at Paul Nicholls''s post. There he show us why. Cheers, Eduardo. Bill Guindon wrote:> On Apr 9, 2005 11:47 AM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >>Hi Bill, >> >> >>Bill Guindon wrote: >> >>>I noticed some of you are using rubyw.exe with Apache, and I''m >>>wondering which ruby.exe file should be used with it? I''ve been using >>>the straight ruby.exe with it, and have had no trouble. >> >>Actually the problems was with the configuration of Apache/FastCGI. >>They are gone. >> >> >>>I was under the impression that rubyw''s purpose was for gui apps. Any >>>reason/benefit to switching to rubyw.exe with Apache? >>> >> >>I tested with both (ruby and rubyw) and couldn''t see any difference. > > > Glad to hear you got it to work. Still leaves me wondering which one > "should" be used, or if it matters at all. > > >>Regards, >> >>Eduardo >> > > >
Great! I''m glad this was solved. Thanks for the tips Eduardo, and about your english, you speak better english than half the population of the United States ;-) Maybe someone should post this information up on the Wiki ? On Apr 9, 2005 11:57 AM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Bill, > > take a look at Paul Nicholls''s post. There he show us why. > > Cheers, > > Eduardo. > > Bill Guindon wrote: > > On Apr 9, 2005 11:47 AM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >>Hi Bill, > >> > >> > >>Bill Guindon wrote: > >> > >>>I noticed some of you are using rubyw.exe with Apache, and I''m > >>>wondering which ruby.exe file should be used with it? I''ve been using > >>>the straight ruby.exe with it, and have had no trouble. > >> > >>Actually the problems was with the configuration of Apache/FastCGI. > >>They are gone. > >> > >> > >>>I was under the impression that rubyw''s purpose was for gui apps. Any > >>>reason/benefit to switching to rubyw.exe with Apache? > >>> > >> > >>I tested with both (ruby and rubyw) and couldn''t see any difference. > > > > > > Glad to hear you got it to work. Still leaves me wondering which one > > "should" be used, or if it matters at all. > > > > > >>Regards, > >> > >>Eduardo > >> > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I was just wondering, are you guys still getting 2 instances of Apache in your Task Manager? Each one about 15mb? Its not a big deal and doesn''t really bother me much, but I was just wondering why 2 instances start up. I''m using the XAMPP pacakge from http://www.apachefriends.org/en/xampp-windows.html On Apr 9, 2005 12:11 PM, Ramin <i8ramin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Great! I''m glad this was solved. Thanks for the tips Eduardo, and about > your english, you speak better english than half the population of the > United States ;-) > > Maybe someone should post this information up on the Wiki ? > > On Apr 9, 2005 11:57 AM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Bill, > > > > take a look at Paul Nicholls''s post. There he show us why. > > > > Cheers, > > > > Eduardo. > > > > Bill Guindon wrote: > > > On Apr 9, 2005 11:47 AM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > >>Hi Bill, > > >> > > >> > > >>Bill Guindon wrote: > > >> > > >>>I noticed some of you are using rubyw.exe with Apache, and I''m > > >>>wondering which ruby.exe file should be used with it? I''ve been using > > >>>the straight ruby.exe with it, and have had no trouble. > > >> > > >>Actually the problems was with the configuration of Apache/FastCGI. > > >>They are gone. > > >> > > >> > > >>>I was under the impression that rubyw''s purpose was for gui apps. Any > > >>>reason/benefit to switching to rubyw.exe with Apache? > > >>> > > >> > > >>I tested with both (ruby and rubyw) and couldn''t see any difference. > > > > > > > > > Glad to hear you got it to work. Still leaves me wondering which one > > > "should" be used, or if it matters at all. > > > > > > > > >>Regards, > > >> > > >>Eduardo > > >> > > > > > > > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > - Ramin > http://www.getintothis.com/blog >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Ramin, Ramin wrote:> I was just wondering, are you guys still getting 2 instances of Apache > in your Task Manager? Each one about 15mb? Its not a big deal andafter I''ve included the line FastCgiConfig -processSlack 1 -maxprocesses 3 -startDelay 30 (yeah! I''m using Paul Nicholls''s solution) in ''httpd.conf'' file, there are just one instance of rubyw.exe running on my machine (Task Manager). Have you did that alteration?> doesn''t really bother me much, but I was just wondering why 2 instances > start up. I''m using the XAMPP pacakge from > http://www.apachefriends.org/en/xampp-windows.htmlFor now I don''t need Php/Mysql/perl stuff, i''m just playing a little with Rails (I''m a newbie with Ruby/Rails), so i''m using a simple Apache install. (http://apache.usp.br/httpd/binaries/win32/apache_2.0.53-win32-x86-no_ssl.msi) Tell me if I can help in anyway. Regards, Eduardo.
Yeah, I''m getting one instance of rubyw.exe too.. that part is working great.. however, I am getting 2 instances of Apache. Not sure if its ruby or fastcgi related. Either way, Its not stopping me from using RoR, so it doesn''t really matter. Thanks again for helping us out with this problem! =] On Apr 9, 2005 12:39 PM, Eduardo Manso <emneto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Ramin, > > Ramin wrote: > > I was just wondering, are you guys still getting 2 instances of Apache > > in your Task Manager? Each one about 15mb? Its not a big deal and > > after I''ve included the line > > FastCgiConfig -processSlack 1 -maxprocesses 3 -startDelay 30 > (yeah! I''m using Paul Nicholls''s solution) > > in ''httpd.conf'' file, there are just one instance of rubyw.exe running > on my machine (Task Manager). > > Have you did that alteration? > > > doesn''t really bother me much, but I was just wondering why 2 instances > > start up. I''m using the XAMPP pacakge from > > http://www.apachefriends.org/en/xampp-windows.html > > For now I don''t need Php/Mysql/perl stuff, i''m just playing a little > with Rails (I''m a newbie with Ruby/Rails), so i''m using a simple > Apache install. > > ( > http://apache.usp.br/httpd/binaries/win32/apache_2.0.53-win32-x86-no_ssl.msi > ) > > Tell me if I can help in anyway. > > Regards, > > Eduardo. >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Sorry Ramin, Ramin wrote:> Yeah, I''m getting one instance of rubyw.exe too.. that part is working > great.. however, I am getting 2 instances of Apache. Not sure if itsi didn''t realize that you was talking about Apache instances.. ehehehee... How many virtual hosts do you have defined? In may case I have: (remember that i''ve changed my global ''DocumentRoot'' to ''e:\www'', ok?) # default host <VirtualHost *:80> ServerName localhost DocumentRoot "E:/www" </VirtualHost> # "adbk" host <VirtualHost *:80> ServerName adbk DocumentRoot E:/www/adbk/public/ ErrorLog E:/www/adbk/log/apache.log <Directory E:/www/adbk/public/> Options ExecCGI FollowSymLinks AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> # "addresses" host <VirtualHost *:80> ServerName addresses DocumentRoot E:/www/addresses/public/ ErrorLog E:/www/addresses/log/apache.log <Directory E:/www/addresses/public/> Options ExecCGI FollowSymLinks AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> And have two Apache instances running too. So, i think taht these instances are related to the number of virtaul hosts you have. One for ''default host'' (http://localhost...) wich shows me the ''Congratulations'' page of Rails and the other one for the others virtual hosts (http://adbk... and http://addresses...). But, I can be wrong.> ruby or fastcgi related. Either way, Its not stopping me from using RoR, > so it doesn''t really matter. Thanks again for helping us out with this > problem! =] > > . > . > .Eduardo.