Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Cache errors with a Linux Installation of Zen cart.

Cache errors with a Linux Installation of Zen cart.

Locked

Views: 2,047

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Dec 2006, 9:12 PM
#1
nakhyliah avatar

nakhyliah

New Zenner

Join Date:
Dec 2006
Posts:
5
Plugin Contributions:
0

Cache errors with a Linux Installation of Zen cart.

I've looked all over for the answer to this question, and I'm truly stumped.

My server is using a two folder system for httpdocs/httpsdocs. Which isn't a deal except it requires me to upload zen cart into both folders.

The caching broke (because originally I had built zen on a test server and moved it), so I used the fix cache key.

Sadly, this only worked for the files in httpdocs. If you try to use the admin section, or log in - you're thrown a bunch of errors like the ones below.

**Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/httpd/vhosts/website.com/httpdocs/catalog/cache) is not within the allowed path(s): (/home/httpd/vhosts/website.com/httpsdocs:/tmp) in **/home/httpd/vhosts/website.com/httpsdocs/catalog/includes/functions/sessions.php on line **145

** **Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/website.com/httpsdocs/catalog/includes/functions/sessions.php:145) in ****/home/httpd/vhosts/****website.**com/httpsdocs/catalog/includes/functions/sessions.php on line 102

Since I have to have four config files thanks to my server set up. Where exactly should my cache be? httpdocs or httpsdocs?

What should these four config (httpdoc/httpsdocs - catalog/include and httpdoc/httpsdocs catalog/admin/include) files
say here:

define('DIR_FS_SQL_CACHE','/home/httpd/vhosts/website.com/httpdocs/catalog/cache'); 
```                            ![](https://www.jerrybresser.com/images/spacer.gif)

Because currently they all say the above, and it's still giving me the error on the secure side. 

I'd really appreciate any help that you guys could give me.
20 Dec 2006, 6:25 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Cache errors with a Linux Installation of Zen cart.

Try moving your cache folder up above the httpsdocs and httpdocs folders, perhaps to here:

define('DIR_FS_SQL_CACHE','/home/httpd/vhosts/website.com/cache');

This puts it outside the webroot, and is accessible independently of the SSL mode.

(you'll have to edit both configure.php files and move the actual folder up the two levels)

I also recommend that if you haven't already set your STORE_SESSIONS option to 'db', that you do so. This will help ensure that things conflict less when using your split SSL mode forced upon you by your host.

20 Dec 2006, 7:28 PM
#3
nakhyliah avatar

nakhyliah

New Zenner

Join Date:
Dec 2006
Posts:
5
Plugin Contributions:
0

Re: Cache errors with a Linux Installation of Zen cart.

Thank you for your help. That worked great.

As for your suggestion:

I also recommend that if you haven't already set your STORE_SESSIONS option to 'db', that you do so. This will help ensure that things conflict less when using your split SSL mode forced upon you by your host.I'm sure that this option is in the configuration files somewhere - but which ones and where? Also - if I change it in those files - will I need to change it anywhere else?

Thank you tons,

21 Dec 2006, 3:33 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Cache errors with a Linux Installation of Zen cart.

Nakhyliah:

I'm sure that this option is in the configuration files somewhere - but which ones and where? Also - if I change it in those files - will I need to change it anywhere else?

/includes/configure.php
/admin/includes/configure.php