Zen Cart Logo
Forums / General Questions / "Permission denied" cache error

"Permission denied" cache error

Locked

Views: 4,114

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
6 Mar 2007, 6:13 AM
#1
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

"Permission denied" cache error

I recently made changes to both configuration.php files because I was having the login problems detailed in this post:
http://www.zen-cart.com/forum/showthread.php?t=50534.

(I am already running 1.3.7 which is supposed to have fixed these errors, but I was having them anyway.)

Now that I made those changes, I can log in to the site. However, now I am getting this error:

Warning: session_start() [function.session-start]: open(/home/.ashy/bigmamaslings/bigmamaslings.co.uk/STAGING/cache/sess_nok1h42o2uu0spcl9noldsd003, O_RDWR) failed: Permission denied (13) in /home/.ashy/bigmamaslings/bigmamaslings.co.uk/STAGING/includes/functions/sessions.php on line 102

The cache directory is already set to 777, however it won't allow me to change the permissions on some of the other files in this directory through FTP.

Is the problem that I need to chmod some of these files that I can't change the permissions on? Or is there something else happening?

Thanks!

6 Mar 2007, 8:12 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Permission denied" cache error

in your cache folder delete all but the .htaccess and the index.php file and see if that helps and you might check the .htaccess file for it's contents and or reload the one with the distribution

8 Mar 2007, 5:29 AM
#3
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Re: "Permission denied" cache error

I deleted all the files except those two, and I'm still seeing the error.

My htaccess says:

#prevent directory browsing -- for security
IndexIgnore /

<Limit GET POST PUT> Order Allow,Deny Deny from All </Limit>

Does that look correct?

8 Mar 2007, 5:51 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Permission denied" cache error

ht looks to be the default - -

if you have phpmyadmin in your account - you can select the 'sessions' table (check box) and at the bottom from the drop box select where it usally has "with selected" select "empty" - do this carefully and see if this corrects it.

8 Mar 2007, 7:44 PM
#5
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Re: "Permission denied" cache error

Thanks for the help! I'm still getting this error after I empty the sessions table. I can log in okay, but once I start clicking around to the shopping cart or elsewhere on the site I get the errors. Does that give any hints about why this is happening?

8 Mar 2007, 8:03 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Permission denied" cache error

Look in the configure.php file for where the cache is??/ DB or file...if DB rhen you can do the same to the cache table and empty it via phpmyadmin

8 Mar 2007, 8:10 PM
#7
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Re: "Permission denied" cache error

DB or file..

Because of the initial login problem we were having, I followed the instructions in the thread linked in my first post and changed:

define('STORE_SESSIONS', 'db');

to

define('STORE_SESSIONS', '');

This made me able to log in, but then the sessions errors appeared.

Here's the bottom of my includes/configure.php file. Does any of this look incorrect? Is there any other relevant part of my configure file that I should post?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'db'

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash

define('SQL_CACHE_METHOD', 'file');
define('DIR_FS_SQL_CACHE', '/home/.ashy/bigmamaslings/bigmamaslings.co.uk/STAGING/cache');

8 Mar 2007, 9:31 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Permission denied" cache error

I am not certian what the default handler does??

I usually take the default upon intstall and believe that this is 'DB' and have not had major issues(did not say none)

Did you try DrBytes fix?

8 Mar 2007, 9:38 PM
#9
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Re: "Permission denied" cache error

Did you try DrBytes fix?

Yes, I did option (a) that he suggested in this post:
http://www.zen-cart.com/forum/showpost.php?p=287587&postcount=26

He lists another solution, but says that "Option (b) may or may not be "complete", and has only had preliminary testing."

Is this the solution that you meant?

8 Mar 2007, 9:57 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Permission denied" cache error

Yes - was just trying to get at what and where you have been with this as there are more than one avenue that can be used....

12 Mar 2007, 8:10 PM
#11
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Re: "Permission denied" cache error

Does this error message sound familiar to anyone else? We have not found a solution yet.