Skip to content

Instantly share code, notes, and snippets.

@acacha
Last active April 5, 2022 18:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acacha/7b21043ec1cfa06b551ea75aa86edff0 to your computer and use it in GitHub Desktop.
Save acacha/7b21043ec1cfa06b551ea75aa86edff0 to your computer and use it in GitHub Desktop.
Actualització Ubuntu 20.02 a PHP8 per a Laravel ) i canvis a Valet Linux
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt install php8.0-fpm php8.0-cli php8.0-common php8.0-curl php8.0-gd php8.0-mbstring php8.0-mysql php8.0-opcache php8.0-readline php8.0-sqlite3 php8.0-xml php8.0-zip
$ laravel -v
Laravel Installer 4.2.9
$ composer global update
$ laravel -v
Laravel Installer 4.2.10
$ laravel new prova && cd prova
$ php artisan --version
Laravel Framework 9.0.2
$ sudo systemctl status php8.0-fpm
$ rm /home/sergi/.valet/valet.sock
$ valet install
$ valet start
$ sudo systemctl status php8.0-fpm
@gabrielurs
Copy link

Para arreglar error de libprec2.8-0:
sudo apt-get update -y
sudo apt-get install -y libpcre2-8-0

@acacha
Copy link
Author

acacha commented Apr 5, 2022

Merci @l3lackJack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment