in reply to Deploying Catalyst App On Shared Server

Look carefully at reply #2 to your third link – for HostGator. It is not enough to simply use a rewrite-rule: your script must be a HANDLER that is invoked by Apache (FastCGI), that runs persistently, and that gets requests handed to it. What you see right now is an attempt to invoke it as though it were a CGI script: of course it cannot find a FastCGI environment to connect to. I do not think that you can accomplish your aim with htaccess files alone. The reply I mentioned refers to a VirtualHost entry.
  • Comment on Re: Deploying Catalyst App On Shared Server

Replies are listed 'Best First'.
Re^2: Deploying Catalyst App On Shared Server
by varanasi (Scribe) on Aug 28, 2017 at 11:50 UTC

    Thank you.

    I understand what you are saying about the script being invoked as a CGI script. I also understand that the AddHandler in the .htaccess file may not be enough to change that. (I tried adding AddHandler fastcgi-script .pl to the .htaccess file per beech's suggestion. That results in a 404 error -- same as with AddHandler fcgid-script .pl. EDIT: Same result using cpanel to set either of those as a user-specific handler.)

    I'm afraid I don't see a mention of a VirtualHost entry in HostGator reply #2, but I think I understand in very general terms what one is. If I'm going to change the server itself, even by changing the vhost file for my domain, I'm either going to have to change it myself through cpanel -- and I don't see a way to do that -- or tell them exactly what I want them to do. I'll need to research virtual host files I guess, unless someone here knows . . . . Please let someone here know!