Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Writable Session Save Path () Not A Valid Di

  1. #1
    atiche is offline Junior Member
    Join Date
    Aug 2006
    Posts
    4

    Unhappy Writable Session Save Path () Not A Valid Di

    I have searched all through the forums for this fix, but can not find one for my actual instance. I am trying to install SugarCRM opensource on a hosted web server (Windows Server).

    I get this message when trying to complete the install.
    PHP version OK (ver 5.0.3)
    MySQL Database OK
    XML Parsing OK
    cURL Library OK
    Writable SugarCRM Configuration File (config.php) OK
    Writable Custom Directory OK
    Writable Modules Sub-Directories and Files OK
    Writable Data Sub-Directories OK
    Writable Cache Sub-Directories OK
    Writable Session Save Path () Not A Valid Directory
    PHP Safe Mode Turned Off OK
    PHP Allow Call Time Pass Reference Turned On OK
    PHP Memory Limit >= 20M OK (No Limit)


    After checking with the host, they told me the location the install is looking @ is a non-writable directory.

    I also do not have access to their php.ini file and was told it can not be altered because it is a shared environment.

    Am I completely out of luck here or is there another way for me to manually tell the install what directory is available for saving temp session data?

    Thanks--

  2. #2
    richmogd is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    14

    Default Re: Writable Session Save Path () Not A Valid Di

    Hi Attiche,

    There are a couple of possibilities here. First of all, ask your hosting company what they're using to manage sessions. If they're not using file-based sessions, this doesn't actually matter. You can comment out the check for a writable path in the install code and that will allow you to install it. If they are using file-based sessions, i'd say the directory should be writable, so ask them to explain what's going on there.

    Also, find out what web server software they're using. If it's IIS (likely on a Windows machine), I don't have any suggestions, but if they're running Apache, you can use a .htaccess file to specify what the sesion save path is.

    Just a couple of suggestions, I'm not that familiar with Windows hosting, so I may not be 100%, but worth a try.

    Cheers,

    Glenn.

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

    Default Re: Writable Session Save Path () Not A Valid Di

    I think I have the same problem.

    Did you get the install to work?

    If so which files did you edit?

    Thanks

    Frano8

  4. #4
    epi
    epi is offline Junior Member
    Join Date
    Sep 2006
    Posts
    1

    Default Re: Writable Session Save Path () Not A Valid Di

    I had same problem and found one solve for it.
    My problem was that I couldn't add session.save_path to php.ini and couldn't get it work with .htaccess.

    Log in to your server and go to SugarCRM directory. There is file install.php, edit it. Add to third line "ini_set('session.save_path', '/new/path/');". Of course, change /new/path/ to directory where sessions shuold be saved, like /tmp. If you get error message, check that all '- and ;-marks are written and are on the right place.

    Hope this helps. Worked with me

    For developers. It would be great if you could add session.save_path manually and SugarCRM would write it to config.php.

  5. #5
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Writable Session Save Path () Not A Valid Di

    Or they could do something totaly brilliant... when session save path is not set, point it to store them in the cache dir somewhere automatically.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  6. #6
    lucavisi is offline Junior Member
    Join Date
    Oct 2006
    Posts
    1

    Default Re: Writable Session Save Path () Not A Valid Di

    I also have the same problem

    I use a shared server (windows) with no acces to configuration files.
    I tried the
    ini_set('session.save_path', '/new/path/');
    suggestion

    but iy doesn't work for me

    maybe is a differente OS
    or I'm putting this in wrong line
    (on third line I Have many
    /****************etc

    Any suggestion.

    Thanks

  7. #7
    colman is offline Junior Member
    Join Date
    Oct 2005
    Posts
    1

    Thumbs up Re: Writable Session Save Path () Not A Valid Di

    I got the error when I installed on a new machine by copying the C:\php and C:\inetpub\wwwroot\sugarcrm folders directly instead of going through an install. I did that because we had customized some dropdowns and other files, and did the upgrade ritual from 3.51 -> 4.5.

    If you cannot get to the php.ini file because it is in WINDOWS or someplase on a host you cannot get to, the default entry is something like this:

    [Session]
    ; Handler used to store/retrieve data.
    session.save_handler = files

    ; Argument passed to save_handler. In the case of files, this is the path
    ; where data files are stored. Note: Windows users have to change this
    ; variable in order to use PHP's session functions.
    session.save_path = "c:\php\sess_savepath"

    I installed php in C:\php

    So, I created a folder c:\php\sess_savepath and gave the SYSTEM user write privileges on that folder only.
    On Win2003
    In Windows Explorer right click the folder.
    Click Properties or Security/Sharing.
    Click the Security tab.
    Click SYSTEM
    Check Write if not already checked.
    Click OK 4 times.

    If that does not work, try giving the IUSER_MACHINENAME user write privileges on the folder.

    Creating the folder may be enough. Your ISPs Customer Support should be able to at least create the folder if you cannot. If they cannot or will not, change ISPs.

    In the error message you may get another path that it cannot create the file. Create that foldername instead without the big ugly number filename.

    Nick Stein

  8. #8
    rafael.menezes is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    20

    Default Re: Writable Session Save Path () Not A Valid Di

    I made it and it works perfectly.

  9. #9
    lbauta is offline Junior Member
    Join Date
    Oct 2006
    Posts
    1

    Thumbs up Re: Writable Session Save Path () Not A Valid Di

    The following work for me:
    Using: IIS 6.0 with PHP 5.1.6 (CGI) and MS SQL

    PHP installed in C:\php
    i created a folder as tmp (c:\php\tmp)
    I changed the session.save_path = "/tmp" to session.save_path = "c:\php\tmp"
    it is working now. note that i reverse the slash.
    try it.

  10. #10
    Antonio is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    San Francisco
    Posts
    34

    Default Re: Writable Session Save Path () Not A Valid Di

    In OS X, I opened the php.ini file, (located in /usr/local/php516/lib) with Apple's Xcode (BBEdit Lite does well also).

    Search for "session.save_path =" (should be line 929), change it to "session.save_path = "/tmp", and save the file.
    That ought to do it.

Page 1 of 2 12 LastLast

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
  •