[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 500 Internal Server Error...



--On 01 February 2005 16:42 +0530 Mayuresh Kathe <mayuresh.kathe@gmail.com> 
wrote:

> There is another binary I am trying to run as a CGI, even that is
> giving the same error.
> Could this be because the binary is dependent on libraries which are
> outside the jail?

It could be, or it could be looking for something else that isn't a library 
and failing without giving a useful error message, or it could be a 
different problem entirely.

Think about how the web server is executing the program - there's no magic 
involved: it's setting some environment variables and executing it. You can 
replicate parts of this manually quite easily, which might get you useful 
information.

Suggested reading list: ldd(1), chroot(8), any logs produced by the 
programs involved (e.g. your CGI program and the web server).