Last active
January 24, 2023 15:58
-
-
Save zabidok/4af0d42a5ed19c8f4dce8b20758f09ad to your computer and use it in GitHub Desktop.
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
sudo apt update -y && sudo apt upgrade -y && sudo snap refresh && sudo apt autoremove -y | |
sudo apt install nginx zip mysql-server software-properties-common | |
sudo ufw allow 'Nginx HTTP' | |
//add key to github | |
ssh-keygen -t rsa -b 4096 | |
cat ~/.ssh/id_rsa.pub | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt -y install php7.4 php7.4-xml php7.4-dom php7.4-intl php7.4-fpm php7.4-mysql | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" | |
sudo mv composer.phar /usr/bin/composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment