install:iis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:iis [2014-12-22 12:10] – [Handler Mappings] 62.232.64.37 | install:iis [2023-09-20 21:48] (current) – rewrite info moved here. needs refactoring andi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== DokuWiki with IIS ====== | + | ====== DokuWiki with IIS ====== |
- | ===== Overview ===== | ||
This is for people who want to use [[: | This is for people who want to use [[: | ||
- | |||
- | ===== IIS 7 ===== | ||
- | |||
- | ==== Installation ==== | ||
- | |||
- | The first step is to setup the web server for CGI [[http:// | ||
- | Basically you just tick the CGI tickbox under windows server IIS roles features | ||
- | |||
- | The next step is to install [[http:// | ||
- | Use the latest stable non-thread safe version (MS recommends this) \\ | ||
- | install this into C:\PHP\ | ||
- | |||
- | Next try to see if PHP Works via the command line | ||
- | < | ||
- | cd C:\PHP\ | ||
- | php -info | ||
- | </ | ||
- | |||
- | If you get an error about MSVCR110.dll then try installing this (64bit) [[http:// | ||
- | |||
- | ==== Handler Mappings ==== | ||
- | |||
- | Next we need to setup the Handler Mappings for IIS7 | ||
- | * Open the IIS Manager | ||
- | * Select the Server | ||
- | * Double Click the Handler Mappings Icon | ||
- | |||
- | * Select Add Module Mapping | ||
- | |||
- | ^ Title ^ Value ^ | ||
- | | Request path: | *.php | | ||
- | | Module: | FastCgiModule | | ||
- | | Executable | C: | ||
- | | Name | PHP via FastCGI | | ||
- | |||
Line 45: | Line 9: | ||
=== Install PHP === | === Install PHP === | ||
- | * New DL-Link for PHP under IIS (auto-install): | + | * New DL-Link for PHP under IIS (auto-install): |
* If you want to do an offline install and want to use fast-cgi, install the addin before you install php: [[http:// | * If you want to do an offline install and want to use fast-cgi, install the addin before you install php: [[http:// | ||
(Just install and leave the setting ' | (Just install and leave the setting ' | ||
- | * Use the windows install from PHP's website. See the [[http:// | + | * Use the windows install from PHP's website. See the [[http:// |
* If you're using the [[http:// | * If you're using the [[http:// | ||
Line 68: | Line 32: | ||
- | ===== IIS7 ===== | + | ===== IIS7/10 ===== |
==== Install PHP ==== | ==== Install PHP ==== | ||
- | * Use the windows install from PHP's website. See the [[http:// | + | * Use the windows install from PHP's website. See the [[http:// |
* PHP can run either as CGI-application or as an ISAPI extension. | * PHP can run either as CGI-application or as an ISAPI extension. | ||
Line 94: | Line 58: | ||
* New Website like " | * New Website like " | ||
- Browse to the '' | - Browse to the '' | ||
- | - Browse to the '' | + | - Browse to the '' |
+ | * '' | ||
+ | * '' | ||
- The wiki installer should now be available. | - The wiki installer should now be available. | ||
- | - Browse to the '' | + | - Browse to the '' |
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Rewrite ==== | ||
+ | Enable url rewriting and insert appropriate set of rules: | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | < | ||
+ | |||
+ | <rule name=" | ||
+ | <match url=" | ||
+ | <action type=" | ||
+ | </ | ||
+ | <rule name=" | ||
+ | <match url=" | ||
+ | <action type=" | ||
+ | </ | ||
+ | <rule name=" | ||
+ | <match url=" | ||
+ | <action type=" | ||
+ | </ | ||
+ | <rule name=" | ||
+ | <match url=" | ||
+ | <action type=" | ||
+ | < | ||
+ | <add input=" | ||
+ | <add input=" | ||
+ | </ | ||
+ | </ | ||
+ | <rule name=" | ||
+ | <match url=" | ||
+ | <action type=" | ||
+ | < | ||
+ | <add input=" | ||
+ | <add input=" | ||
+ | </ | ||
+ | </ | ||
+ | <rule name=" | ||
+ | <match url=" | ||
+ | <action type=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | **If you are using Azure Web App**, just put these lines under the < | ||
+ | |||
+ | |||
+ | === IIS 7.0 or greater === | ||
+ | IIS 7.0 and above can be extended with a the URL Rewrite module 2.0 available from Microsoft for both [[https:// | ||
+ | |||
+ | Save the Apache rules above to a .htaccess file removing the " | ||
+ | |||
+ | In IIS Manager select your Wiki folder, and under IIS select "URL Rewrite" | ||
+ | |||
+ | In the actions pane on the right hand side, choose " | ||
+ | |||
+ | For your configuration file, select the .htaccess file and Import, this should give you 6 converted rules. | ||
+ | |||
+ | Finally hit Apply in the Actions panel on the right hand side. | ||
+ | |||
+ | Configure your Wiki to use .htaccess rules for rewrite and you should now be seeing your URLs rewritten. | ||
install/iis.1419246624.txt.gz · Last modified: 2014-12-22 12:10 by 62.232.64.37