[Catalyst] Canot get application working on IIS7 via FastCGI

Craig Chant craig at homeloanpartnership.com
Thu Oct 18 10:48:19 GMT 2012


Hi David,

OIC, sorry I thought you were talking about some logs to do with Catalyst other than the standard inetpub W3SVCxxx server logs.

Here is what IIS logs show when I access the application.. (IP's have been obfuscated)

#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2012-10-18 09:44:38
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2012-10-18 09:44:38 xxx.xxx.xxx.xxx GET /static/images/catalyst_logo.png - 80 - xxx.xxx.xxx.xxx Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) 200 0 0 125
2012-10-18 09:44:38 xxx.xxx.xxx.xxx GET / - 80 - xxx.xxx.xxx.xxx Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) 200 0 0 2937
2012-10-18 09:44:38 xxx.xx.xxx.xxx GET /favicon.ico - 80 - xxx.xxx.xxx.xxx Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) 200 0 0 46
2012-10-18 09:45:04 xxx.xxx.xxx.xxx GET /librarydocs - 80 - xxx.xxx.xxx.xxx Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) 200 0 0 46

The first 3 GET entries are when I visit the root application URL (which displays the Catalyst welcome page) the 4th is the entry when navigating to the path for the LibraryDocs.pm controller.

As for the Data::Dumper information you requested, you will need to give me more guidance because I can't get it to output anything?

Firstly I cannot find the context variable '$c' , there is a '$ctx' , I assume this is what was meant?

I added

dump($env);
dump($ctx->request->uri);
dump($ctx->request->base);

After each assignment but nothing was displayed in the browser , nor were there any entries in the IIS logs.

I have tried 'print' , in front of those commands, nothing is outputted and nothing appears in the logs.

I've also tried 'die' but all I then get in the browser is a 400 error 'Bad Request'.

I've even outputted a header first with :- print "Content-type: text/html\n\n";

Before trying to output the variables, but again all I get is a 'Bad Request' error in my browser.

In fact I have now removed all added code by myself, the devel server fires up and I can use localhost:3000 to navigate to my application and it works fine.

However, using IE to navigate to the production IIS7 URL, all I get now is 400 Bad Request, so now saying 'nothing works' is an accurate statement?

You really need to give me more guidance if I am to provide any of the information you request.

Kind regards,

Craig.

-----Original Message-----
From: David Schmidt [mailto:davewood at gmx.at]
Sent: 18 October 2012 07:44
To: The elegant MVC web framework
Subject: Re: [Catalyst] Canot get application working on IIS7 via FastCGI

> Sorry again for not providing enough information, I will try to give
> you what you need but I will need a little help doing that also, can
> you advise where the logs for the app when running over IIS7-> FastCGI
> are? Is there a file somewhere that gets written to each time the fastcgi.pl script gets executed with this information in it?

I am pretty sure that you have to look where your webserver logs to.
With Apache it is possible to configure the log and errorlog location.
I suppose the same is possible for IIS7
Google it.

> Also can you guide me to where this change needs to be made
> 'Catalyst::Engine::prepare_path method ' for Data::Dumper:Dumper,
> where is the file that needs editing located? , Also is there a
> Catalyst method to spit out the data via Data::Dumper already integrated into the framework, or do I need to import it myself?

Look for the file Catalyst/Engine.pm. then search for "prepare_path"

_______________________________________________
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
This Email and any attachments contain confidential information and is intended solely for the individual to whom it is addressed. If this Email has been misdirected, please notify the author as soon as possible. If you are not the intended recipient you must not disclose, distribute, copy, print or rely on any of the information contained, and all copies must be deleted immediately. Whilst we take reasonable steps to try to identify any software viruses, any attachments to this e-mail may nevertheless contain viruses, which our anti-virus software has failed to identify. You should therefore carry out your own anti-virus checks before opening any documents. HomeLoan Partnership will not accept any liability for damage caused by computer viruses emanating from any attachment or other document supplied with this e-mail. HomeLoan Partnership reserves the right to monitor and archive all e-mail communications through its network. No representative or employee of HomeLoan Partnership has the authority to enter into any contract on behalf of HomeLoan Partnership by email. HomeLoan Partnership is a trading name of H L Partnership Limited, registered in England and Wales with Registration Number 5011722. Registered office: 26-34 Old Street, London, EC1V 9QQ. H L Partnership Limited is authorised and regulated by the Financial Services Authority.


More information about the Catalyst mailing list