osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-03-2002, 05:53 AM
Lurker
 
Join Date: Dec 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
breag
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-03-2002, 08:34 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 7
neil is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-03-2002, 10:15 PM
Lurker
 
Join Date: Dec 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
breag
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-04-2002, 01:20 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-09-2002, 07:42 AM
Lurker
 
Join Date: Dec 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
breag
Default

Thank's will try it as soon as possible.

best regards Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 12-10-2002, 04:57 AM
Lurker
 
Join Date: Dec 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
breag
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 12-10-2002, 10:58 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 12-10-2002, 11:24 AM
Anonymous
Guest
 
Posts: n/a
Default

Thanks, will check it out.....
best regards Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 12-10-2002, 12:25 PM
Lurker
 
Join Date: Dec 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
breag
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 12-15-2002, 05:33 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Spider Sessions Studio143 osCMax v1.7 Discussion 1 05-14-2005 02:21 PM
Shared SSL - Lost Sessions red_fraggle osCMax v1.7 Discussion 2 03-31-2005 02:19 PM
Help on Sessions error - installation red_fraggle osCMax v1.7 Installation 8 04-28-2004 05:00 PM
cookies and sessions ID setting Dumb_Question osCMax v1.7 Discussion 3 11-16-2003 10:44 PM
Getting info out of the Sessions Table Skidude osCommerce 2.2 Modification Help 0 11-08-2003 07:05 AM


All times are GMT -8. The time now is 11:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax