Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
1ce52a53
Commit
1ce52a53
authored
Apr 25, 2014
by
Larry Ullman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cleaning up
parent
f4b23b6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
installation.md
docs/guide/installation.md
+8
-8
No files found.
docs/guide/installation.md
View file @
1ce52a53
...
@@ -59,6 +59,10 @@ in the Yii Framework, should be protected from web access to prevent possible ex
...
@@ -59,6 +59,10 @@ in the Yii Framework, should be protected from web access to prevent possible ex
Requirements
Requirements
------------
------------
Yii 2 requires PHP 5.4.0 or higher. Yii has been tested with the
[
Apache HTTP server
](
http://httpd.apache.org/
)
and
[
Nginx HTTP server
](
http://nginx.org/
)
on both Windows and Linux.
Yii may also be usable on other web servers and platforms, provided that PHP 5.4 or higher is present.
After installing Yii, you may want to verify that your server satisfies
After installing Yii, you may want to verify that your server satisfies
Yii's requirements. You can do so by running the requirement checker
Yii's requirements. You can do so by running the requirement checker
script in a web browser or from the command line.
script in a web browser or from the command line.
...
@@ -75,19 +79,15 @@ php requirements.php
...
@@ -75,19 +79,15 @@ php requirements.php
In order to run this script in your browser, you must make sure it's within a web directory, and then
In order to run this script in your browser, you must make sure it's within a web directory, and then
access
`http://hostname/path/to/yii-app/requirements.php`
in your browser.
access
`http://hostname/path/to/yii-app/requirements.php`
in your browser.
Yii 2 requires PHP 5.4.0 or higher. Yii has been tested with the
[
Apache HTTP server
](
http://httpd.apache.org/
)
and
[
Nginx HTTP server
](
http://nginx.org/
)
on Windows and Linux.
Yii may also be usable on other web servers and platforms, provided that PHP 5.4 or higher is supported.
Recommended Apache Configuration
Recommended Apache Configuration
--------------------------------
--------------------------------
Yii is ready to work with a default Apache web server configuration. As a security measure, Yii comes with
`.htaccess`
Yii is ready to work with a default Apache web server configuration. As a security measure, Yii comes with
`.htaccess`
files in the Yii framework folder to deny access to th
ose
restricted resources.
files in the Yii framework folder to deny access to th
e application's
restricted resources.
By default, requests for pages in a Yii-based site go through the bootstrap file, usually named
`index.php`
, and placed
By default, requests for pages in a Yii-based site go through the bootstrap file, usually named
`index.php`
, and placed
in the application's
`web`
directory. The result will be URLs in the format
`http://hostname/index.php/controller/action/param/value`
.
in the application's
home
directory. The result will be URLs in the format
`http://hostname/index.php/controller/action/param/value`
.
To hide the bootstrap file in your URLs, add
`mod_rewrite`
instructions to the
`.htaccess`
file in your web document root
To hide the bootstrap file in your URLs, add
`mod_rewrite`
instructions to the
`.htaccess`
file in your web document root
(or add the instructions to the virtual host configuration in Apache's
`httpd.conf`
file,
`Directory`
section for your webroot).
(or add the instructions to the virtual host configuration in Apache's
`httpd.conf`
file,
`Directory`
section for your webroot).
...
@@ -96,10 +96,10 @@ The applicable instructions are:
...
@@ -96,10 +96,10 @@ The applicable instructions are:
~~~
~~~
RewriteEngine on
RewriteEngine on
# If a directory or a file exists, use
i
t directly
# If a directory or a file exists, use
the reques
t directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward
i
t to index.php
# Otherwise forward
the reques
t to index.php
RewriteRule . index.php
RewriteRule . index.php
~~~
~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment