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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| 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
| |||
| |||
| 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
| ||||
| ||||
| Put the /tmp dir ABOVE your public_html dir or www dir. See this example: Code: /home
/tmp
/public_html
/catalog
Code: /home
/public_html
/tmp
/catalog
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| Thank's will try it as soon as possible. best regards Peter |
|
#6
| |||
| |||
| 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
| ||||
| ||||
| This is defined in application_top.php. Try changing the path defined in this line (roughly 166): Code: define('PHP_SESSION_SAVE_PATH', '/tmp');
Code: if
__________________ Michael Sasek osCMax Developer
|
|
#8
| |||
| |||
| Thanks, will check it out..... best regards Peter |
|
#9
| |||
| |||
| 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
| ||||
| ||||
| Code: define('PHP_SESSION_SAVE_PATH', '/www.hostname.com/subdir/os_commerce/tmp');
Code: define('PHP_SESSION_SAVE_PATH', '/subdir/os_commerce/tmp');
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |