Instalar dependencias
sudo dnf install gcc make autoconf bison re2c libxml2-devel
sudo dnf install openssl openssl-devel bzip2 bzip2-devel libcurl libcurl-devel oniguruma oniguruma-devel readline readline-devel libxslt libxslt-devel libzip libzip-devel
Instalar php
sudo dnf install php-cli
Instalar PHPBrew
curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar
chmod +x phpbrew.phar
sudo mv phpbrew.phar /usr/local/bin/phpbrew
Inicializar PHPBrew
phpbrew init
Agrega PHPBrew a tu archivo de inicio de shell
echo '[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc' >> ~/.bashrc
source ~/.bashrc
Instalar PHPBrew
curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar
chmod +x phpbrew.phar
sudo mv phpbrew.phar /usr/local/bin/phpbrew
Inicializar PHPBrew
phpbrew init
Agrega PHPBrew a tu archivo de inicio de shell
echo '[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc' >> ~/.bashrc
source ~/.bashrc
source ~/.zshrc
Listar versiones de PHP disponibles
phpbrew known
Instalar versiones de PHP con PHPBrew
phpbrew install 7.4 .27
phpbrew install 8.3.13
Cambiar entre versiones de PHP
phpbrew use 7.4.27
Instalar versiones de PHP con PHPBrew
phpbrew install 7.4 .27
phpbrew install 8.3.13
Cambiar entre versiones de PHP
phpbrew use 7.4.27
phpbrew switch 8.3.13
Comprobar la versión de PHP activa
php -v
Comprobar la versión de PHP activa
php -v
Actualizar la lista de versiones de PHP:
phpbrew update
Administrar extensiones
phpbrew use 7.4
phpbrew ext install mbstring
Desinstalar versiones de PHP
phpbrew uninstall 7.4
Administrar extensiones
phpbrew use 7.4
phpbrew ext install mbstring
Desinstalar versiones de PHP
phpbrew uninstall 7.4
No hay comentarios:
Publicar un comentario