Open main menu

Changes

495 bytes added ,  21:28, 14 June 2017
Add example script for fixing perms in drupal sites
</source>
Fix permissions on your Drupal site<source lang="bash">DROOT='/var/www/example.com/www/drupal'USER=gregWEBGROUP=www-datasudo chown -R $USER:$WEBGROUP $DROOT/sudo find $DROOT/ -type d -exec chmod u=rwx,g=rx,o= '{}' \;sudo find $DROOT/ -type f -exec chmod u=rw,g=r,o= '{}' \;sudo find $DROOT/sites -type d -name files -exec chmod ug=rwx,o= '{}' \;for d in "$DROOT/sites/*/files"; do find $d -type d -exec chmod ug=rwx,o= {} \; ; find $d -type f -exec chmod ug=rw,o= {} \; ; done</source>
== Wheel ==
[[File:Bigwheel.jpg|400px|Are you a big wheel?]]
4,558

edits