[Catalyst] Canot get application working on IIS7 via FastCGI
craig at homeloanpartnership.com
Thu Oct 18 14:17:30 GMT 2012
Thanks Lyle / Hugh,
I've checked the following folders:-
Plus :- Turn Windows features on or off
But there isn't any options for :- Internet Information Services\World Wide Web Services\Health and Diagnostics\HTTP Logging
Though It seems logging is on as there are files in HTTPERR folder, but none containing any of the information wanted regarding :- debug or print STDERR
Like you suggested Lyle, I created the files myself for output!
Usually my perl apps run using :-
use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;
So I get errors outputted to the browser. Though I would point out that whatever Active State did to the latest perl release for IIS, 'die' no longer outputs a header first so a lot of my scripts now give '500 Internal Server Error' and I'm having to fix them as I go, which is one of the reasons I want to refactor the app to use Catalyst, apart from gaining MVC cuteness and a better architecture I was hoping for better error handling being sent to the browser which it seems 'die' coupled with ' StackTrace' gives, so I'm moving in the right direction. :-)
Anyways, I got the required info in the end, so let's hope someone can advise on a solution as to why the path mapping isn't working?
From: Lyle [mailto:webmaster at cosmicperl.com]
Sent: 18 October 2012 14:54
To: catalyst at lists.scsys.co.uk
Subject: Re: [Catalyst] Canot get application working on IIS7 via FastCGI
On 18/10/2012 14:15, Craig Chant wrote:
> Hi David / Adam,
> In the end I gave up with any of the so far provided suggestion, I've wasted hours hunting for logs that just don't seem to exist.
> I'm not sure where you believe any of this output is going, but I've searched every IIS log, windows event viewer, searched any file ending in .log and even searched the entire server for any file modified with today's date. I cannot find any file with the data you seem to think should exist. Where do you believe STDERR goes on Windows IIS7?
In my experience, IIS will push STDERR to STDOUT which causes a number of problems. The best thing it to open STDERR to a file of your choice asap:
open( STDERR, ">>/path/to/log/file.log" );
List: Catalyst at lists.scsys.co.uk
Searchable archive: http://email@example.com/
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