Application Error

Hi Folks,

When I have tried this cookbook example from onLamp tutorial,
I got some error like this,

output of development.log is

Permission denied -
/var/www/html/cookbook/public/…/config/…/tmp/sessions//rub
y_sess.d51d8997edf6be91

only the first line of output is this,
output truncated.

what it will be ?
How to solve this ?

In my browser, I am getting Applicaiton error, from 500.html file.

More over, when i have tried to call some testing file like
public/test.fcgi
I am getting the following error

output from development.log

Recognition failed for “/test.fcgi”
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1
/lib/action_controller/routin
g.rb:488:in recognition_failed' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1 /lib/action_controller/routin g.rb:478:inrecognize!’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:inproces
s_request’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:54:in
process !' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:ineach_cgi’
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in
each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:inprocess
!’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in
`process
!’

What should I do to solve this problem. Please help me in this regard.

On Fri, 2006-06-16 at 08:45 +0530, Nahalingam N. Kanakavel wrote:

public/test.fcgi
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
!’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in `process
!’

What should I do to solve this problem. Please help me in this regard.


you are getting permissions errors because whatever user you are running
as doesn’t have write permissions to the directories to write temporary
files such as session.

also, what are you attempting to accomplish with test.fcgi?

most people would start out not using apache but rather the built-in web
server called webrick where you can get started quickly and not have to
deal with all of the details of getting apache/fcgi going.

Craig

Hi,

Thanks for your reply.

See, I am working as a super user only. Then, why this permission error
is happening, I don’t know, also, addition to that, the directories
called
tmp and tmp/sessions/ are having 755 permission. Then, what could be the
problem.

What I am doing with this test.fcgi is that, i am trying to call that
file,
directly
to avoid routing and all other stuffs, which is happening behind the
request

to the server. If there is a file, which is present in public/
directory, it
should
return that file, Isn’t it. But here, it throw an error, unrecognized,
like
that.
What could be the problem.

Please help me with some suggestions.


I accepted that, we have to go step by step, to reach the target.
Even through I can walk so slow in this path, I can reach the goal
so soon, instead of wasting the time to learn apache configuration
seperately, after some time. Here i can learn both the things parallely.