server 2008 IIS 搭建PHP运行环境

8/31/2015来源:PHP技巧人气:2538

server 2008 IIS 搭建php运行环境

本文以Windows Server 2008 r2 EnterPRise作为操作系统,以IIS为web部署服务组件,配置PHP的服务器端执行环境,其中IIS版本为7.5,PHP版本为5.3。

注意:本文已经默认IIS以及.NET Framework已经安装完毕。

1.下载并安装PHP for IIS

随着PHP的普及以及微软对PHP的重视,微软官方发布了针对IIS的PHP版本,见地址:http://www.microsoft.com/web/platform/phponwindows.aspx。

打开页面后,会看到图1所示的页面。

ipmkjDkDQMuYWZuoR1kB5qd+KuZ7Wy5mX587h73ksTP5Me6bzs9H9i7gWVVTxWEDXhKf6zjpiKjyCnsA7SMCQ5giRhze7NoaGhoaGhTbRyAyKXy4ODg4cOHdq/f//+/fvfuHHD0CXSiRs3blhbW1tbWxu6IADQ+qHryPFpiM7HGuvonWUfI4QQYvvanWUfc0xV4fg0ziXVcHwaWcz6TX+87E7De3XFF1AktdtWW+KGFsE0SxPT0DhGDXgz0BZIy8gRhyFxGJIc6yA+2t75mInTUZRRdIkgFDEpQbOOdHA6jJzD24sPmc4MM4lKDayrIdIrrjiEI6fDyOUYEh9tP/MQEtrfHNxAenq6wCsBtQhjIqmVCQkJAtfTUhg9ejRZNVKd9VhB0sgZLdnUJCQkkNVpzo0CQNtEVUfuLPuYkjtt+3Hp62jqJVW6VOmWeHyZdsKo4XJqSqzysWr3r/ANaVuV+hIYfWc8eDPQFkjLyJEcR07H2tvtR07HTZyOIudjqIJQ1hFVf5/+3u4IEoUjmyMm4khkc7DdylOfEgqiVFHnfLCz5Iip02FkdwzZHzV1OILtVlb5oH8DXl5eQs6u8PBwahH69NbqzWS9hg4dSnUzy+Vy/a5cYMvrC/BmAGg28N6sLc3nzQwp1IM3a9pBq6bE+EwJ4RvStc/Y6LM1wJuBtkBaRs7U3SYO+5Fof3vHfe3sdnV22GtWq6hTKpVuBzrYH0V2u81s9yLHfabT9plIj3RQKMoVRJ14N3I8gGx3mU49gKYd7Gi7V0N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