Skip to content

Commit

Permalink
Updated readme with PHP CLI instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
damianlewis committed May 9, 2018
1 parent e71d612 commit 5953900
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ php-modules:
```
**Note**: Modules are installed via Ubuntu's Advanced Packaging Tool (APT)

By default, DevBox uses PHP 7.2. To use a different version for PHP CLI, add the `php-cli` property. Supported versions are `5.6`, `7.0`, `7.1` and `7.2`.
```yaml
php-cli: "5.6"
```
**Note**: PHP version 5.5 is also supported for legacy systems. Use `5` as the `php-cli` property.


#### Website
You can set up multiple sites by mapping a url to a root folder on the VM. Sites are configured in the `sites` array. The url is set via the `url` property and the root folder set via the `root` property.
Expand All @@ -86,7 +92,6 @@ sites:
root: /path/to/root/folder/on/vm
php: "7.1"
```

**Note**: PHP version 5.5 is also supported for legacy systems. Add `5` to the `php` sites property.

The url must be added to your machines `hosts` file. Example:
Expand All @@ -103,7 +108,6 @@ By default, DevBox uses MySQL 5.7. To install an alternative version, add the `m
```yaml
mysql: "5.5"
```

**Note**: These alternative versions are only supported with Ubuntu 14.04.

#### Databases
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ip: "192.168.10.10"
#webserver: apache

# PHP version to use for CLI
#php-cli: "5"
#php-cli: "5.6"

# MySQL version to use
#mysql: "5.5"
Expand Down

0 comments on commit 5953900

Please sign in to comment.