Results 1 to 3 of 3

Thread: safe mode, sugar trying to access /var/tmp?

  1. #1
    peterfreeth is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    12

    Default safe mode, sugar trying to access /var/tmp?

    Hi,

    I'm getting lots of errors in Sugar since upgrading to 4.2 and restoring the database but the most pressing at the moment is that I can't upgrade, When I go to the upgrade wizard in admin, I get this error:

    The following upgrades have been installed:

    Warning: unlink(): SAFE MODE Restriction in effect. The script whose uid/gid is 10659/10001 is not allowed to access /var/tmp/7z2v4I owned by uid/gid 2525/0 in /usr/local/psa/home/vhosts/(hostname)/httpdocs/crm/include/utils/file_utils.php on line 66
    Specified directory '' for zip file 'cache/upload//upgrades/patch/stage_two.zip' extraction does not exist.

    If I then upload the 4.2.1a file I get

    Warning: move_uploaded_file(/usr/local/psa/home/vhosts/(hostname)/httpdocs/crm//usr/local/psa/home/vhosts/excellerate.org/httpdocs/crm/cache/upload/SugarSuite-Patch-4[1].2.1a.zip): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/(hostname)/httpdocs/crm/modules/Administration/UpgradeWizard.php on line 84

    Warning: move_uploaded_file(): Unable to move '/tmp/php7z2v4I' to '/usr/local/psa/home/vhosts/(hostname)/httpdocs/crm//usr/local/psa/home/vhosts/excellerate.org/httpdocs/crm/cache/upload/SugarSuite-Patch-4[1].2.1a.zip' in /usr/local/psa/home/vhosts/(hostname)/httpdocs/crm/modules/Administration/UpgradeWizard.php on line 84
    Not valid upload.

    There are a couple of issues here. Firstly, I am running on a proper hosted web service not running Sugar on my own PC so that means I cannot change php.ini. All the other posts on this problem suggest editing php.ini, once again I cannot do that. Previous versions of Sugar ran fine, no errors.

    Secondly, config.php points all the temp directories to somewhere inside the Sugar folder. Yes I know about the security implications but have no choice as var/tmp is not accessible to me. And yet Sugar, according to the above error is still trying to access var/tmp.

    I checked line 66 and config.php, and the tmp_dir is set to (my host path)/crm/tmp/

    The pipeline graph files are being correctly stored in the tmp directory I have configured.

    I have set all folders in the Sugar installation to 777 to overcome any permissions problems, yet there it is.

    So can anyone tell me why Sugar is still trying to get to /var/tmp/ and how I stop it?

    Pete
    Last edited by peterfreeth; 2006-07-28 at 11:44 AM.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Red face Re: safe mode, sugar trying to access /var/tmp?

    I am assuming that you are using a hosted service. If not then you wnat to get php out of "safe_mode" and set your own temp path in the php.ini file. If you are then I would find another service that does not use the php safe mode option. Installing SugarCRM on a "safe_mode" server is a very hard and annoying propisition.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    jerics99 is offline Junior Member
    Join Date
    Sep 2006
    Posts
    1

    Default Re: safe mode, sugar trying to access /var/tmp?

    Is the safe mode off problem an issue from version 4.5, or may we that are using hosted services where switching on is not an option use a previous version of sugarcrm? I have a pretty bad host for our web sites but I am stuck with it for a while, and we need to get the organisation up and running with suger crm since we want to leave salesforce.com.

    Regards,

    Eric

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
  •