Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with tmp directory on Win2K


luxio

Recommended Posts

Hi!

I have installed OScommerce-2-2ms2 on Windows2000, but when I browse the main page the following errors appear:

 

Warning: session_start(): open(/tmp\sess_f0e96adc122e8c6629cb22f34003887e, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\oscommerce-2.2ms2\catalog\includes\functions\sessions.php on line 67

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\oscommerce-2.2ms2\catalog\includes\functions\sessions.php:67) in c:\inetpub\wwwroot\oscommerce-2.2ms2\catalog\includes\functions\sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\inetpub\wwwroot\oscommerce-2.2ms2\catalog\includes\functions\sessions.php:67) in c:\inetpub\wwwroot\oscommerce-2.2ms2\catalog\includes\functions\sessions.php on line 67

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

After this, it comes the main OScommerce page.

 

I know that either the tmp directory is missing...or it has something to do with the slash /tmp (which I guess is *nix/linux kind of "pathing") and instead I shoulld change it to \tmp, but the question is where?

 

If I get to the administration module (/admin/index.php) and browse it, these messages appear:

Warning: Unknown(): open(/tmp\sess_78292dcacaf34749f0ac1e66606a1bc1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

 

What is that Unknown on line 0?

 

How can I solve this problem? :blink:

 

Thanks!

Lucio

Link to comment
Share on other sites

Change the last line of both configure.php files to read:

 

define('STORE_SESSIONS', 'mysql');

 

This stores sessions in the database and will remove the warning. On a shared server you should not use files to store session data anyway.

 

Vger

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...