varanasi has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks:
I need help deploying a catalyst app on a shared host. I have tried the methods written up at:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deploying Catalyst App On Shared Server
by beech (Parson) on Aug 27, 2017 at 19:48 UTC | |
by varanasi (Scribe) on Aug 28, 2017 at 02:17 UTC | |
by beech (Parson) on Aug 28, 2017 at 07:15 UTC | |
by varanasi (Scribe) on Aug 28, 2017 at 11:55 UTC | |
|
Re: Deploying Catalyst App On Shared Server
by zakame (Pilgrim) on Aug 28, 2017 at 04:46 UTC | |
by varanasi (Scribe) on Aug 28, 2017 at 10:39 UTC | |
|
Re: Deploying Catalyst App On Shared Server
by Anonymous Monk on Aug 28, 2017 at 02:21 UTC | |
by varanasi (Scribe) on Aug 28, 2017 at 11:50 UTC |