Setting Joomla Directory Permissions

The main thing that needs to be changed during a Joomla install is the directory permissions. Here is a shot of the install application before fixing the permissions:

administrator/backupsUnwriteable
administrator/componentsUnwriteable
administrator/modulesUnwriteable
administrator/templatesUnwriteable
cacheUnwriteable
componentsUnwriteable
imagesUnwriteable
images/bannersUnwriteable
images/storiesUnwriteable
languageUnwriteable
mambotsUnwriteable
mambots/contentUnwriteable
mambots/editorsUnwriteable
mambots/editors-xtdUnwriteable
mambots/searchUnwriteable
mambots/systemUnwriteable
mediaUnwriteable
modulesUnwriteable
templatesUnwriteable

Here is the sequence of commands to set the permissions for the web server account (apache):

chgrp apache administrator/backups
chgrp apache administrator/components
chgrp apache administrator/modules   
chgrp apache administrator/templates
chgrp apache cache                  
chgrp apache components
chgrp apache images     
chgrp apache images/banners 
chgrp apache images/stories
chgrp apache language
chgrp apache mambots 
chgrp apache mambots/content
chgrp apache mambots/editors
chgrp apache mambots/editors-xtd
chgrp apache mambots/search     
chgrp apache mambots/system
chgrp apache media         
chgrp apache modules
chgrp apache templates
chmod g+w administrator/backups
chmod g+w administrator/components
chmod g+w administrator/modules
chmod g+w administrator/templates
chmod g+w cache                  
chmod g+w components
chmod g+w images    
chmod g+w images/banners
chmod g+w images/stories
chmod g+w language      
chmod g+w mambots 
chmod g+w mambots/content
chmod g+w mambots/editors
chmod g+w mambots/editors-xtd
chmod g+w mambots/search     
chmod g+w mambots/system
chmod g+w media         
chmod g+w modules
chmod g+w templates

Now the installation check looks like this:

administrator/backupsWriteable
administrator/componentsWriteable
administrator/modulesWriteable
administrator/templatesWriteable
cacheWriteable
componentsWriteable
imagesWriteable
images/bannersWriteable
images/storiesWriteable
languageWriteable
mambotsWriteable
mambots/contentWriteable
mambots/editorsWriteable
mambots/editors-xtdWriteable
mambots/searchWriteable
mambots/systemWriteable
mediaWriteable
modulesWriteable
templatesWriteable