Created
March 27, 2020 08:38
-
-
Save webbash/2d0e7dd990ac334251ed845ab3bdf610 to your computer and use it in GitHub Desktop.
Установка PHPBrew на Debian/Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. sudo apt-get update && | |
sudo apt-get install \ | |
build-essential \ | |
libbz2-dev \ | |
libreadline-dev \ | |
libsqlite3-dev \ | |
libssl-dev \ | |
libxml2-dev \ | |
libxslt-dev \ | |
php7.2-cli \ | |
php7.2-bz2 \ | |
pkg-config | |
2. sudo apt-get install libreadline-dev | |
3. cd ~ && curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar | |
4. chmod +x phpbrew.phar | |
5. sudo mv phpbrew.phar /usr/local/bin/phpbrew | |
6. phpbrew init | |
7. Записать в конец .bashrc - [[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc | |
8. Записать в конец .bashrc - export PHPBREW_SET_PROMPT=1 | |
9. source .bashrc | |
10. Перезагружаем консоль и смотрим доступные версии для установки: phpbrew known --more | |
11. Установка версии phpbrew install <version> +default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment