Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information about system-wide install #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ Sets up a separate rbenv environment for PHP

## SYNOPSIS

phpenv-install.sh
UPDATE=yes phpenv-install.sh
$ phpenv-install.sh
$ UPDATE=yes phpenv-install.sh
$ PHPENV_ROOT=/usr/local/phpenv phpenv-install.sh

## DESCRIPTION

Expand Down Expand Up @@ -49,6 +50,18 @@ Finally, enable phpenv in your shell by adding `$HOME/.phpenv/bin` and
to your `$HOME/.bash_profile` or `$HOME/.bashrc` (or your shell's
respective file) and restart your shell.

### SYSTEM WIDE INSTALL

Using `phpenv` as system wide install,
`PHPENV_ROOT` environment variable before
calling `phpenv-install.sh`, for example:

$ PHPENV_ROOT=/usr/local/phpenv ./phpenv-install.sh

You can also check as reference how to install phpenv system-wide.
See: [phpenv-install-system-wide.sh](https://gist.github.com/banyan/4715950)


## IMPORTANT NOTES

- **For rbenv users**: Make sure that `~/.rbenv/bin` takes precedence
Expand Down