Skip to content

This is for installing nginx, php and permission management for laravel deployment

Notifications You must be signed in to change notification settings

arif98741/laravelbash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Deployment and Nginx Server setup using one file

Some commands may not be executed successfully due to permission issue.

This file is built for root user not others. To modify for others users , simply add 'sudo' as prefix of every command Issues and Security: This file is built for only single use. You are also free to use at your own risk.

Step1: Download the all files in your machine and unzip inside /var/www directory

Step2: Run command

nano script.sh

Step3: edit script.sh with project name and ssh-url of your git repository

Step 4: save it using

  • Ctrl +X
  • Y
  • Enter

Step 5: Add Execute Permission to script.sh file

chmod +x script.sh

Step 6: run

./script.sh

Install and Tasks

  >  SSH Key Generate
  >  php
  >  install composer
  >  nginx
  >  permission to  folders
  >  clone repository
  >  generate ssh-key
  >  assign laravel permission(for laravel permission use laravel.sh repeating 1-6 step )
 

*You are fully responsible for if any damage happened in server due to use of this bash script. So, use it at your own risk*

About

This is for installing nginx, php and permission management for laravel deployment

Topics

Resources

Stars

Watchers

Forks

Languages