also just to make sure install the gem...
gem install fcgi
Main Topics
Browse All TopicsPlease Note I already had apache2 and MySQL installed before installing ruby and RoR with the instructions listed in the two links below.
I installed ruby 1.8.7 with apt-get and gems I installed 1.3.2 from source and that all appears to work fine. I also updated gems before installing RoR.
This is my first attempt at installing and creating a new application using RoR with Apache and MySQL on a local LinuxMint install. So being MS guy all this is new to me.
I followed these instructions here:
http://howtoforge.com/ruby
in combo with these
http://forums.linuxmint.co
I see the following error when clicking on the default RoR page
About your applications environment link:
The Error:
Not Found
The requested URL /dispatch.fcgi was not found on this server.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok I tried running gem install fcgi but got a build error:
Building native extensions. This could take a while...
ERROR: Error installing fcgi:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8
checking for fcgiapp.h... no
checking for fastcgi/fcgiapp.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${op
--with-opt-lib
--without-opt-lib=${opt-di
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--with-fcgi-dir
--without-fcgi-dir
--with-fcgi-include
--without-fcgi-include=${f
--with-fcgi-lib
--without-fcgi-lib=${fcgi-
Ge
Results logged to /usr/lib/ruby/gems/1.8/gem
Make was already installed, I installed automake but I still get the same error with gem install fcgi.
Unreal how difficult this is, a week and still not coding I would have IIS, SQL Server and Visual Studio installed and writing code by now with updates completed to all 3.
Here is the mkvf.log
have_header: checking for fcgiapp.h... -------------------- no
"cc -E -I. -I/usr/lib/ruby/1.8/i486-l
conftest.c:1:21
checked program was:
/* begin */
1: #include <fcgiapp.h>
/* end */
--------------------
have
"cc -E -I. -I/usr/lib/ruby/1.8/i486-l
conftest.c:1:29
checked program was:
/* begin */
1: #include <fastcgi/fcgiapp.h>
/* end */
--------------------
Crap, I didn't wait long enough I see this:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g Server at ruby.blaze.local Port 80
Apache Error.log
Fri Sep 25 06:49:00 2009] [emerg] mod_fcgid: server is restarted, 10723 must exit
[Fri Sep 25 06:49:45 2009] [warn] mod_fcgid: can't apply process slot for /var/rails/myrailsapp/publ
[Fri
[Fri
[Fri
[Fri
[Fri
[Fri Sep 25 07:11:55 2009] [error] [client 127.0.0.1] Premature end of script headers: dispatch.fcgi, referer: http://ruby.blaze.local/
[F
[Fri
[Fri
[Fri
I am trying some of these leads but I am not having much success:
http://www.ruby-forum.com/
http://www
b
Still getting Errors:
Rails Error: Unable to access log file. Please ensure that /var/rails/myrailsapp/log/
Couldn't write to "/var/rails/myrailsapp/log
Errno::EACCES: Permission denied - /var/rails/myrailsapp/log/
/!\
Status: 500 Internal Server Error
Unknown database 'myrailsapp_development'
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/1.8/monitor.
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/usr/lib/ruby/gems/1.8/gem
/var/rails/myrailsapp/publ
I did run the chmod 0666 on the development.log
chmod 0666 /var/rails/myrailsapp/log/
I changed my database.yml before all of this to reflect this.
I wonder if it can't find the socket?
development:
adapter: mysql
encoding: utf8
reconnect: false
database: myrailsapp_development
pool: 5
username: root
password: myPassowrdIsHere
socket: /var/run/mysqld/mysqld.soc
ok I created a test db and than clcked that link and it works now!
Thanks!
I am going to create another test rails app and see if the dispatch.fcgi file is automatically created because it should get created automatically once everything is installed correctly right?
I checked for that file in myrailsapp and I never had it I had to use yours and create one and modify the bash command the first line in the file., plus all the other stuff we did.
You need to run "rake db:migrate" after you have created and setup some database migrations and you have a database there.
I don't think there is a rake command to actually create the db for you.
I have a feeling that it isn't created automatically anymore, that file I sent you want from a project that is a about a years old and has moved through all the different rails versions.
Might be something worth looking into, to find out what it does and why its needed ( I don't have it in a fresh project I just created)
Andrew
Business Accounts
Answer for Membership
by: doadesPosted on 2009-09-25 at 01:07:24ID: 25420864
That file used to be stored under the public directory in the rails project folder...
I copied mine and pasted it below, if you want to copy it into dispatch.fcgi
Andrew
Select allOpen in new window