Forums / Installing on a Linux/Unix Server / error in path (function.session-save-path) after switching servers

error in path (function.session-save-path) after switching servers

Locked

Views: 6,877

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
3 Apr 2008, 6:59 PM
#1
stitch avatar

stitch

New Zenner

Join Date:
Apr 2005
Posts:
18
Plugin Contributions:
0

error in path (function.session-save-path) after switching servers

Hi evrybody, I have this error message on top of the first page after my host as changing the servers, I have modify the paths in the configure.php files but this message still appearing:
"Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/kdchab/public_html/cache) is not within the allowed path(s): (/home2/kdchab:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/kdchab/public_html/includes/functions/sessions.php on line 151"
I have check the 2 configure.php files and my paths are "/home2/kdchab/public_html" so I don't understand where to modify "File(/home/kdchab/public_html/cache)" to reflect the good path.
My site is https://www.stitchalley.com
I hope someone may help with a good idea.
Thanks a lot.

4 Apr 2008, 6:05 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: error in path (function.session-save-path) after switching servers

(/home/kdchab/public_html/cache) is not within the allowed path(s): (/home2/kdchab ...You need to set the correct session directory in your Admin->Configuration->Sessions

Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=100

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Apr 2008, 3:17 PM
#3
stitch avatar

stitch

New Zenner

Join Date:
Apr 2005
Posts:
18
Plugin Contributions:
0

Re: error in path (function.session-save-path) after switching servers

Thanks a lot DrByte, wonderful help, I have downloaded the fix code and run it (delete it also). It works fine .... great.
Thanks again for the fantastic forum and the quick help.

8 Jul 2009, 5:19 PM
#4
mydreams avatar

mydreams

New Zenner

Join Date:
Jul 2009
Posts:
12
Plugin Contributions:
0

Re: error in path (function.session-save-path) after switching servers

Dear DrByte....

i'm still can't fixed this problem.
Can u help me..?

Thanks a lot...

8 Jul 2009, 5:28 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: error in path (function.session-save-path) after switching servers

The FAQ article explains all the steps in detail.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Jul 2009, 6:34 PM
#6
mydreams avatar

mydreams

New Zenner

Join Date:
Jul 2009
Posts:
12
Plugin Contributions:
0

Re: error in path (function.session-save-path) after switching servers

yup, the article explain in detail....
but i missed to read some important guideline...oh my God !

Thanks a lot.....Now, It's work fine.....!!!

3 Feb 2010, 5:12 AM
#7
amirgtr avatar

amirgtr

New Zenner

Join Date:
Mar 2009
Posts:
45
Plugin Contributions:
0

Re: error in path (function.session-save-path) after switching servers

This thread is full of win and awesomeness.

Helped me too. Big time.

16 Feb 2010, 8:37 AM
#8
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

Re: error in path (function.session-save-path) after switching servers

I had same problem and solved it thanks to this topic and DrByte! Cheers:wink:

MY Website
The best of the best: Zen Cart