Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default "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!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default 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?

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default 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. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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?
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default 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/showpo...7&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?

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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....
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. permission denied error
    By Muzz in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 5 May 2010, 11:59 PM
  2. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  3. Replies: 1
    Last Post: 7 Mar 2008, 06:32 PM
  4. "File" or "Database" cache - how can i tell
    By pwoens in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2008, 03:41 AM
  5. Can't Access Admin Page: "Failed to open stream/Permission Denied"
    By brklynguy in forum Basic Configuration
    Replies: 1
    Last Post: 21 Dec 2006, 04:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR