Skip to content

Commit

Permalink
Fix README description
Browse files Browse the repository at this point in the history
  • Loading branch information
garymengcom committed Oct 7, 2019
1 parent 9f4e292 commit efd6737
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ Docker deploying Nginx MySQL PHP7/PHP5.6/PHP5.4 in one key, support full feature

**[[中文说明]](README.md)**

![Demo Image](./dnmp.png)

## 1. Feature
1. Completely open source.
2. Support Multiple PHP version(~~PHP5.4,~~ PHP5.6, PHP7.2) switch.
2. Support Multiple PHP version(PHP5.4, PHP5.6, PHP7.0, PHP7.1, PHP7.2, PHP7.3) switch.
3. Support Multiple domains.
4. Support HTTPS and HTTP/2.
5. PHP source located in host.
Expand Down Expand Up @@ -43,17 +42,17 @@ The index file is located at `./www/localhost/index.php`.
## 3.Multiple php version
Default, we create 3 php container, they are PHP7.2, PHP5.6 and PHP5.4,
Default, we create 3 php container, they are PHP7, PHP5.6 and PHP5.4,
We can change easy by modify Nginx configuration `fastcgi_pass`.
For example, [http://localhost](http://localhost) use PHP5.4, Nginx `fastcgi_pass` is:
For example, [http://localhost](http://localhost) use PHP7, Nginx `fastcgi_pass` is:
```
fastcgi_pass php54:9000;
fastcgi_pass php:9000;
```
To use PHP7.2, change it:
To use PHP7, change it:
```
fastcgi_pass php72:9000;
fastcgi_pass php54:9000;
```
Then reload nginx:
```bash
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ php () {
$tty \
--interactive \
--rm \
--volume $PWD:/var/www/html:rw \
--workdir /var/www/html \
--volume $PWD:/www:rw \
--workdir /www \
dnmp_php php "$@"
}
```
Expand Down

0 comments on commit efd6737

Please sign in to comment.