Skip to content

Instantly share code, notes, and snippets.

@zabidok
Last active January 24, 2023 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zabidok/4af0d42a5ed19c8f4dce8b20758f09ad to your computer and use it in GitHub Desktop.
Save zabidok/4af0d42a5ed19c8f4dce8b20758f09ad to your computer and use it in GitHub Desktop.
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