Skip to content

Instantly share code, notes, and snippets.

@rockdrigo
Created May 21, 2015 04:11
Show Gist options
  • Save rockdrigo/18ef0d0cee7112584bcf to your computer and use it in GitHub Desktop.
Save rockdrigo/18ef0d0cee7112584bcf to your computer and use it in GitHub Desktop.
mag permi.sh
#!/bin/sh
find . -type f -exec chmod 664 {} \;
find . -type d -exec chmod 775 {} \;
find var/ -type f -exec chmod 777 {} \;
find media/ -type f -exec chmod 777 {} \;
find var/ -type d -exec chmod 777 {} \;
find media/ -type d -exec chmod 777 {} \;
chmod 770 includes
chmod 660 includes/config.php
chmod +x cron.sh
chmod +x mage
chmod +x /root/zend_opcache_monitor.sh
echo Be Happy Little Pinguin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment