Skip to content

Instantly share code, notes, and snippets.

@LinuxDevOpsGirl
Created December 14, 2021 10:48
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 LinuxDevOpsGirl/cc46b12a831d77a1efd949f2eb787986 to your computer and use it in GitHub Desktop.
Save LinuxDevOpsGirl/cc46b12a831d77a1efd949f2eb787986 to your computer and use it in GitHub Desktop.
Install Laravel Using LEMP Stack
# Things to do:
sudo -i
apt update -y && apt upgrade -y
apt update -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt upgrade -o APT::Get::Show-Upgraded=true
apt install apt-show-versions
apt update -y && apt-get upgrade -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt update -y && apt upgrade -y
add-apt-repository ppa:git-core/ppa
apt update -y && apt upgrade -y
apt install git
git config --global user.name "masum"
git config --global user.email mail@domain.com
apt upgrade -y
apt -f install
apt autoremove
apt -y autoclean
apt -y clean
apt update -y
apt-get upgrade -y
reboot
# NGINX INstall
sudo apt install nginx -y
sudo systemctl start nginx
sudo systemctl status nginx
cd /var/www/html
sudo composer global require laravel/installer
sudo composer create-project --prefer-dist laravel/laravel laravel
sudo chmod -R 755 /var/www/html/laravel
sudo chown -R www-data:www-data /var/www/html/laravel
nginx -t
sudo systemctl restart nginx
sudo systemctl reload nginx
sudo systemctl restart php7.4-fpm
sudo systemctl restart mariadb
sudo systemctl status nginx
Visit:
http://localhost/
@LinuxDevOpsGirl
Copy link
Author

Screenshot from 2021-12-14 03-36-35

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