PHP and IIS 6
am 25.09.2007 20:18:42 von Matthew Bilsky
I installed php for iis 6, but if i call a page written in php, it get the
following error:
The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from
a directory that does not allow programs to be executed.
Please try the following:
* Contact the Web site administrator if you believe this directory
should allow execute access.
HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)
Technical Information (for support personnel)
* Go to Microsoft Product Support Services and perform a title search
for the words HTTP and 403.
* Open IIS Help, which is accessible in IIS Manager (inetmgr), and
search for topics titled Configuring ISAPI Extensions, Configuring CGI
Applications, Securing Your Site with Web Site Permissions, and About Custom
Error Messages.
* In the IIS Software Development Kit (SDK) or at the MSDN Online
Library, search for topics titled Developing ISAPI Extensions, ISAPI and
CGI, and Debugging ISAPI Extensions and Filters.
If i go and enable script only for the entire site, then i get this error:
The page cannot be found
The page you are looking for might have been removed, had its name changed,
or is temporarily unavailable.
Please try the following:
* Make sure that the Web site address displayed in the address bar of
your browser is spelled and formatted correctly.
* If you reached this page by clicking a link, contact the Web site
administrator to alert them that the link is incorrectly formatted.
* Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
Technical Information (for support personnel)
* Go to Microsoft Product Support Services and perform a title search
for the words HTTP and 404.
* Open IIS Help, which is accessible in IIS Manager (inetmgr), and
search for topics titled Web Site Setup, Common Administrative Tasks, and
About Custom Error Messages.
What am i doing wrong?
Re: PHP and IIS 6
am 26.09.2007 00:21:25 von David Wang
On Sep 25, 11:18 am, "Matthew Bilsky" wrote:
> I installed php for iis 6, but if i call a page written in php, it get the
> following error:
>
> The page cannot be displayed
> You have attempted to execute a CGI, ISAPI, or other executable program from
> a directory that does not allow programs to be executed.
>
> Please try the following:
>
> * Contact the Web site administrator if you believe this directory
> should allow execute access.
>
> HTTP Error 403.1 - Forbidden: Execute access is denied.
> Internet Information Services (IIS)
>
> Technical Information (for support personnel)
>
> * Go to Microsoft Product Support Services and perform a title search
> for the words HTTP and 403.
> * Open IIS Help, which is accessible in IIS Manager (inetmgr), and
> search for topics titled Configuring ISAPI Extensions, Configuring CGI
> Applications, Securing Your Site with Web Site Permissions, and About Custom
> Error Messages.
> * In the IIS Software Development Kit (SDK) or at the MSDN Online
> Library, search for topics titled Developing ISAPI Extensions, ISAPI and
> CGI, and Debugging ISAPI Extensions and Filters.
>
> If i go and enable script only for the entire site, then i get this error:
>
> The page cannot be found
> The page you are looking for might have been removed, had its name changed,
> or is temporarily unavailable.
>
> Please try the following:
>
> * Make sure that the Web site address displayed in the address bar of
> your browser is spelled and formatted correctly.
> * If you reached this page by clicking a link, contact the Web site
> administrator to alert them that the link is incorrectly formatted.
> * Click the Back button to try another link.
>
> HTTP Error 404 - File or directory not found.
> Internet Information Services (IIS)
>
> Technical Information (for support personnel)
>
> * Go to Microsoft Product Support Services and perform a title search
> for the words HTTP and 404.
> * Open IIS Help, which is accessible in IIS Manager (inetmgr), and
> search for topics titled Web Site Setup, Common Administrative Tasks, and
> About Custom Error Messages.
>
> What am i doing wrong?
Did you install by hand? Because I'm pretty surprised at this basic
setup bug at this point in PHP. You may want to report it to PHP if
you are in this state because of their installer.
It sounds like Web Service Extension for PHP's configured binary,
either CGI or ISAPI, is not existent/enabled. Check the IIS web log
entry for the request for 404 2 1260 and if so, search the web on how
to resolve that.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//