[Dancer-users] Dancer deployment still confusing, difficult and a non-starter

P Kishor punk.kish at gmail.com
Mon Aug 2 17:17:50 CEST 2010

On Mon, Aug 2, 2010 at 4:53 AM, sukria <sukria at sukria.net> wrote:
>> Now, on to deployment. The docs at Dancer::Deployment say that deploying
>>     http://localhost/dance/dispatch.cgi
>>     500 Internal Server Error - Wrong
>>     http://localhost/dance/dispatch.cgi/
>>     200 OK - Right
>> The above give me a generic Apache 404 error
>>     script not found or unable to stat:
>>     /Users/punkish/Sites/dance/dispatch.cgi
>>     File does not exist: /Users/punkish/Sites/dance/missing.html
>> Actually, both of the above are wrong. It should really be
> Well, this is very difficult for me to help you without seing your Apache
> VirtualHost configuration. You may have done lots of things here, so
> please, paste your configuration here.

Please note, the above is *not* VirtualHost. The above is plain,
vanilla cgi. I am following the exact, word-by-word instructions at
which say that I should go to "http://localhost/myapp/dispatch.cgi/"

When I go to http://localhost/dance/dispatch.cgi/ I get the following
error in my Apache logs

    script not found or unable to stat: /Users/punkish/Sites/dance/dispatch.cgi

Which makes sense, since dispatch.cgi is *not* at
/Users/punkish/Sites/dance/. It is in fact inside
/Users/punkish/Sites/dance/public which is where /usr/local/bin/dancer
put it. So, when I go to http://localhost/dance/public/dispatch.cgi/ I
get the following error in Apache logs

    Error while loading /Users/punkish/Sites/dance/app.psgi: unable to
load application dance : Can't locate dance.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.12.1/darwin-2level /usr/local/lib/perl5/5.12.1
/usr/local/lib/perl5/site_perl .) at (eval 60) line 2.

Which also makes sense because dance.pm is in
/Users/punkish/Sites/dance/lib. So, I am stuck both ways.

Once again, note that this is plain vanilla cgi. I haven't even
ventured to VirtualHosts.

Now, here is my Apache configuration

<Directory "/Users/punkish/Sites/dance">
    Options Indexes ExecCGI FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all

So, what am I doing wrong?

Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
Assertions are politics; backing up assertions with evidence is science

More information about the Dancer-users mailing list