[Catalyst] Help Deploying on mod-fcgi Rather than mod_fastcgi
mhughes at law.du.edu
Sun Feb 13 22:46:02 GMT 2011
On 02/13/2011 02:29 PM, Tomas Doran wrote:
>> On Feb 13, 2011, at 10:38 AM, Mark Hughes wrote:
>>> I should have added that this is a sample of my error.log:
>>> [root at mayfly log]# cat error.log
>>> [Sun Feb 13 11:29:45 2011] [warn] (104)Connection reset by peer:
>>> mod_fcgid: read data from fastcgi server error.
>>> [Sun Feb 13 11:29:45 2011] [error] [client 192.168.123.102] Premature
>>> end of script headers: sumo_fastcgi.pl
> Your web server isn't succeeding in running sumo_fastcgi.pl - either:
> . You are missing some modules - did you actually install FCGI.pm etc?
> . Your web server user can't see it due to file permissions
> . If you installed Catalyst into a local:;lib, then your app won't get
> that environment when it's started...
> So to start with, what happens when you run sumo_fastcgi.pl yourself,
> and are you deps in local::lib?
Easy part first. There are no modules installed locally and no debug
output from sumo_fastcgi.pl that indicates that anything is missing.
I don't know whether this is relevant to dependencies, but if I
regenerate the scripts with catalyst.pl sumo --force, I can run
Makefile.PL without a problem. FCGI.pm is installed, and I believe it's
working since I could run the mod_fcgi sample script without a problem
(with the apache conf file in its original, boilerplate form.)
When I run:
/var/www/sumosrus.spirit/web/script/sumo_fastcgi.pl -e -l /tmp/sumo.socket
(The listen part, -l, is only there to make it run. It's taken from an
earlier try. I don't know what the command should actually be and at
this point, with fcgi, I don't know whether anything must be started.)
I get the standard debug info -- boxes with loaded actions, classes,
etc. No errors. Nothing unusual. The last output lines are these:
[info] sumo powered by Catalyst 5.80031
FastCGI: manager (pid 7003): initialized
FastCGI: server (pid 7004): initialized
FastCGI: manager (pid 7003): server (pid 7004) started
No errors are thrown to the log when sumo_fastcgi.pl is started from the
command line. The errors I copied, with the premature header etc., are
logged when there's a request.
Perhaps there's a permission problem but, in an effort to figure this
out, I have set everything at the site's "root," web, to 777 and
everything in the scripts directory to 777, too.
More information about the Catalyst