SuiteCRM Permissions Script

Hi guys i think this will be a good help for those use that have problems with the Permissions. i found this on internet and maybe you can have a look to create a file to run on the SuiteCRM Installs

#!/bin/bash
 
APACHEUSER='www-data:www-data'
SUGARPATH='/var/www/sugarcrm'
 
find -P $SUGARPATH/ -type d -exec chmod 755 {} \;
find -P $SUGARPATH/ -type f -exec chmod 644 {} \;
find -P $SUGARPATH/ -name *.js -exec chmod 755 {} \;
 
chmod 664 $SUGARPATH/config.php
chmod 664 $SUGARPATH/config_override.php
chmod 664 $SUGARPATH/sugarcrm.log
 
find -P $SUGARPATH/cache -type d -exec chmod 775 {} \;
find -P $SUGARPATH/custom -type d -exec chmod 775 {} \;
find -P $SUGARPATH/data -type d -exec chmod 775 {} \;
find -P $SUGARPATH/modules -type d -exec chmod 775 {} \;
find -P $SUGARPATH/include -type d -exec chmod 775 {} \;
find -P $SUGARPATH/upload -type d -exec chmod 775 {} \;
 
find -P $SUGARPATH/cache -type f -exec chmod 664 {} \;
find -P $SUGARPATH/custom -type f -exec chmod 664 {} \;
find -P $SUGARPATH/data -type f -exec chmod 664 {} \;
find -P $SUGARPATH/modules -type f -exec chmod 664 {} \;
find -P $SUGARPATH/include -type f -exec chmod 664 {} \;
find -P $SUGARPATH/upload -type f -exec chmod 664 {} \;
 
chown -R $APACHEUSER $SUGARPATH

Source: http://shanedowling.com/sugarcrm-permissions-script/

Thanks … we’ll take a look at this

Hi Greg nice to see you again inm Joan Nin from you LinkedIn contact.
I just do the script on via SSH on a new SuiteCRM install (share server) more faster that using the FTP. hope this work the community.

Regars