项目作者: NorthWebSolutions

项目描述 :
Magento2 Permission Correction
高级语言: Shell
项目地址: git://github.com/NorthWebSolutions/m2pc.git
创建时间: 2017-11-20T11:34:01Z
项目社区:https://github.com/NorthWebSolutions/m2pc

开源协议:GNU General Public License v3.0

下载


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

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

you are done ;)

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