Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
Like Tree6Likes

Thread: Messed up CSS after clean install?

  1. #11
    orions empire is offline Junior Member
    Join Date
    Feb 2011
    Posts
    2

    Default Re: Messed up CSS after clean install?

    WoaaaH, this script really fixed all my issues.. Thank you for such a great script.

    OE


    Quote Originally Posted by Chris_C View Post
    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.
    Chris_C likes this.

  2. #12
    Hoosier3D is offline Junior Member
    Join Date
    Dec 2008
    Posts
    2

    Exclamation Re: Messed up CSS after clean install?

    I am so freaking excited!!!! Thank you! This really needs to be part of the installation instructions and the file included in the download!!! Bravo!
    Chris_C likes this.

  3. #13
    spottedhaggis is offline Junior Member
    Join Date
    Nov 2007
    Posts
    3

    Default Re: Messed up CSS after clean install?

    Yup, fixed all my issues as well, well done for putting this together. the only question I have is this.

    I ran the script, all looked perfect. I went to admin and uploaded a replacement logo, looked good. Saved and no logo is appearing in the header. I am assuming if I run the script it will again fix this issue, so the question is do I need to run this script every 5 mins?
    Chris_C likes this.

  4. #14
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: Messed up CSS after clean install?

    Quote Originally Posted by spottedhaggis View Post
    Yup, fixed all my issues as well, well done for putting this together. the only question I have is this.

    I ran the script, all looked perfect. I went to admin and uploaded a replacement logo, looked good. Saved and no logo is appearing in the header. I am assuming if I run the script it will again fix this issue, so the question is do I need to run this script every 5 mins?
    You're right - that early version requires you to run it every few minutes...

    I'm nearly done with "fix-permissions-v3.php" - it's meant to fix the issue permanently.

    I'm attaching "fix-permissions-v3-alpha.php" - it automatically does phases I and II of the fix, and shows you what to do for phase III - you just have to open 2 files and make 2 very small edits.

    Post back and let us know if my script fixed it permanently for you !!!!

    fix-permissions-v3-alpha.php

  5. #15
    jagdecat is offline Junior Member
    Join Date
    Mar 2012
    Posts
    7

    Default Re: Messed up CSS after clean install?

    I signed up just to thank you. You are simply amazing. The code worked beautifully. We had been killing ourselves before for hours and couldn't get the permissions thing right despite trying all recursive codes and changes in PHP.

    So thank you for being a life saver.


    Quote Originally Posted by Chris_C View Post
    Thanks Stefan.

    Here is a script I adapted, to reset permissions so that Sugar can run on typical shared hosting.

    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.
    ....

    The Script will run, and as it runs, it will display a list the files and directories it's fixing the permissions of.
    Chris_C likes this.

  6. #16
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: Messed up CSS after clean install?

    Quote Originally Posted by jagdecat View Post
    I signed up just to thank you. You are simply amazing. The code worked beautifully. We had been killing ourselves before for hours and couldn't get the permissions thing right despite trying all recursive codes and changes in PHP.

    So thank you for being a life saver.
    You're totally welcome, jagdecat. I'm sure you'd do the same for me, given a similar situation.

    Note to mods, this post should probably be a sticky - so more people installing on shared hosting, will get my script faster, and the infamous permissions issues.... become a non-issue... permanently.
    jagdecat likes this.

  7. #17
    istostudios is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Default Re: Messed up CSS after clean install?

    I used Angel's Blog and was able to fix everything but the logo after applying 755 recursively to the cache folder through FileZilla. I saw that someone else was having trouble with their logo after this. Did you ever get it fixed? If so, how? I am running Sugar CE 6.4.4. I have replaced the company_logo.png file in custom/themes/default/images and in include/images. I set the permissions on both of these folders to 755 recursively as well, but no luck displaying the logo. If I try to upload it through the admin section, it shows the logo, but it doesn't upload after hitting save. One more thing, when I go back to the admin section after the failed upload attempt, it tells me my current logo is $mod_strings.LBL_LOGO. Can anyone help on this? I have spent a few hours reading through posts trying to find the answer, so I have done my due diligence. Thanks!

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Clean install of 6.2.1 problems
    By dmgimbut in forum Installation and Upgrade Help
    Replies: 22
    Last Post: 2011-11-18, 05:46 AM
  2. Fresh install, messed up UI layout.
    By alatteri in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2011-02-04, 07:24 PM
  3. Can you do clean install but keep old DB?
    By al3 in forum Installation and Upgrade Help
    Replies: 8
    Last Post: 2010-02-12, 10:25 AM
  4. Replies: 2
    Last Post: 2009-09-11, 04:32 PM
  5. clean install using old DB?
    By janislanka in forum General Discussion
    Replies: 1
    Last Post: 2006-01-10, 07:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •