Skip to content

Magento2 Permission Correction

License

Notifications You must be signed in to change notification settings

NorthWebSolutions/m2pc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

What is this repo?

THIS IS A BASH SCRIPT for ubuntu 16.04 to correct magento2 permissions in CLI.

reqiurements:

  • ubuntu root or SUDO user
  • Magento 2.0.6 or higher

Setup:

You need to change the following 3 things in correct_permissions.sh:

  • Installation folder
  • magento user name
  • magento user group
Locate your magento2 installation, and set LIB varrable to your actual folder

*remember to use absolute path on linux

LIB="/var/www/magento2/"
Change magento_user and magento_group to your system's magento username and group
sudo chown -R magento_user:magento_group $LIB   

you are done ;)

To run sh in terminal you need exectute permission for correct_permissions.sh
sudo chmod +X "correct_permissions.sh"

Releases

No releases published

Packages

No packages published

Languages