Skip to content

A simple bash shell script to update Laravel files and folders permission and owner

License

Notifications You must be signed in to change notification settings

GregOstry/laravel-permissions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Permissions Fix Script

A simple bash shell script to update Laravel files and folders permission and owner

IMPORTANT: Set LARAVEL_OWNER, LARAVEL_WS_GROUP and LARAVEL_ROOT before running

TO RUN (after logging in to your server using SSH):

1. Navigate to desired directory (outside your root directory)

cd /var/www/

2. Download the script

wget https://raw.githubusercontent.com/marounmelhem/laravel-permissions-fix/dev/perm_fix.sh

3. Configure default variables as per your server configuration:

#Set variables here
LARAVEL_OWNER=user # <-- owner (user)
LARAVEL_WS_GROUP=www-data # <-- WebServer group
LARAVEL_ROOT=/var/www/html # <-- Laravel root directory

4. Set execute permission to it:

chmod +x perm_fix.sh

5. Run the script:

./perm_fix.sh

About

A simple bash shell script to update Laravel files and folders permission and owner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%