{"id":40,"date":"2011-06-27T19:59:16","date_gmt":"2011-06-27T17:59:16","guid":{"rendered":"http:\/\/blog.tobo.biz\/?p=40"},"modified":"2013-05-08T11:13:03","modified_gmt":"2013-05-08T09:13:03","slug":"installation-von-php-in-iis7","status":"publish","type":"post","link":"https:\/\/blog.tobo.biz\/?p=40","title":{"rendered":"Installation von PHP in IIS7"},"content":{"rendered":"<p>Nach wie vor ist der <em>Internet Information Store<\/em> (kurz IIS) von Microsoft einer der weit verbreiteste Webserver im Internet. Immer \u00f6fter werden Server installiert die den IIS nutzen und auch diese Server ben\u00f6tigen nat\u00fcrlich PHP. Doch wie wird PHP in einen IIS integriert? Eigentlich ganz einfach, wie die folgende Anleitung zeigt:<\/p>\n<ol>\n<li><!--more--><strong>Installation<\/strong>\n<ol>\n<li><strong>IIS installieren<\/strong>\n<ol>\n<li>Zuerst muss der IIS im Servermanager (Windows Server 2008 \/ 2008 R2) installiert werden (siehe Serverrollen im Servermanager)<\/li>\n<li>Bei der Installation muss darauf geachtet werden, das die Funktion \u201eCGI\u201c (Unterpunkt von \u201eAnwendungsentwicklung\u201c) aktiviert ist. Bei einer bereits vorhandenen IIS Installation kann dieses Feature im Servermanager ohne weiteres nachinstalliert werden.<\/li>\n<\/ol>\n<\/li>\n<li><strong>PHP installieren<\/strong>\n<ol>\n<li>Zuerst muss die aktuelle Version von PHP heruntergeladen werden. F\u00fcr Windows gibt es spezielle Windows Binarys (Ausf\u00fchrbare EXE-Datei \/ aktuelle stabel Version), zu finden auf der Webseite http:\/\/www.php.net<\/li>\n<li>Bei der Installation von PHP muss die Serverart &#8222;IIS Fast CGI&#8220; ausgew\u00e4hlt werden.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li><strong>Konfiguration<\/strong>\n<ol>\n<li><strong>PHP<\/strong>\n<ol>\n<li>Nach Abschluss der PHP Installation muss Diese konfiguriert werden. Hierzu muss die php.ini im Installationsordner von PHP ge\u00f6ffnet werden (Standard: <em>C:\\Program Files (x86)\\PHP<\/em>)<\/li>\n<li>Die folgenden Werte m\u00fcssen angepasst werden. Sollten die Zeilen auskommentiert sein, muss diese Auskommentierung r\u00fcckg\u00e4ngig gemacht werden.\n<ol>\n<li><em>modify fastcgi.impersonate<\/em> von Wert <em>0<\/em> auf Wert <em>1<\/em><\/li>\n<li><em>cgi.fix_pathinfo<\/em> von Wert <em>0<\/em> auf Wert <em>1<\/em><\/li>\n<li><em>cgi.force_redirect<\/em> von Wert <em>1<\/em> auf Wert <em>0<\/em><\/li>\n<li><em>open_basedir<\/em> auf Webserverordner des IIS \u00e4ndern (Standart: C:\\inetpub)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li><strong>IIS<\/strong>\n<ol>\n<li>Im IIS Manager \/ Servermanager -&gt; Serverrolle <em>IIS <\/em>bei der <em>Handlerzuordnung <\/em>\u00fcberpr\u00fcfen, dass PHP-Seiten mittels Fast CGI und der entsprechenden EXE (Standard: <em>C:\\Programme x86\\PHP\\PHP-CGI.exe<\/em>) ausf\u00fchrt wird<\/li>\n<li>Bei den Standardseiten kontrollieren, dass die <em>index.php<\/em> nach der <em>index.html<\/em> und der <em>index.htm<\/em> ausgef\u00fchrt wird.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><!-- Werbung BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK --><br \/>\n<a href=\"http:\/\/partners.webmasterplan.com\/click.asp?ref=554672&amp;site=3064&amp;type=b79&amp;bnb=79\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" alt=\"1822direkt\" src=\"http:\/\/banners.webmasterplan.com\/view.asp?ref=554672&amp;site=3064&amp;b=79\" width=\"728\" height=\"90\" border=\"0\" \/><\/a><\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F40&#038;t=Installation%20von%20PHP%20in%20IIS7&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F40&#038;p&#091;images&#093;&#091;0&#093;=http%3A%2F%2Fbanners.webmasterplan.com%2Fview.asp%3Fref%3D554672%26amp%3Bsite%3D3064%26amp%3Bb%3D79&#038;p&#091;title&#093;=Installation%20von%20PHP%20in%20IIS7\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F40&#038;text=Hey%20check%20this%20out\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F40&#038;title=Installation%20von%20PHP%20in%20IIS7\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/reddit.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-pinterest nolightbox\" data-provider=\"pinterest\" target=\"_blank\" rel=\"nofollow\" title=\"Pin it with Pinterest\" href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F40&#038;media=http%3A%2F%2Fbanners.webmasterplan.com%2Fview.asp%3Fref%3D554672%26amp%3Bsite%3D3064%26amp%3Bb%3D79&#038;description=Installation%20von%20PHP%20in%20IIS7\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"pinterest\" title=\"Pin it with Pinterest\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/pinterest.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F40&#038;title=Installation%20von%20PHP%20in%20IIS7\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Installation%20von%20PHP%20in%20IIS7&#038;body=Hey%20check%20this%20out:%20https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F40\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;\"><img alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>Nach wie vor ist der Internet Information Store (kurz IIS) von Microsoft einer der weit verbreiteste Webserver im Internet. Immer \u00f6fter werden Server installiert die den IIS nutzen und auch diese Server ben\u00f6tigen nat\u00fcrlich PHP. Doch wie wird PHP in &hellip; <a href=\"https:\/\/blog.tobo.biz\/?p=40\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts\/40"}],"collection":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":5,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":320,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/320"}],"wp:attachment":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}