Dear Monks:

I need help deploying a catalyst app on a shared host. I have tried the methods written up at:

  1. Catalyst::Manual::Deployment::SharedHosting
  2. http://blog.johngoulah.com/2009/08/deploying-catalyst-shared-hosting/
  3. http://forums.hostgator.com/catalyst-framework-hostgator-shared-hosting-t68761.html

The host runs apache and has Mod FastCGI installed. (EDIT: It's actually mod_fcgid.) Apache has ExecCGI and FollowSymLinks enabled. It does not have modRuid enabled.

The closest I have gotten is following the instructions in the first link -- the Catalyst Manual. (I had to change ln -s ~/lib/MyApp/script script to ln -s ~/MyApp/script script). As suggested, I put a .htaccess file into public_html. Here's what it looks like, ~/public_html/.htaccess:

RewriteEngine On RewriteCond %{REQUEST_URI} !^/?script/myapp_fastcgi.pl RewriteRule ^(.*)$ script/myapp_fastcgi.pl/$1 [PT,L]

With this config, when I go to mydomain.com, I get a server error. The log shows that myapp_fastcgi.pl starts, loads the app, but breaks with this message:

AH01215: STDIN is not a socket: specify a listen location at /usr/loca +l/share/perl5/Plack/Handler/FCGI.pm line 57.: /home/mydomain/public_h +tml/script/myapp_fastcgi.pl

The only lead I have is that adding AddHandler fcgid-script .pl to ~/public_html/.htaccess results in a not found error, The requested URL /script/myapp_fastcgi.pl/ was not found on this server. I don't know whether that's actually a lead or not. The app loads fine on the server; there are no missing modules, etc.

I'm completely stumped. I have asked on #catalyst several times but without success. I would very, very grateful for any help.


In reply to Deploying Catalyst App On Shared Server by varanasi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.