[Catalyst] Canot get application working on IIS7 via FastCGI

Hugh Barnard hugh.barnard at gmail.com
Thu Oct 18 13:26:23 GMT 2012


Hi

I'm not an IIS specialist but this answer, especially the 'middle' one
about turning on, -may- be helpful:
http://stackoverflow.com/questions/6426375/where-do-i-find-the-iis7-logs

I'd expect the equivalent of STDERR to be the error log file, if it's
switched on. Sorry if this uses more time but worth a shot.

Best regards Hugh Barnard


On 18 October 2012 14:15, Craig Chant <craig at homeloanpartnership.com> 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 the end I rolled my own 'output to file' handler it was far quicker and
> easier!
>
> This is output for the standard URL with no path (root)
>
> ******* $env
>
> $VAR1 =3D {
>           'psgi.multiprocess' =3D> 1,
>           'SCRIPT_NAME' =3D> '',
>           'PATH_INFO' =3D> '/',
>           'HTTP_ACCEPT' =3D> 'text/html, application/xhtml+xml, */*',
>           'REQUEST_METHOD' =3D> 'GET',
>           'psgi.multithread' =3D> '',
>           'SCRIPT_FILENAME' =3D> 'C:\\Websites\\ members\\root',
>           'INSTANCE_META_PATH' =3D> '/LM/W3SVC/49',
>           'HTTPS_SERVER_ISSUER' =3D> '',
>           'APP_POOL_CONFIG' =3D> 'C:\\inetpub\\temp\\apppools\\ Members\\
> Members.config',
>           'SERVER_SOFTWARE' =3D> 'Microsoft-IIS/7.5',
>           'AUTH_PASSWORD' =3D> '',
>           'CERT_SERIALNUMBER' =3D> '',
>           'HTTPS_SECRETKEYSIZE' =3D> '',
>           'AUTH_TYPE' =3D> '',
>           'HTTP_USER_AGENT' =3D> 'Mozilla/5.0 (compatible; MSIE 9.0; Wind=
ows
> NT 6.1; WOW64; Trident/5.0)',
>           'QUERY_STRING' =3D> '',
>           'REMOTE_PORT' =3D> '59984',
>           'CERT_COOKIE' =3D> '',
>           'URL' =3D> '/',
>           'HTTP_ACCEPT_LANGUAGE' =3D> 'en-GB',
>           'FCGI_ROLE' =3D> 'RESPONDER',
>           'HTTPS_KEYSIZE' =3D> '',
>           'CONTENT_TYPE' =3D> '',
>           'CERT_SUBJECT' =3D> '',
>           'LOCAL_ADDR' =3D> 'xxx.xxx.xxx.xxx',
>           'psgi.streaming' =3D> 1,
>           'IIS_UrlRewriteModule' =3D> '7.1.0871.0',
>           'GATEWAY_INTERFACE' =3D> 'CGI/1.1',
>           'psgi.version' =3D> [
>                               1,
>                               1
>                             ],
>           'HTTPS' =3D> 'off',
>           'DOCUMENT_ROOT' =3D> 'C:\\Websites\\ members\\root',
>           'REMOTE_HOST' =3D> 'xxx.xxx.xxx.xxx',
>           'psgi.run_once' =3D> '',
>           'APPL_PHYSICAL_PATH' =3D> 'C:\\Websites\\ members\\root\\',
>           'PATH_TRANSLATED' =3D> 'C:\\Websites\\ members\\root',
>           'CERT_ISSUER' =3D> '',
>           'SERVER_NAME' =3D> 'mydomain.com',
>           'HTTP_ACCEPT_ENCODING' =3D> 'gzip, deflate',
>           'HTTP_CONNECTION' =3D> 'Keep-Alive',
>           'CONTENT_LENGTH' =3D> '0',
>           'INSTANCE_ID' =3D> '49',
>           'AUTH_USER' =3D> '',
>           'APPL_MD_PATH' =3D> '/LM/W3SVC/49/ROOT',
>           'CERT_FLAGS' =3D> '',
>           'LOGON_USER' =3D> '',
>           'REMOTE_USER' =3D> '',
>           'SERVER_PORT_SECURE' =3D> '0',
>           'INSTANCE_NAME' =3D> 'MEMBERS',
>           'SERVER_PORT' =3D> '80',
>           'REMOTE_ADDR' =3D> 'xxx.xxx.xxx.xxx',
>           'SERVER_PROTOCOL' =3D> 'HTTP/1.1',
>           'psgi.errors' =3D> bless( \*Symbol::GEN3, 'IO::Handle' ),
>           'REQUEST_URI' =3D> '/',
>           'psgi.nonblocking' =3D> '',
>           'HTTPS_SERVER_SUBJECT' =3D> '',
>           'APP_POOL_ID' =3D> 'Members',
>           'psgi.url_scheme' =3D> 'http',
>           'psgix.harakiri' =3D> '',
>           'HTTP_HOST' =3D> 'mydomain.com',
>           'psgi.input' =3D> bless( \*Symbol::GEN1, 'IO::Handle' )
>         };
>
> *****->base
>
> $VAR1 =3D bless( do{\(my $o =3D 'http://mydomain.com/')}, 'URI::http' );
>
> *****->uri
>
> $VAR1 =3D bless( do{\(my $o =3D 'http:// mydomain.com/')<http://mydomain.=
com/%27%29>},
> 'URI::http' );
>
>
> Here is the output for the /librarydocs path.
>
>
> ******* $env
>
> $VAR1 =3D {
>           'psgi.multiprocess' =3D> 1,
>           'SCRIPT_NAME' =3D> '',
>           'PATH_INFO' =3D> '/',
>           'HTTP_ACCEPT' =3D> 'text/html, application/xhtml+xml, */*',
>           'REQUEST_METHOD' =3D> 'GET',
>           'psgi.multithread' =3D> '',
>           'SCRIPT_FILENAME' =3D> 'C:\\Websites\\members\\root\\librarydoc=
s',
>           'INSTANCE_META_PATH' =3D> '/LM/W3SVC/49',
>           'HTTPS_SERVER_ISSUER' =3D> '',
>           'APP_POOL_CONFIG' =3D>
> 'C:\\inetpub\\temp\\apppools\\Members\\Members.config',
>           'SERVER_SOFTWARE' =3D> 'Microsoft-IIS/7.5',
>           'AUTH_PASSWORD' =3D> '',
>           'CERT_SERIALNUMBER' =3D> '',
>           'HTTPS_SECRETKEYSIZE' =3D> '',
>           'AUTH_TYPE' =3D> '',
>           'HTTP_USER_AGENT' =3D> 'Mozilla/5.0 (compatible; MSIE 9.0; Wind=
ows
> NT 6.1; WOW64; Trident/5.0)',
>           'QUERY_STRING' =3D> '',
>           'REMOTE_PORT' =3D> '60106',
>           'CERT_COOKIE' =3D> '',
>           'URL' =3D> '/librarydocs',
>           'HTTP_ACCEPT_LANGUAGE' =3D> 'en-GB',
>           'FCGI_ROLE' =3D> 'RESPONDER',
>           'HTTPS_KEYSIZE' =3D> '',
>           'CONTENT_TYPE' =3D> '',
>           'CERT_SUBJECT' =3D> '',
>           'LOCAL_ADDR' =3D> 'xxx.xxx.xxx.xxx',
>           'psgi.streaming' =3D> 1,
>           'IIS_UrlRewriteModule' =3D> '7.1.0871.0',
>           'GATEWAY_INTERFACE' =3D> 'CGI/1.1',
>           'psgi.version' =3D> [
>                               1,
>                               1
>                             ],
>           'HTTPS' =3D> 'off',
>           'DOCUMENT_ROOT' =3D> 'C:\\Websites\\members\\root',
>           'REMOTE_HOST' =3D> 'xxx.xxx.xxx.xxx',
>           'psgi.run_once' =3D> '',
>           'APPL_PHYSICAL_PATH' =3D> 'C:\\Websites\\members\\root\\',
>           'PATH_TRANSLATED' =3D> 'C:\\Websites\\members\\root\\librarydoc=
s',
>           'CERT_ISSUER' =3D> '',
>           'SERVER_NAME' =3D> 'mydomain.com',
>           'HTTP_ACCEPT_ENCODING' =3D> 'gzip, deflate',
>           'HTTP_CONNECTION' =3D> 'Keep-Alive',
>           'INSTANCE_ID' =3D> '49',
>           'CONTENT_LENGTH' =3D> '0',
>           'AUTH_USER' =3D> '',
>           'APPL_MD_PATH' =3D> '/LM/W3SVC/49/ROOT',
>           'CERT_FLAGS' =3D> '',
>           'LOGON_USER' =3D> '',
>           'REMOTE_USER' =3D> '',
>           'SERVER_PORT_SECURE' =3D> '0',
>           'INSTANCE_NAME' =3D> 'MEMBERS',
>           'SERVER_PORT' =3D> '80',
>           'REMOTE_ADDR' =3D> 'xxx.xxx.xxx.xxx',
>           'SERVER_PROTOCOL' =3D> 'HTTP/1.1',
>           'psgi.errors' =3D> bless( \*Symbol::GEN3, 'IO::Handle' ),
>           'REQUEST_URI' =3D> '/librarydocs',
>           'psgi.nonblocking' =3D> '',
>           'HTTPS_SERVER_SUBJECT' =3D> '',
>           'APP_POOL_ID' =3D> 'Members',
>           'psgi.url_scheme' =3D> 'http',
>           'psgix.harakiri' =3D> '',
>           'HTTP_HOST' =3D> 'mydomain.com',
>           'psgi.input' =3D> bless( \*Symbol::GEN1, 'IO::Handle' )
>         };
>
> *****->base
>
> $VAR1 =3D bless( do{\(my $o =3D 'http://mydomain.com/')}, 'URI::http' );
>
> *****->uri
>
> $VAR1 =3D bless( do{\(my $o =3D 'http:// mydomain.com/')<http://mydomain.=
com/%27%29>},
> 'URI::http' );
>
>
> Hopefully you now have the information you need to advice on the problem.
>
> Let me know if you need anything else.
>
> Kind regards,
>
> Craig.
>
> -----Original Message-----
> From: David Schmidt [mailto:davewood at gmx.at]
> Sent: 18 October 2012 12:34
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Canot get application working on IIS7 via FastCGI
>
> > 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);
>
> I am just guessing here but what I think you ought to do is
>
> 1)
> enable debug output of your application by adding the -Debug flag to your
> use Catalyst statement
>
> 2)
> use Data::Dumper;
> $ctx->log->debug(Dumper($ctx->request->uri))
> ...
>
> _______________________________________________
> 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 a=
ny
> 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.
>
> _______________________________________________
> 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/
>
>


-- =

http://www.hughbarnard.org
http://www.twitter.com/hughbarnard
http://www.big-wave-heuristics.com/
<http://www.hackney-environment-network.org.uk/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20121018/b8042=
a1f/attachment.htm


More information about the Catalyst mailing list