Setting up and Configuring LAMP Development Stack

Following are a few notes for what I needed to do to properly setup my development system.

After restoring all my website DocumentRoots I ran the following commands to fix permissions.

cd /path_to_drupal_installation
sudo chown -R twooten:www-data .
find . -type d -exec chmod u=rwx,g=rx,o= {} \;
find . -type f -exec chmod u=rw,g=r,o= {} \;

To Fix Files:
cd /path_to_drupal_installation/sites
find . -type d -name files -exec chmod ug=rwx,o= '{}' \;
for d in sites/*/files
do
   find $d -type d -exec chmod ug=rwx,o= {} \;
   find $d -type f -exec chmod ug=rw,o= {} \;
done

The above for loop can be run on one line:
for d in sites/*/files; do find $d -type d -exec chmod ug=rwx,o= {} \;; find $d -type f -exec chmod ug=rw,o= {} \;; done

Help:
http://groups.drupal.org/node/6266
http://drupal.org/node/244924

Contact Me

Feel free to contact me.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.