Created
December 14, 2021 10:48
-
-
Save LinuxDevOpsGirl/cc46b12a831d77a1efd949f2eb787986 to your computer and use it in GitHub Desktop.
Install Laravel Using LEMP Stack
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
# 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 [email protected] | |
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/ |
Author
LinuxDevOpsGirl
commented
Dec 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment