Results 1 to 9 of 9

Thread: drwxrwxr-x ?????

  1. #1
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default drwxrwxr-x ?????

    hi there.

    I am no linux guru and am stuck here

    if i go ls -l before upgrade the value of the folder is drwxr-xr-x

    after i upgrade it changes to drwxrwxr-x and then i get html 500 error.

    how do i fix this? and what happens?

    regards

    Paul

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: drwxrwxr-x ?????

    you should spend some time understanding linux file permissions ... it will be time well spent and will save you a lot of effort in the future:

    Go here for more info:

    http://www.elated.com/articles/under...g-permissions/

  3. #3
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: drwxrwxr-x ?????

    hi there.
    I am busy teaching myself linux.

    Got ubuntu. but right now i need a to understand what went wrong and what is happening here.

    Thanks

    Paul

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: drwxrwxr-x ?????

    Quote Originally Posted by salesagility View Post
    you should spend some time understanding linux file permissions ... it will be time well spent and will save you a lot of effort in the future:

    Go here for more info:

    http://www.elated.com/articles/under...g-permissions/
    You could try setting the folder permissions to 777 temporariliy:

    sudo chmod -R 777 path/to/foldername

  5. #5
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: drwxrwxr-x ?????

    nope. This is se linux. Cannot do 777. but 755.

    But i found the error. When upgrading a file gets created .htaccess. I delete this file and everything hunky dorey again.

    Works fine now.
    thanks anyway

  6. #6
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: drwxrwxr-x ?????

    You need that .htaccess file. That stops user of the CRM from typing http:crmurl/sugarlog and viewing the log etc..

    If removing this fixed your problem, you should put it back and fix the line in it that is causing the issue

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  7. #7
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: drwxrwxr-x ?????

    yeah. ok. uhm. ok . uhm yeah. uhm uhm. hmmmmm. uhm. yeah.

    Just joking.
    How do i determine what is invalid. what does not need to be there? etc?

  8. #8
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: drwxrwxr-x ?????

    When you say what valid/whats needs to be there are you referring to the contents of the .htaccess file.

    This is what I have.
    Code:
    # BEGIN SUGARCRM RESTRICTIONS
    RedirectMatch /crm/live/sugarcrm.log.* http://192.168.1.250/crm/live/log_file_restricted.html
    RedirectMatch /crm/live/emailman.log http://192.168.1.250/crm/live/log_file_restricted.html
    RedirectMatch /crm/live/not_imported_(.*).txt http://192.168.1.250/crm/live/log_file_restricted.html
    RedirectMatch /crm/live/XTemplate/(.*)/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/data/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/examples/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/include/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/include/(.*)/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/log4php/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/log4php/(.*)/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/metadata/(.*)/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/modules/(.*)/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/soap/(.*).php http://192.168.1.250/crm/live/index.php
    RedirectMatch /crm/live/emailmandelivery.php http://192.168.1.250/crm/live/index.php
    # END SUGARCRM RESTRICTIONS
    Have you run the correct permissions on the folders etc. Use te following on you folders and it will set the correct permissions

    Code:
    sudo chown -R www-data:www-data /var/www/crm/test/fdc55
    sudo chmod -R 644 /var/www/crm/test/fdc55
    sudo find /var/www/crm/test/fdc55/ -type d -exec chmod 755 \{\} \;          
    sudo chmod -R 664 /var/www/crm/test/fdc55/cache
    sudo find /var/www/crm/test/fdc55/cache/ -type d -exec chmod 775 \{\} \;
    sudo chmod -R 664 /var/www/crm/test/fdc55/custom
    sudo find /var/www/crm/test/fdc55/custom/ -type d -exec chmod 775 \{\} \;
    sudo chmod -R 664 /var/www/crm/test/fdc55/data
    sudo find /var/www/crm/test/fdc55/data/ -type d -exec chmod 775 \{\} \;
    sudo chmod -R 664 /var/www/crm/test/fdc55/modules
    sudo find /var/www/crm/test/fdc55/modules/ -type d -exec chmod 775 \{\} \;
    sudo chmod 664 /var/www/crm/test/fdc55/config.php
    sudo chmod 775 /var/www/crm/test/fdc55
    Replace my path with your path to the crm root dir.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  9. #9
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: drwxrwxr-x ?????

    thanks chriss

Thread Information

Users Browsing this Thread

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

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
  •