bennyboyuk Posted April 18, 2008 Posted April 18, 2008 Hi there, I have a few OsCommerce sites that I have done for family members and have come across a real dificulty with this one for some reson with the following error message which many people have had :: Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (d:\users) in d:\users\foxycardsuk\public_html\includes\functions\sessions.php on line 169 Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (d:\users) in d:\users\foxycardsuk\public_html\includes\functions\sessions.php on line 169 I have been through the pages on the forum and learned enough to ensure my servers safe mode is off and I have used phpMyAdmin wo ensure the tmp file has no slashes before or after. However this problem still persists. I imagine it is the same thing but my admin is also blocked I have contacted my server (supanames who have given me the following::: Well, the error on the website says Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (d:\\users) in d:\\users\\foxycardsuk\\public_html\\includes\\functions\\sessions.php on line 169 However the http://foxycards.co.uk/phpinfo.php says session.save_path E:\\PHP\\sessiondata E:\\PHP\\sessiondata Somewhere in your script, you are ignoring the servers session save path and trying to write to a path which is not allowed.You need to find somewhere in your script where this session save path is defined and change it. I have tried changing through phpMyAdmin the 2 references to the tmp file to the above but I still get the same error as above. I have been on this for 2 solid days and am well stuck - I would be sooo grateful to anyone who can help me out!! Thanks Ben
burt Posted April 18, 2008 Posted April 18, 2008 Store sessions in the database. See the bottom of /includes/configure.php
bennyboyuk Posted April 18, 2008 Author Posted April 18, 2008 Store sessions in the database. See the bottom of /includes/configure.php Thanks - I have had a look at that - there is no reference to the tmp file there, but even when I put the E\PHP\storesessions in the '' - it just kicks more errors, am I wacking it in the wrong place??
bennyboyuk Posted April 18, 2008 Author Posted April 18, 2008 define('STORE_SESSIONS', 'mysql'); Hi there cheers again - that is what I have already define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
bennyboyuk Posted April 18, 2008 Author Posted April 18, 2008 sever has told me that sessions have to be saved in the E: path above - can I change OS to use this instead of d:/users/??? Thanks
bennyboyuk Posted April 19, 2008 Author Posted April 19, 2008 Still stuck on this one - anyone with any ideas pleeeeeeze??
BryceJr Posted April 19, 2008 Posted April 19, 2008 Try this. Create a folder at the level of your public_html folder/directory and call it temp_sessions or whatever name you want to call it. If you can't create a folder at your server, create one at your computer and upload it at the level of your public_html folder/directory. Go to your store's admin and go to tools--file manager. Click the folder you created and on top copy the path of that folder. Still in admin, under SESSIONS ---session directory, paste the path to that box.
Guest Posted April 19, 2008 Posted April 19, 2008 Try this.Create a folder at the level of your public_html folder/directory and call it temp_sessions or whatever name you want to call it. If you can't create a folder at your server, create one at your computer and upload it at the level of your public_html folder/directory. Go to your store's admin and go to tools--file manager. Click the folder you created and on top copy the path of that folder. Still in admin, under SESSIONS ---session directory, paste the path to that box. But don't use the admin file manager, use and ftp program or your web hosts control panel.
bennyboyuk Posted April 19, 2008 Author Posted April 19, 2008 But don't use the admin file manager, use and ftp program or your web hosts control panel. Thanks very much for the help guys - it is all sorted - after all that there must have been some kind of problem on the initial instal. I deleted it off the system and re-installed it and then changed the /tmp/ to tmp again and this time it worked - - weird huh???? But once again with out people like you helping us - we would be stuffed!!!! Cheers Ben
Recommended Posts
Archived
This topic is now archived and is closed to further replies.