How to fix the page layout problem in SugarCRM
After you install SugarCRM you'll notice that the page layout of the application is all wrong. It may also happen after you upgrade SugarCRM. The style sheets (CSS files) are not used which causes everything on the page to be displayed not in the way it's supposed to be. This is caused by incorrect permissions of the cache folder.
The folder is located in the root SugarCRM directory on your account. For example, if SugarCRM is installed in a folder called sugarcrm in the root public_html directory of your SugarCRM hosting account, the path to it would be public_html/sugarcrm/cache. In fact, the permissions of the cache folder itself might be correct, but some of its subfolders will have incorrect permissions. You have to change the permissions recursively. This means to change the permissions not only of the cache folder but also of all its subfolders. Set the permissions to 755 (rwxr-xr-x). There are a few ways you can do this. One is to use an FTP client. For more information on permissions and how to change them refer to the tutorial on file permissions.
After you install SugarCRM and you change the permissions of the cache folder, you'll probably have to do it again a couple of times. In the process of using and browsing through the SugarCRM application some additional subfolders will be added to the cache folder, and these subfolders might have the wrong permissions. So if you notice any page layout problems just fix the permissions of the cache folder again (recursively).