Guest User

Untitled

a guest
May 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. cd <your Magento install dir>
  2.  
  3. find . -type f -exec chmod 644 {} ; // 644 permission for files
  4.  
  5. find . -type d -exec chmod 755 {} ; // 755 permission for directory
  6.  
  7. find ./var -type d -exec chmod 777 {} ; // 777 permission for var folder
  8.  
  9. find ./pub/media -type d -exec chmod 777 {} ;
  10.  
  11. find ./pub/static -type d -exec chmod 777 {} ;
  12.  
  13. chmod 777 ./app/etc
  14.  
  15. chmod 644 ./app/etc/*.xml
  16.  
  17. chown -R :<web server group> .
  18.  
  19. chmod u+x bin/magento
  20.  
  21. There might be 2 case
  22.  
  23. php bin/magento setup:upgrade
  24. php bin/magento setup:static-content:deploy
  25. rm -rf var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/
  26. rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs/
  27.  
  28. find . -type f -exec chmod 644 {} ;
  29. find . -type d -exec chmod 755 {} ;
  30. find ./var -type d -exec chmod 777 {} ;
  31. find ./pub/media -type d -exec chmod 777 {} ;
  32. find ./pub/static -type d -exec chmod 777 {} ;
  33. chmod 777 ./app/etc
  34. chmod 644 ./app/etc/*.xml
Add Comment
Please, Sign In to add comment