Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

check if the session folder is writeable question


demogirl

Recommended Posts

Posted

Hi Folks,

I have installed many times OSCommerce etc, and on a particular server I am installing it to I am getting the following error:

 

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/usr/local/psa/home/vhosts/domain.com/httpdocs) in /usr/local/psa/home/vhosts/domain.com/httpdocs/devshop/catalog/includes/header.php on line 30

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

 

Please note the following:

 

1. I am on a virtual host.

2. Safe mode is OFF [i am using 4Images successfully of which requires SafeMode be off].

3. I have installed OSC many times over so am proficient enough with installing and configuring.

4. I'm not an expert PHP guru but enough to modify the design.

 

 

Now my question is:

 

Within the "Catalog/includes/header.php" file [Line 27 if u are using something like DreamWeaver].... what are the consequences of setting the following value to "false" ??

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

 

 

I have set it to False and I know that it now gets rid of the above error throughout my site.... which is great... BUT

 

1. Are there any dire consequences of doing this?

 

I have searched the forum and couldn't find anything specific to my query strings used as per the above two lines....

 

 

Any clarification from the community would be appreciated...

 

 

Cheers! & Thanks

 

D

 

=================

Melbourne, Australia

Posted

in the following files

.../includes/configure.php

and

.../admin/includes/configure.php

 

change

'STORE_SESSIONS', ''

to

'STORE_SESSIONS', 'mysql'

in both files near the end of the file.

Archived

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

×
×
  • Create New...