|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Posts: n/a
|
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:
Code:
Code:
Code:
I also check powweb and there doesn't seem to be any update that would affect this. Thank you in advanced, ~ J ~ |
|
|
#2 |
|
Thinkin' out loud again
Join Date: Nov 2002
Location: Illinois
Posts: 1,697
Reputation: 188
|
__________________
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!" |
|
|
|
|
#3 |
|
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 ~ |
|
|
#4 |
|
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:
you probably have it empty and it should be mysql. |
|
|
#5 |
|
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 ~ |
|
|
#6 |
|
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. |
|
|
#7 |
|
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 ~ |
|
|
#8 |
|
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.
|
|
|
#9 |
|
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! |
|
|
#10 |
|
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. |
|
|
#11 |
|
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 |
|
|
|
|
#12 |
|
Posts: n/a
|
ahh - always forget that one, thanks Jade, you rock too.
~ J ~ |
![]() |
| Thread Tools | Search this Thread |
|
|