Results 1 to 7 of 7

Thread: Ubuntu File permissions

  1. #1
    mbert9 is offline Member
    Join Date
    Aug 2007
    Posts
    6

    Default Ubuntu File permissions

    SugarCE 5.0a
    Install
    Ubuntu 6.06.2 LTS Server
    PHP 5.1.2
    Apache 2.0.55
    MySQL 5.0.22

    Problems:
    1. Cannot upload new logo - no error is reported but logo is not updated.
    - I have verified that the logo is correct size and format, and tried various formats with same result
    2. Cannot import contacts - "File was not uploaded successfully. It may be that the 'upload_max_filesize' setting in your php.ini file is set to a small number"
    - All php settings have been modified as specified in the installation instructions
    3. When "Display stack trace of errors" is enabled numerous error messages appear in the system, usually indicating and "Undefined Index"
    - Because of the first two problems, i suspect that this is also related to file permissions....

    Steps taken:
    1. chown all files to www-data:www-data
    2. chmod all files to 777
    Result: No change
    3. I then followed the file permission instructions in the wiki exactly, directory by directory
    Result: No change

    Any ideas?

  2. #2
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: Ubuntu File permissions

    Quote Originally Posted by mbert9
    SugarCE 5.0a
    Install
    Ubuntu 6.06.2 LTS Server
    PHP 5.1.2
    Apache 2.0.55
    MySQL 5.0.22

    Problems:
    1. Cannot upload new logo - no error is reported but logo is not updated.
    - I have verified that the logo is correct size and format, and tried various formats with same result
    2. Cannot import contacts - "File was not uploaded successfully. It may be that the 'upload_max_filesize' setting in your php.ini file is set to a small number"
    - All php settings have been modified as specified in the installation instructions
    3. When "Display stack trace of errors" is enabled numerous error messages appear in the system, usually indicating and "Undefined Index"
    - Because of the first two problems, i suspect that this is also related to file permissions....

    Steps taken:
    1. chown all files to www-data:www-data
    2. chmod all files to 777
    Result: No change
    3. I then followed the file permission instructions in the wiki exactly, directory by directory
    Result: No change

    Any ideas?
    For problems 2 and 3, if you installed as Admin and chmodded 777, I have no clue.
    For problem 1, try deleting folder <sugar-root>\cache...
    What do you think the cookie monster eats ?

  3. #3
    netron is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    85

    Default Re: Ubuntu File permissions

    check your php.ini to see if file uploads are allowed.

    usually they get uploaded temporarily to /tmp

    i hang out on the IRC channel if you want to ask more questions.

    irc.freenode.net

    #sugarcrm channel

  4. #4
    mbert9 is offline Member
    Join Date
    Aug 2007
    Posts
    6

    Default Re: Ubuntu File permissions

    Still no luck...this is what I tried.

    Checked php.ini:
    -uploads were on
    -saw an error in my open_basedir, so I tired it corrected as well as not specified

    Reset file permissions:
    -chmod -R 777 ./ from sugar dir

    Deleted Cache:
    -tried this first and then after each additional change I made, as well I completely restarted the server in between changes just to make sure everything cleared

  5. #5
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: Ubuntu File permissions

    Hi again.

    About the logo issue, try a manual substitution of the logo file.
    The standard Sugar logo is inside this path:
    <sugar-root>/themes/<theme-name>/images/company_logo.png
    Each theme has its own logo, so if you want to use the same logo with all theme, change it in every <theme-name>/images/ folder.
    What do you think the cookie monster eats ?

  6. #6
    mbert9 is offline Member
    Join Date
    Aug 2007
    Posts
    6

    Default Re: Ubuntu File permissions

    Finally had a chance to go at it again today and discoverd somehow that my logo had taken during my last attempt, but now when I try to change it again it doesn't seem to work. I am going to shut everything down and restart and see if anything has changed.

    I seemed to have solved the contacts importing problem - there was now import or upload directory in my /cache dirctory. After creating them and giving them the appropriate rights I was able upload a file and import some contacts.

  7. #7
    mbert9 is offline Member
    Join Date
    Aug 2007
    Posts
    6

    Default Re: Ubuntu File permissions

    Ok, atter I started to have problems wiht applying the update patch I reverted back to my original image of my installation that I had at the start of this post.

    The only thing I did after that was remove the open_basdir directive in the php.ini file.

    Now everythign appears to be working (though my import does not complete, but I beleive this is an unrelated problem from other posts I have seen)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. UPGRADE 4.5.0h to 4.5.1: UpgradeWizard - ERROR: no file uploaded!
    By creaware in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-02-13, 12:24 AM
  2. Upgrade Wizard link returns a blank page
    By rmichaut in forum Help
    Replies: 9
    Last Post: 2006-10-30, 07:30 PM
  3. Replies: 2
    Last Post: 2006-04-18, 02:47 PM
  4. Replies: 3
    Last Post: 2006-02-17, 05:12 PM
  5. PATCH: HTML Emails and Templates
    By funkypenguin in forum Downloads
    Replies: 2
    Last Post: 2005-05-31, 10:14 AM

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
  •