"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/guide/start-installation.md" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

start-installation.md  (yii2-2.0.35):start-installation.md  (yii2-2.0.36)
skipping to change at line 287 skipping to change at line 287
} }
} }
``` ```
When using this configuration, you should also set `cgi.fix_pathinfo=0` in the ` php.ini` file When using this configuration, you should also set `cgi.fix_pathinfo=0` in the ` php.ini` file
in order to avoid many unnecessary system `stat()` calls. in order to avoid many unnecessary system `stat()` calls.
Also note that when running an HTTPS server, you need to add `fastcgi_param HTTP S on;` so that Yii Also note that when running an HTTPS server, you need to add `fastcgi_param HTTP S on;` so that Yii
can properly detect if a connection is secure. can properly detect if a connection is secure.
### Recommended NGINX Unit Configuration <span id="recommended-nginx-unit-config
uration"></span>
You can run Yii-based apps using [NGINX Unit](https://unit.nginx.org/) with a PH
P language module.
Here is a sample configuration.
```json
{
"listeners": {
"*:80": {
"pass": "routes/yii"
}
},
"routes": {
"yii": [
{
"match": {
"uri": [
"!/assets/*",
"*.php",
"*.php/*"
]
},
"action": {
"pass": "applications/yii/direct"
}
},
{
"action": {
"share": "/path/to/app/web/",
"fallback": {
"pass": "applications/yii/index"
}
}
}
]
},
"applications": {
"yii": {
"type": "php",
"user": "www-data",
"targets": {
"direct": {
"root": "/path/to/app/web/"
},
"index": {
"root": "/path/to/app/web/",
"script": "index.php"
}
}
}
}
}
```
You can also [set up](https://unit.nginx.org/configuration/#php) your PHP enviro
nment or supply a custom `php.ini` in the same configuration.
### IIS Configuration <span id="iis-configuration"></span> ### IIS Configuration <span id="iis-configuration"></span>
It's recommended to host the application in a virtual host where document root p oints to `path/to/app/web` folder. In that `web` folder you have to place a file named `web.config` i.e. `path/to/app/web/web.config`. Content of the file shoul d be the following: It's recommended to host the application in a virtual host (Web site) where docu ment root points to `path/to/app/web` folder and that Web site is configured to run PHP. In that `web` folder you have to place a file named `web.config` i.e. ` path/to/app/web/web.config`. Content of the file should be the following:
```xml ```xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<system.webServer> <system.webServer>
<directoryBrowse enabled="false" /> <directoryBrowse enabled="false" />
<rewrite> <rewrite>
<rules> <rules>
<rule name="Hide Yii Index" stopProcessing="true"> <rule name="Hide Yii Index" stopProcessing="true">
<match url="." ignoreCase="false" /> <match url="." ignoreCase="false" />
skipping to change at line 313 skipping to change at line 373
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" <add input="{REQUEST_FILENAME}" matchType="IsDirectory"
ignoreCase="false" negate="true" /> ignoreCase="false" negate="true" />
</conditions> </conditions>
<action type="Rewrite" url="index.php" appendQueryString="true" /> <action type="Rewrite" url="index.php" appendQueryString="true" />
</rule> </rule>
</rules> </rules>
</rewrite> </rewrite>
</system.webServer> </system.webServer>
</configuration> </configuration>
``` ```
Also the following list of Microsoft's official resources could be useful in ord
er to configure PHP on IIS:
1. [How to set up your first IIS Web site](https://support.microsoft.com/en-us/
help/323972/how-to-set-up-your-first-iis-web-site)
2. [Configure a PHP Website on IIS](https://docs.microsoft.com/en-us/iis/applic
ation-frameworks/scenario-build-a-php-website-on-iis/configure-a-php-website-on-
iis)
 End of changes. 3 change blocks. 
1 lines changed or deleted 64 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)