Guest Posted August 3, 2005 Share Posted August 3, 2005 Hi, Have looked around but cannot find a solution to my problem, hope you can help :thumbsup: All has been working brilliantly until today,n now I get:- Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/domain/public_html) in /home/domain/public_html/catalog/admin/includes/functions/sessions.php on line 110 I get the same/similar error in the shop & admin My configure.php on both shop & admin are set to:- define('STORE_SESSIONS', 'mysql') Is there any way around this?? Please help, the site is live and the error could be worrying my customers Many thanks in advance Len Link to comment Share on other sites More sharing options...
AlanR Posted August 3, 2005 Share Posted August 3, 2005 Well, if you've set the config files to store sessions in the database ('mysql') you're right this shouldn't be happening. Here's what I'd do to start sorting this out, start with the catalog. Set up a tmp folder within your web space. Create a directory within your webspace, maybe in the catalog folder, you can call it tmp or anything you like. Then go to admin -> sessions and set that directory as the Session Directory. That will probably make the error message go away. Then you can tinker around and try to figure out what's going on. Also check to see if you have a second configure.php file in includes/local without the session storage set to 'mysql' Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2005 Share Posted August 3, 2005 Well, if you've set the config files to store sessions in the database ('mysql') you're right this shouldn't be happening. Here's what I'd do to start sorting this out, start with the catalog. Set up a tmp folder within your web space. Create a directory within your webspace, maybe in the catalog folder, you can call it tmp or anything you like. Then go to admin -> sessions and set that directory as the Session Directory. That will probably make the error message go away. Then you can tinker around and try to figure out what's going on. Also check to see if you have a second configure.php file in includes/local without the session storage set to 'mysql' <{POST_SNAPBACK}> Hi Alan, Thanks for responding so quickly, really appreciate it. Tried creating a folder in /temp and catalog/temp the only thing that changed was the error message:- Warning: session_save_path(): open_basedir restriction in effect. File(/catalog/temp) is not within the allowed path(s): (/home/ideasunluk/public_html) in /home/ideasunluk/public_html/catalog/includes/functions/sessions.php on line 118 Any ideas? len Link to comment Share on other sites More sharing options...
AlanR Posted August 3, 2005 Share Posted August 3, 2005 Hmmm... The open_basedir problem was one that was pretty well documented in the older versions of the Wiki, I've never run into it myself. I just looked in the current Knowledge Base and came up empty. Do some searches on open_basedir here and in the Knowledge Base and see what other people have come up with. It's most likely that your hosting provider has made some change that's caught you by surprise. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2005 Share Posted August 3, 2005 Hmmm... The open_basedir problem was one that was pretty well documented in the older versions of the Wiki, I've never run into it myself. I just looked in the current Knowledge Base and came up empty. Do some searches on open_basedir here and in the Knowledge Base and see what other people have come up with. It's most likely that your hosting provider has made some change that's caught you by surprise. <{POST_SNAPBACK}> Could well be, I gather from them they just upgraded to php 4.4.0 today, sounds suspect to me will have a look around, if I find anything will post it here Many thanks alan len Link to comment Share on other sites More sharing options...
Guest Posted August 5, 2005 Share Posted August 5, 2005 Hi I have had exactly the same problem since yesterday, and have searched the forums too. Eventually I went to look at my webhost's help site, and found the following page: http://www.supanames.co.uk/support/open_basedir.html My hosts are Supanames, and have just introduced new security on PHP systems. It threw me as I couldn't process credit card payments on my site as we normally do. However, having read their article, I have gone back to the OSCommerce Admin for my site, and gone to the Sessions tab. Within this page there is a setting for Session Directory, which was set to just "/tmp". Following the Supanames advice, I have changed this to "/home/gavinorcom/public_html/tmp" and all is now well again! You will need to substitute your own web name for the "gavinorcom" bit, but the rest should work. Cheers Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.