[Catalyst] problem with Apache and FastCGI
fs5 at sanger.ac.uk
Mon May 28 11:13:28 GMT 2012
Turn sout the problem really was that the Apache user didn't have
permission to write the PID file into /var/run/ so it couldn't start the
fcgi process. That's solved now.
On 28/05/12 01:55, Robert Wohlfarth wrote:
> On Sun, May 27, 2012 at 6:36 PM, Luis Muñoz <luisemunoz at gmail.com
> <mailto:luisemunoz at gmail.com>> wrote:
> Write a small cgi script that dumps the environment and take a look.
> You might be surprised
> I'll second that. There is a really good chance that Apache is not
> giving your script the same environment as the shell. And that is why
> can't find Perl.
> Here's a snippet about environment variables from the Apache
> documentation on CGI:
> Path information and environment
> When you run a program from your command line, you have certain
> information that is passed to the shell without you thinking about it.
> For example, you have a |PATH|, which tells the shell where it can look
> for files that you reference.
> When a program runs through the web server as a CGI program, it may not
> have the same |PATH|. Any programs that you invoke in your CGI program
> (like |sendmail|, for example) will need to be specified by a full path,
> so that the shell can find them when it attempts to execute your CGI
> A common manifestation of this is the path to the script interpreter
> (often |perl|) indicated in the first line of your CGI program, which
> will look something like:
> Make sure that this is in fact the path to the interpreter.
> In addition, if your CGI program depends on other environment variables
> <http://httpd.apache.org/docs/2.0/howto/cgi.html#env>, you will need to
> assure that those variables are passed by Apache.
> Robert Wohlfarth
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://email@example.com/
> Dev site: http://dev.catalyst.perl.org/
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
More information about the Catalyst