|
Home > Archive > IIS Server > January 2004 > IIS 6.0 and ActivePerl/PHP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IIS 6.0 and ActivePerl/PHP
|
|
|
| My web server is currently serving asp/asp.net pages and static content
properly. I've installed ActivePerl ver. 5.8.2.808 and php 4.3.4 using the
provided installers.
After installation IIS will not serve .pl or .php files, and only returns a
"HTTP Error 403 - Forbidden: Access is denied. Internet Information Services
(IIS)" if I try to access them....it still servers static or asp based
pages....
This is what I have looked at so far:
- I've made two testscripts and running these command-line verifies that the
configuration of PERL and php is correct.
- The request is not stopped by URLScan (no entry in the logs)
- The site had (what seemes to me) the correct appmappings
(C:\perl\bin\perl.exe & c:\php\php.exe)
- The "Web Service Extensions" has an entry called "Perl CGI Extensions"
mapped to (c:\perl\bin\perl.exe "%s" %s) and has status "Allowed" and "php"
mapped to (c:\php\php.exe) and has status set to "Allowed" as well. But if
"All unknown CGI extensions" is marked as "prohibited" I get a 404 error
instead of the error mentioned above. I should probably not have to enable
both to have this work....or?
- The request does not seem to get as far as to the actual filesystem (no
errors reported by NTFilemon - www.sysinternals.com)
I desperately need some advice on what might be wrong here, I'm running out
of ideas on what causes this..... - could anyone please help?
Regards,
Roger
| |
| Jeff Cochran 2004-01-24, 1:36 am |
| On Tue, 6 Jan 2004 16:28:46 +0100, "Roger" <roglan19@hotmail.com>
wrote:
quote:
>My web server is currently serving asp/asp.net pages and static content
>properly. I've installed ActivePerl ver. 5.8.2.808 and php 4.3.4 using the
>provided installers.
>
>After installation IIS will not serve .pl or .php files, and only returns a
>"HTTP Error 403 - Forbidden: Access is denied. Internet Information Services
>(IIS)" if I try to access them....it still servers static or asp based
>pages....
>
>This is what I have looked at so far:
>
>- I've made two testscripts and running these command-line verifies that the
>configuration of PERL and php is correct.
>- The request is not stopped by URLScan (no entry in the logs)
>- The site had (what seemes to me) the correct appmappings
>(C:\perl\bin\perl.exe & c:\php\php.exe)
>- The "Web Service Extensions" has an entry called "Perl CGI Extensions"
>mapped to (c:\perl\bin\perl.exe "%s" %s) and has status "Allowed" and "php"
>mapped to (c:\php\php.exe) and has status set to "Allowed" as well. But if
>"All unknown CGI extensions" is marked as "prohibited" I get a 404 error
>instead of the error mentioned above. I should probably not have to enable
>both to have this work....or?
>- The request does not seem to get as far as to the actual filesystem (no
>errors reported by NTFilemon - www.sysinternals.com)
>
>I desperately need some advice on what might be wrong here, I'm running out
>of ideas on what causes this..... - could anyone please help?
See:
http://www.visualwin.com/
Jeff
| |
|
| Hi Jeff,
As far as I can see I have followed this step-by-step, but still I encounter
this error.
Is there no way to troubleshoot what IIS does with the actual request, and
why it denies it?
"Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
news:4003df62.358237448@msnews.microsoft.com...quote:
> On Tue, 6 Jan 2004 16:28:46 +0100, "Roger" <roglan19@hotmail.com>
> wrote:
>
the[QUOTE][color=darkred]
returns a[QUOTE][color=darkred]
Services[QUOTE][color=darkred]
the[QUOTE][color=darkred]
"php"[QUOTE][color=darkred]
if[QUOTE][color=darkred]
enable[QUOTE][color=darkred]
out[QUOTE][color=darkred]
>
> See:
>
> http://www.visualwin.com/
>
> Jeff
>
| |
|
| Another weird thing: Every time I try requesting either my .pl or my .php
file, svchost.exe starts hogging the cpu with 100% utilization.....
"Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
news:4003df62.358237448@msnews.microsoft.com...quote:
> On Tue, 6 Jan 2004 16:28:46 +0100, "Roger" <roglan19@hotmail.com>
> wrote:
>
the[QUOTE][color=darkred]
returns a[QUOTE][color=darkred]
Services[QUOTE][color=darkred]
the[QUOTE][color=darkred]
"php"[QUOTE][color=darkred]
if[QUOTE][color=darkred]
enable[QUOTE][color=darkred]
out[QUOTE][color=darkred]
>
> See:
>
> http://www.visualwin.com/
>
> Jeff
>
| |
|
| Ok - I've found some sort of a solution. thanks to Paul Lynch I started
messing around with the application pool this site was designated to. So: IF
I run the site itself within "Default Application pool" but create a virtual
directory called cgi-bin, and assign a new application pool to this
directory and set it's process identity to the IWAM_Computername account it
suddenly works....
So obviously the scripts refuse to run under the "Network Service" account
(which is default for all new application pools created)....does anyone know
WHY...? Is there a security risk involved in having this run as
IWAM_Computername rather then "Network Service"?
Roger
"Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
news:4003df62.358237448@msnews.microsoft.com...quote:
> On Tue, 6 Jan 2004 16:28:46 +0100, "Roger" <roglan19@hotmail.com>
> wrote:
>
the[QUOTE][color=darkred]
returns a[QUOTE][color=darkred]
Services[QUOTE][color=darkred]
the[QUOTE][color=darkred]
"php"[QUOTE][color=darkred]
if[QUOTE][color=darkred]
enable[QUOTE][color=darkred]
out[QUOTE][color=darkred]
>
> See:
>
> http://www.visualwin.com/
>
> Jeff
>
|
|
|
|
|