Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newbie needing installation help with open_basedir error


webolutiondesigns

Recommended Posts

Posted

I just installed osCommerce for the first time. Everything seemed to go flawlessly, but now I am receiving the following error...

 

 

PHP Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (D:\home\agatesandcoins.com\wwwroot) in D:\home\agatesandcoins.com\wwwroot\store\includes\functions\sessions.php on line 169

 

Anyone know why I am getting this error?

 

Thanks,

 

~Clay

Posted

Somewhere in the configuration it says to use /tmp for various temporary file storage tasks. Your server is configured to bar your access to /tmp (a not uncommon situation). Since you're on a Windows server (IIS), that directory probably doesn't even exist. Some possible solutions are

  1. Ask your host about turning off open_basedir (may still leave the problem of no /tmp).
     
  2. Find the definition that uses /tmp and change it to some other absolute address (such as D:\home\<your account>\wwwroot\tmp) and create that directory.
     
  3. Find the definition that uses /tmp and change it to just tmp. You will need to find the (hopefully just one) parent directory for tmp and create a tmp under it.

I can't get to my code right now to tell you where /tmp is being used, but you should be able to search for it. Check both the configure.php files, to start with.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...