PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 12-28-04, 05:30 PM   #1
jwiskema
 
Posts: n/a
Exclamation session errors - without changing site

I have not touch this site in 2 weeks and neither has anyone else. And I am getting session errors...

I was using a directory called temp (which has a CHMOD of 777) and it is now looking for a directory called tmp (which I created and set permission to 777) and that did not solve the problem.

Code:
Warning: session_start(): open(/tmp/sess_779d50773a45471f71de67560203a233, O_RDWR) failed: Permission denied (13) in /www/c/controlsyslabs/htdocs/oscommerce/catalog/includes/functions/sessions.php on line 67

Code:
Warning: I am not able to write to the sessions directory: /tmp. Sessions will not work until the right user permissions are set.

Code:
Warning: session_write_close(): open(/tmp/sess_779d50773a45471f71de67560203a233, O_RDWR) failed: Permission denied (13) in /www/c/controlsyslabs/htdocs/oscommerce/catalog/includes/functions/sessions.php on line 106

Code:
Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /www/c/controlsyslabs/htdocs/oscommerce/catalog/includes/functions/sessions.php on line 106

I also check powweb and there doesn't seem to be any update that would affect this.

Thank you in advanced,
~ J ~
 
Old 12-28-04, 06:41 PM   #2
Builder
Thinkin' out loud again
 
Join Date: Nov 2002
Location: Illinois
Posts: 1,697
Reputation: 188
Does this announcement:
http://forum.powweb.com/showthread.php?t=44687
affect that?

Kevin
__________________
A good friend will come and bail you out of jail...
but a true friend will be sitting next to you saying,
"Damn... that was fun!"
Builder is offline  
Old 12-28-04, 06:55 PM   #3
jwiskema
 
Posts: n/a
my session

The error at the bottom says that that save path is "session.save_path is correct (/tmp) " but in the php.ini file it is /www/c/controlsyslabs/htdocs/sessions.

How & where is it being set to tmp?

Thanks,
~ J ~
 
Old 12-28-04, 08:48 PM   #4
natural
 
Posts: n/a
In the /includes/configure.php file you should set the sessions to be saved in mysql instead of a file.

it is an entry like this
PHP Code:
define('STORE_SESSIONS''mysql'); // leave empty '' for default handler or set to 'mysql' 

you probably have it empty and it should be mysql.
 
Old 12-29-04, 12:11 PM   #5
jwiskema
 
Posts: n/a
I did that and still the same errors, it seems that no matter what changes I make it doesn't effect it.

I don't think my php.ini file is being used, when I made changes to it they didn't seem to take effect.

Any ideas?

Thanks,
~ J ~
 
Old 12-29-04, 01:16 PM   #6
natural
 
Posts: n/a
php.ini has nothing to do with the proper functionality of oscommerce. I run a few oscommerce stores on Powweb and I don't have a custom php.ini file.

To make the changes to includes/configure.php you need to chmod it to let's say 755, then make the changes and chmod it back to 400.

How to chmod the file is explained in the sticky thread by Jade.

All you have to do is change the session to be written to mysql and not a file and all will be good.
 
Old 12-29-04, 02:36 PM   #7
jwiskema
 
Posts: n/a
I changed the configure.php where it says:

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Putting in the 'mysql' and it is still causing errors, I think I am going to comment out the session stuff (where I am getting errors), the site is being used as a catalog not an e-commerce site so hopefully that will help.

Thanks,
~ J ~
 
Old 12-29-04, 02:47 PM   #8
jwiskema
 
Posts: n/a
I changed the CHMOD on the configure.php to 400 and I am just getting an error that says the config is writable.
 
Old 12-29-04, 02:52 PM   #9
jwiskema
 
Posts: n/a
For some reason when I CHMOD through ws_ftp it was not sticking or something, so what I did instead is used the protect.php file: (<?php
chmod('includes/configure.php', 0444);
?>)

uploaded that and it worked. Thank you very much, errors are gone it must have been the 'mysql' in the config, I just needed to get the permission to stick.

You rock!
 
Old 12-29-04, 03:01 PM   #10
natural
 
Posts: n/a
This is correct. You can't chmod below 600 (I think) through ftp, but you can through a php script.

Glad it worked out.
 
Old 12-29-04, 04:19 PM   #11
Jade Dragon
 
Join Date: Sep 2002
Location: Eä, Realm of Arda, Land of Middle-earth.
Posts: 2,338
Reputation: 30
Also there are two configure.php files to change

/includes/configure.php and /admin/includes/configure.php

=)
Jade
Jade Dragon is offline  
Old 12-29-04, 04:21 PM   #12
jwiskema
 
Posts: n/a
ahh - always forget that one, thanks Jade, you rock too.

~ J ~
 
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:03 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.