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

Where to create /tmp for sessions

This is a discussion on Where to create /tmp for sessions within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hello I just startet installation of Oscommerce (using oscdox docu) everything went fine. When i enter in to the shop ...

      
  1. #1
    Lurker
    Join Date
    Dec 2002
    Posts
    4
    Rep Power
    0


    Default Where to create /tmp for sessions

    Hello
    I just startet installation of Oscommerce (using oscdox docu) everything went fine. When i enter in to the shop i get the following error.....

    Warning: open(/tmp/sess_3d5d57d172a02e0998eae11f7a824acb, O_RDWR) failed: m (2) in includes/functions/sessions.php on line 67

    I found some informarmation here oon the board that the /tmp directory has to be created, but where?

    any help would be appreciated
    Thanks Peter Pichler

  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    Hi,
    I had the same problem. Michael sent this:
    Put it above your catalog dir, so if your apache web tree looks like this:
    Code:

    c:\webroot\
    \apache
    \php
    \mysql
    \websites
    \catalog


    Put the temp dir in c:\webroot . If that doesnt work, try putting it in C:\webroot\websites
    -----------------------
    Hope this helps,
    neil

  3. #3
    Lurker
    Join Date
    Dec 2002
    Posts
    4
    Rep Power
    0


    Default

    Hi Neil

    Thanks for your help, i have to say that the webspace is hostet externally.
    i did create /tmp at
    \www.mywebspace\tmp
    \www.mywebspae\subdir\tmp
    \www.mywebspace\subdir\os_commerce\tmp

    No way, still the same error message.

    Again many thanks for your reply.
    Peter

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Put the /tmp dir ABOVE your public_html dir or www dir.

    See this example:

    Code:
    /home
           /tmp
           /public_html
                          /catalog
    Right now, with your example you have:

    Code:
    /home       
           /public_html
                          /tmp
                          /catalog
    That should fix it...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Lurker
    Join Date
    Dec 2002
    Posts
    4
    Rep Power
    0


    Default

    Thank's will try it as soon as possible.

    best regards Peter

  6. #6
    Lurker
    Join Date
    Dec 2002
    Posts
    4
    Rep Power
    0


    Default tmp directory

    Hi

    I think i got it, actually the /tmp/ directory is defined in the PHP.INI (session.save_path) i talked to our host and the y don't allow to access this directory.
    Is there any possibility to specify in the scripts an other /tmp/ directory?

    Many thanks Peter

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    This is defined in application_top.php. Try changing the path defined in this line (roughly 166):

    Code:
    define('PHP_SESSION_SAVE_PATH', '/tmp');
    I believe you can change it to whatever dir you like, just make sure the path is correct. You may have do disable the
    Code:
    if
    statement for it to work.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  8. #8
    Anonymous
    Guest


    Default

    Thanks, will check it out.....
    best regards Peter

  9. #9
    Lurker
    Join Date
    Dec 2002
    Posts
    4
    Rep Power
    0


    Default tmp directory

    Hi, i did the changes in application_top.php....
    still the same error....
    Warning: Failed to write session data. Please check that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

    I changed both application_top.php \admin\include\ as well as catalog\include with the following

    if (!function_exists('session_start')) {
    define('PHP_SESSION_NAME', 'sID');
    define('PHP_SESSION_SAVE_PATH', '/www.hostname.com/subdir/os_commerce/tmp');

    if i disable the if function i get a parse error??

    As i am not really a PHP crack it is not so easy to understand why it is looking still for the /tmp and not for /www.hostname.com/subdir/os_commerce/tmp

    Thanks and best regards Peter

  10. #10
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Code:
    define('PHP_SESSION_SAVE_PATH', '/www.hostname.com/subdir/os_commerce/tmp');
    This is incorrect. It should not be a URL but a path:

    Code:
    define('PHP_SESSION_SAVE_PATH', '/subdir/os_commerce/tmp');
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 1 of 2 12 LastLast

Similar Threads

  1. Spider Sessions
    By Studio143 in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 05-14-2005, 02:21 PM
  2. Shared SSL - Lost Sessions
    By red_fraggle in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-31-2005, 02:19 PM
  3. Help on Sessions error - installation
    By red_fraggle in forum osCMax v1.7 Installation
    Replies: 8
    Last Post: 04-28-2004, 05:00 PM
  4. cookies and sessions ID setting
    By Dumb_Question in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 11-16-2003, 10:44 PM
  5. Getting info out of the Sessions Table
    By Skidude in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-08-2003, 07:05 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
  •