Ashley Pond V wrote:
You have to enable fastcgi in their panel, not in the .htaccess. Did you
do that?
Also, I learned the hard way. Always name your app script dispatch.fcgi.
They are much more aggressive about killing long running processes with
other names.
Executables should be in 755 or better. IIRC DreamHost will not let any
CGIs run (don't know about FCGIs) with anything more permissive than that.
-Ashley
well, more details are provided:
[spyro]$ perl dispatch.fcgi
[debug] Debug messages enabled
[debug] Loaded plugins:
.----------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader 0.19
|
| Catalyst::Plugin::Static::Simple 0.20
|
'----------------------------------------------------------------------------'
[debug] Loaded dispatcher "Catalyst::Dispatcher"
[debug] Loaded engine "Catalyst::Engine::FastCGI"
[debug] Found home "/home/faylandfoorum/foorumbbs.com/TestApp"
[debug] Loaded Config
"/home/faylandfoorum/foorumbbs.com/TestApp/testapp.yml"
[debug] Loaded components:
.-----------------------------------------------------------------+----------.
| Class | Type
|
+-----------------------------------------------------------------+----------+
| TestApp::Controller::Root |
instance |
'-----------------------------------------------------------------+----------'
[debug] Loaded Private actions:
.----------------------+--------------------------------------+--------------.
| Private | Class | Method
|
+----------------------+--------------------------------------+--------------+
| /default | TestApp::Controller::Root | default
|
| /end | TestApp::Controller::Root | end
|
'----------------------+--------------------------------------+--------------'
[info] TestApp powered by Catalyst 5.7011
STDIN is not a socket; specify a listen location at
/home/faylandfoorum/perl5/lib/perl5/Catalyst/Engine/FastCGI.pm line 91.
[spyro]$ vim dispatch.fcgi
#!/usr/bin/perl -w
BEGIN { $ENV{CATALYST_ENGINE} = 'FastCGI' }
use strict;
use warnings;
use Getopt::Long;
use lib '/home/faylandfoorum/foorumbbs.com/TestApp/lib';
use lib '/home/faylandfoorum/perl5/lib/perl5';
use TestApp;
$SIG{USR1} = 'INGORE';
$SIG{TERM} = 'INGORE';
$SIG{PIPE}= 'IGNORE'; # continue processing on client disconnect (i think)
$SIG{CHLD}= 'IGNORE'; # prevent children from becoming zombies
my $help = 0;
my ( $listen, $nproc, $pidfile, $manager, $detach, $keep_stderr );
GetOptions(
'help|?' => \$help,
'listen|l=s' => \$listen,
'nproc|n=i' => \$nproc,
'pidfile|p=s' => \$pidfile,
'manager|M=s' => \$manager,
'daemon|d' => \$detach,
'keeperr|e' => \$keep_stderr,
);
TestApp->run(
$listen,
{ nproc => $nproc,
pidfile => $pidfile,
manager => $manager,
detach => $detach,
keep_stderr => $keep_stderr,
}
);
1;
Thanks.
On Dec 13, 2007, at 10:25 PM, Fayland Lam wrote:
I run catalyst.pl TestApp
then vim .htaccess
AddHandler fastcgi-script .fcgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/?TestApp/script/testapp_fastcgi.fcgi
RewriteRule ^(.*)$ TestApp/script/testapp_fastcgi.fcgi/$1 [PT,L]
~
I changed filename to fcgi and chmod 0777 it.
then I get
[Thu Dec 13 22:24:00 2007] [error] [client 123.14.76.87] FastCGI: comm
with (dynamic) server
"/home/faylandfoorum/foorumbbs.com/TestApp/script/testapp_fastcgi.fcgi"
aborted: (first read) idle timeout (60 sec)
[Thu Dec 13 22:24:00 2007] [error] [client 123.14.76.87] FastCGI:
incomplete headers (0 bytes) received from server
"/home/faylandfoorum/foorumbbs.com/TestApp/script/testapp_fastcgi.fcgi"
any tips? anyone use dreamhost?
--
Fayland Lam // http://www.fayland.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/
--
Fayland Lam // http://www.fayland.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/