Skip to content

Instantly share code, notes, and snippets.

@jsyzdek
Last active September 9, 2023 15:19
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 jsyzdek/0df3c664d311a62e21d0ea20b688cc57 to your computer and use it in GitHub Desktop.
Save jsyzdek/0df3c664d311a62e21d0ea20b688cc57 to your computer and use it in GitHub Desktop.
common packages to install for Laravel
sudo apt-get update
sudo apt install composer mysql-server -y
sudo apt install php7.4 php7.4-cli php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc
php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring
php7.4-opcache php7.4-soap php7.4-zip php7.4-intl php7.4-fpm php7.4-json
php7.4-bcmath -y
sudo mysql_secure_installation
#remember that now, root user requires sudo to log in:
sudo mysql -uroot -p
#>>>>>>>>>>>>>>>>>>
create user 'user'@'localhost' identified by 'pass';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment