Paul Russell
2006-Apr-09 01:09 UTC
[Instantrails-users] Application error (Apache) on virgin install of 1.2
Hi, Instant Rails has been great for development using webrick. I''m trying to move over to apache and running into all sorts of problems. I''ve narrowed it down to a virgin install and can'' t even get the demo apps to work. Can anyone help? I just installed Instant Rails 1.2 on my windows 2k box and I''m seeing some strange behavior when I navigate to http://www.mycookbook.com/. i.e. Application error (Apache) Heres what I did: 1. Downloaded Instant Rails 1.2 2. unzipped it into D:/devtools/ 3. Changed my hosts file to include 127.0.0.1 www.mycookbook.com 4. started InstantRails.exe and confirmed apache and mysql started 5. typed http://www.mycookbook.com into firefox 6. I was redirected to http://www.mycookbook.com/recipes/list 7. got a 500 internal server error consisting of the text in rails_apps/mycookbook/public/500.html Any ideas? Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060408/be11ebc2/attachment-0001.htm
Curt Hibbs
2006-Apr-09 02:08 UTC
[Instantrails-users] Application error (Apache) on virgin install of 1.2
On 4/8/06, Paul Russell <russelldad+instantrails at gmail.com> wrote:> > Hi, > > Instant Rails has been great for development using webrick. I''m trying to > move over to apache and running into all sorts of problems. I''ve narrowed it > down to a virgin install and can'' > t even get the demo apps to work. Can anyone help? > > > I just installed Instant Rails 1.2 on my windows 2k box and I''m seeing > some strange behavior when I navigate to http://www.mycookbook.com/. i.e. > Application error (Apache) > > > Heres what I did: > > > 1. Downloaded Instant Rails 1.2 > 2. unzipped it into D:/devtools/ > 3. Changed my hosts file to include 127.0.0.1 www.mycookbook.com > 4. started InstantRails.exe and confirmed apache and mysql started > 5. typed http://www.mycookbook.com into firefox > 6. I was redirected to http://www.mycookbook.com/recipes/list > 7. got a 500 internal server error consisting of the text in > rails_apps/mycookbook/public/500.html > > > Any ideas? > > Paul > > That''s exactly what I do... literally! I have a devtools folder also(except its on my E: drive). Anyway, it works for me. I wonder if there is something else installed on your box that is conflicting somehow. Do you have another machine you could try it on as a test? Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060408/f34a0d7a/attachment.htm
David Morton
2006-Apr-09 03:39 UTC
[Instantrails-users] Application error (Apache) on virgin install of 1.2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul Russell wrote:> I just installed Instant Rails 1.2 on my windows 2k box and I''m seeing > some strange behavior when I navigate to http://www.mycookbook.com/. > i.e. Application error (Apache)Did the SCGI process get started? - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEOIHoSIxC85HZHLMRAhVlAJ9yAXlJ6U5VUlKvUBeh27iigM96rQCfYmWh Nq6QkLbfHLTCrNdwYAJb9TQ=Pwna -----END PGP SIGNATURE-----
Paul Russell
2006-Apr-09 14:19 UTC
[Instantrails-users] Application error (Apache) on virgin install of 1.2
I just tried it on a new machine running windows XP and got the same result as on the windows 2k box. With the exception of windows (different versions), the only thing these machines have in common is that they are running McAffe Virus Scan 7.0.0 engine 4.4.00. I shut it off, but am still getting the same error. I don''t see any SCGI process in the task manager process list. Is there somewhere else I should be looking? Paul On 4/8/06, David Morton <mortonda at dgrmm.net> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paul Russell wrote: > > > I just installed Instant Rails 1.2 on my windows 2k box and I''m seeing > > some strange behavior when I navigate to http://www.mycookbook.com/. > > i.e. Application error (Apache) > > Did the SCGI process get started? > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEOIHoSIxC85HZHLMRAhVlAJ9yAXlJ6U5VUlKvUBeh27iigM96rQCfYmWh > Nq6QkLbfHLTCrNdwYAJb9TQ> =Pwna > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060409/faa6d7d2/attachment.htm
David Morton
2006-Apr-09 16:37 UTC
[Instantrails-users] Application error (Apache) on virgin install of 1.2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul Russell wrote:> I just tried it on a new machine running windows XP and got the same > result as on the windows 2k box. With the exception of windows > (different versions), the only thing these machines have in common is > that they are running McAffe Virus Scan 7.0.0 engine 4.4.00. I shut it > off, but am still getting the same error. > > I don''t see any SCGI process in the task manager process list. Is there > somewhere else I should be looking?Start InstantRails, click the I, choose: Rails Applications, Manage Rails Applications put a checkmark next to the app, and then click "Start SCGI Server" In addition, you have to be sure that the port matches on the SCGI server and in the VirtualHost config. - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEOThXSIxC85HZHLMRAlZwAJ9vL0rsWPsiYaajgu0kcYHeHYJpqgCdGm3H DxgcLXCNHB+FUQQsLIRGJBA=BofZ -----END PGP SIGNATURE-----
Paul Russell
2006-Apr-11 00:44 UTC
[Instantrails-users] Application error (Apache) on virgin install of 1.2
Thanks David! I had no idea about the need to start an SCGI server. Now it works perfectly! For the Instant Rails Developers: I can''t help but wonder why and SCGI server is needed in instant rails. Why not just pre-configure apache to use mod_ruby or embed the fast CGI code some other way? That''s not meant to be a rhetorical question either. I''m really curious. I noticed in the todo 1.0 code that it mentions making SCGI run as a background process. That would definitely be preferable to running in a dos window, but I''m still wondering why the need for the SCGI server as a separate process. Thanks again for the help. I''m back to working with rails! Paul On 4/9/06, David Morton <mortonda at dgrmm.net> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paul Russell wrote: > > I just tried it on a new machine running windows XP and got the same > > result as on the windows 2k box. With the exception of windows > > (different versions), the only thing these machines have in common is > > that they are running McAffe Virus Scan 7.0.0 engine 4.4.00. I shut it > > off, but am still getting the same error. > > > > I don''t see any SCGI process in the task manager process list. Is there > > somewhere else I should be looking? > > Start InstantRails, click the I, choose: Rails Applications, Manage Rails > Applications > > put a checkmark next to the app, and then click "Start SCGI Server" > > In addition, you have to be sure that the port matches on the SCGI server > and in > the VirtualHost config. > > > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEOThXSIxC85HZHLMRAlZwAJ9vL0rsWPsiYaajgu0kcYHeHYJpqgCdGm3H > DxgcLXCNHB+FUQQsLIRGJBA> =BofZ > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060410/ddf31293/attachment-0001.htm
David Morton
2006-Apr-11 01:11 UTC
[Instantrails-users] Application error (Apache) on virgin install of 1.2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul Russell wrote:> For the Instant Rails Developers: > I can''t help but wonder why and SCGI server is needed in instant rails. > Why not just pre-configure apache to use mod_ruby or embed the fast CGI > code some other way? That''s not meant to be a rhetorical question > either. I''m really curious.Well, the first reason, I think, was that getting SCGI to run on windows was far easier to accomplish than getting fcgi or mod_ruby installed. Second, it looks like SCGI may be on the way out in favor of mongrel... but that idea needs some more work. Finally, the question of why have a seperate process... this is a concept I wish more people would grasp. Some of this argument is more specifically for unix platforms, but it may have some application to windows... Let me get up on my soap box... If you have multiple sites running in a webserver using php, mod_perl, mod_ruby, fcgi... all of the sites run as the same user. This means that any of the applications must be able to read any of the sites configuration files, and thus, every application can access any other application. This is a huge security risk. Hosting companies work around this with monstrous scripts to create virtual servers with xen or some sort of chroot environment. Yuck. A better model is to let the web server have access to any public static content, but to proxy all requests back to an application server which runs as a unique system user and as such is the only application that has access to sensitive files. This is basic security 101, and the apache web server has ignored this its entire life. It would be possible in windows to do this too, although for simple development it may be overkill. I would highly recommend this model for any production system. Also, this system allows for greater horizontal scalability... the front end web server can proxy the request to any number of middle tier application servers. Then the webserver can do what it does best: serve static content, and the application server (mongrel or scgi) can do what it does best. ...ok, I''ll get off the soap box. Obviously, InstantRails is not there yet, but the use of SCGI was a sound idea, and I''m looking forward to seeing mongrel if it does better. It may make things easier too... for basic development, I recommend mongrel and no apache - it''s fast and easy. Then for a production environment, apache can be activated to be the front end and proxy the requests to mongrel. (I''m still trying to figure out how to configure that, though) - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEOwJGSIxC85HZHLMRAt0CAJ9bgoGHeSHGhWyOe/cGHK+S78ggeACgkomi HltA8WA9u+4ORPJohU4FENE=8uJ8 -----END PGP SIGNATURE-----