Last active
May 25, 2022 12:52
-
-
Save Jodaille/52ad877c0c0416dd56a84c56a2d58da8 to your computer and use it in GitHub Desktop.
Php Debian
This file contains 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
# Install cert/tools | |
sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2 | |
# Add Sury repository for PHP | |
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list | |
wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add - | |
# update packages list | |
sudo apt update | |
sudo apt install php8.0 php8.0-{mysql,cli,common,xml,fpm,curl,mbstring,zip,intl,redis,gd} | |
sudo apt-get install libapache2-mod-fcgid | |
sudo apt-get install mariadb-client mariadb-server | |
# Connect MariaDB | |
sudo mysql | |
# Install composer | |
#cf: https://getcomposer.org/download/ | |
php artisan serve --host=192.168.1.212 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment