BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

Previous posts in WS, web services

 
 
Page 3548 of 19542

PHP ?? Windows. ????????? ? ????????? ?????? FastCGI ?? IIS7.

Blogger : MSDN Blogs
All posts : All posts by MSDN Blogs
Category : WS, web services
Blogged date : 2008 May 04

???? ? ??? ? IIS7, ?? ???-?? ??? ???????????? ? ???????? ????? ???????????? ??????? - Windows Vista? ?? ??????, ????? Windows Server 2008! ???? ?? ????? ? ????????? IIS7 ???-????-??, ?? ??? ????????????? ??????? ? ?? ??? ?? ???????????? ;).

??? 1. ????????? FastCGI

???? ?????????? ????? - ? IIS7, ?????? ? Windows Server 2008 ? Windows Vista Service Pack 1 ?????? FastCGI ??? ???????. ??? ?????????? ???? ?????????? ? ??????????. ??? ????? ?? Vista ????? ??????? Control Panel -> Programs ? ??????? "Turn Windows Features On or Off":

ControlPanel - Programs

????? ????? ?????????? ?????????? ???? ? IIS: Internet Information Services -> World Wide Web Services -> Application Development Features -> CGI. ??? ???? ????? ??????????? ????????? ? CGI ? FastCGI.

IIS_CGI_Feature

?? Windows Server 2008 ??????? ??????????: Server Manager -> Roles -> Add Role Services -> Web Server -> Application Development -> CGI.

?????????? ???, ??? ????????? ??? ????????? ?????? FastCGI. ?????? ?????????? ?????????? ? ???????????? IIS7, ???????, ??? PHP ??? ??????????, ??? ??????? ? ???? ?????????? ?????????.

??? 2. ???????????? IIS7

1. ??????? IIS Manager, ??????? ???? (??????) ??? ???????? ????? ????????? ????????? PHP. ? ????? ??????? Handler Mappings.

HandlerMappings HandlerMappingsOpened

2. ???????? ?? ???????? Handler Mappings ?????? Add Module Mapping ? ????????? ???? ?????????? ??????????:

Request path: *.php (????????? ???? ?????? ? ??????????? .php)
Module: FastCgiModule (?????? FastCGI)
Executable: C:\Web\PHP\php-cgi.exe (???? ? PHP)
Name: PHP (??? ??? ????????)

PHPHandler

????? ?????????? ???? ????????? ???????? ???? ? ???????? ? ??????????? FastCGI ?????????? ??? ????? ???????????. ????????????.

????????? ???? ???????? ??????? ? ???????? ? ?????????? PhpSites ?????????? web.config ?????:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <add name="PHP" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\Web\PHP\php-cgi.exe" resourceType="Unspecified" />
        </handlers>
    </system.webServer>
</configuration>

?????? ????? ?????????? ? ???????? ????????????????? PHP.

??? 3. ????????? ???????????? ?????????

? ?????????? ???? ??? ???????? ?? ???????????????? PHP ??????? ???? index.php:

<?

phpinfo();

?>

? ?????????? ? ????? ????? ????? HTTP ??????. ? ??????????, ???? ??? ?????? ? ???? ????? ?? ?????????, ?????? ????? ????????? ?????????:

phpinfo


Read comments or post a reply to : PHP ?? Windows. ????????? ? ????????? ?????? FastCGI ?? IIS7.
Page 3548 of 19542

Newest posts
 

    Email TopXML