Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    5
    Plugin Contributions
    0

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

    PHP Code:
    define('DIR_FS_SQL_CACHE','/home/httpd/vhosts/website.com/httpdocs/catalog/cache'); 


    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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

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

    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.

  3. #3
    Join Date
    Dec 2006
    Posts
    5
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

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

    Quote Originally Posted by Nakhyliah View Post
    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
    .

    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.

 

 

Similar Threads

  1. Problem with Zen cart installation
    By iloman in forum General Questions
    Replies: 5
    Last Post: 20 Dec 2010, 07:57 PM
  2. CKeditor 3.4 Installation FYI with Zen cart 1.3.xxx
    By AlanL in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Sep 2010, 08:38 AM
  3. Replies: 3
    Last Post: 15 Aug 2009, 03:58 AM
  4. zen cart installation on linux servers
    By geniusgenie in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 3 Nov 2008, 12:25 PM

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