osCmax v2.5 User Manual
Results 1 to 7 of 7

After installation

This is a discussion on After installation within the osCMax v1.7 Installation forums, part of the osCmax v1.7 Forums category; Hi, I get this message: Warning: session_start(): open(/tmp\sess_73c1858554795b3130cc10582adde104, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\catalog\includes\functions\sess ions.php on ...

      
  1. #1
    Anonymous
    Guest


    Default After installation

    Hi,
    I get this message:

    Warning: session_start(): open(/tmp\sess_73c1858554795b3130cc10582adde104, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\catalog\includes\functions\sess ions.php on line 67

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Inetpub\wwwroot\catalog\includes\functions\sess ions.php:67) in C:\Inetpub\wwwroot\catalog\includes\functions\sess ions.php on line 67

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\catalog\includes\functions\sess ions.php:67) in C:\Inetpub\wwwroot\catalog\includes\functions\sess ions.php on line 67
    Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.


    What should i do?

    Regards

    /ANNA

  2. #2
    osCMax Developer

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


    Default

    Linux: if you have root server access, create the /tmp directory in the main server dir, and make it writeable. If you do not have root access, change the sessions settings in the admin and catalog configure.php files to say 'mysql' and the problem will go away...

    Windows: create a /tmp folder on the C: drive and make it writable. You may have to experiment where to put the tmp dir. Start in c:, and work your way down the webserver directories until it works. Changing the configure.php session setting to 'mysql' will work on windows systems as well...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  3. #3
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    The quickest solution is as Mike pionted out - store session in MySQL....

    The better solution (in a bit more detail)....
    Look in your php.ini to see where your "tmp" directory should be. More than likely c:\tmp or c:\php\tmp. Make sure it exists. THEN MAKE SURE on NT/2000/XP/2003 servers the "IUSR" has R/W/M permission on this directory. Without that set the web server (and thus php) can not use this directory.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  4. #4
    Anonymous
    Guest


    Default

    Hi JPF,

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    upload_tmp_dir = C:\PHP\uploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)

    i have created this folder, and i stil get same message, ther "user", "admin" have modify permission.

    /anna

  5. #5
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    We are talkin about sessions - not uploads.....

    Look for something like:
    session.save_path = C:\PHP\sessiondata
    or
    session.save_path = C:\PHP\tmp
    or
    session.save_path = C:\tmp
    or
    session.save_path = /tmp
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  6. #6
    New Member
    Join Date
    Jan 2004
    Posts
    5
    Rep Power
    0


    Default

    Quickest way I know to locate your OS Commerce php settings (ie what directory session.save_path points to etc) is via entering http://yourserver/catalog/admin/server.info.php (replace yourserver with localhost or your domain name whichever applies) into your browser.

    For your problem look under the heading 'session' in the column Directive you will them be able to find where session.save_path points to on your system. The Local value column has a value that you can set via the OS Commerce admin panel under Configuration-Sessions-Session Directory, click edit and enter say /example (this is just to show you how the value you enter here shows up in your server_info.php file) this will then be the directory which is mapped to the Master value which in my case (on my system) is C:\PHP\sessiondata. You would then as mentioned need to set permissions via your servers settings to enable this directory to be written to.

    I am new to OS commerce and PHP but I think it is better to get your sessions written to a file in a directory rather than writing to the database which is what the mysql setting does by adding mysql as the value to the STORE_SESSIONS constant in the configure.php file

  7. #7
    Anonymous
    Guest


    Default

    Jane,
    The correct url to the server info page is actually http://yourserver/catalog/admin/server_info.php

    Note the underscore instead of a period.

    Hope everything is working out for you now, I'm still having what appears to be one last difficulty, but it's worth the wait.

    Regards,
    Obewanz

Similar Threads

  1. installation
    By tclhost in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 07-28-2005, 05:23 AM
  2. Installation Help Please!
    By BHenderson in forum osCommerce 2.2 Installation Help
    Replies: 5
    Last Post: 01-24-2005, 08:15 PM
  3. OSC-MAX v1.7 Installation
    By Chippy in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 08-11-2004, 12:46 AM
  4. installation help
    By divishow in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 06-02-2004, 11:18 AM
  5. Mod installation
    By aalex in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 01-25-2004, 02:05 PM

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
  •