Thanks Stefan.
Here is a script I adapted, to reset permissions so that Sugar can run on typical shared hosting.
The challenge this code overcomes is that the apache user is different from the shared hosting user's account, so permissions need to be looser for Sugar webserver and php interpreter (running as the apache username) to have permission to read the Sugar PHP source code files, CSS/javascript, and graphic image files (which belong to the customer's shared hosting account username).
Note: This code resets all the SugarCRM PHP source code, CSS, Javascript, and image files, located inside selected SugarCRM subdirectories, according to the recommendation of Clint on this thread:
http://www.sugarcrm.com/forums/f3/in...89/index2.html
You can save this PHP code file to the top folder of your SugarCRM installation.
For example: for company.com with a SugarCRM instance located at: www . company . com / crm (remove spaces), you would upload this PHP code file to the location on your shared server account with the pathname being something like: "/home/(share hosting account username)/public_html/crm/fix-permissions.php".
Once uploaded, to run the PHP script, just go in your browser to the link http : // www . company . com / crm / fix-permissions.php (once again...remove spaces)
The Script will run, and as it runs, it will display a list the files and directories it's fixing the permissions of.
Bookmarks