Zen Cart Logo
Forums / General Questions / Alert: Your cache directory does not exist or is not writable

Alert: Your cache directory does not exist or is not writable

Views: 4,040

Results 1 to 12 of 12
24 Feb 2015, 8:40 AM
#1
mckj avatar

mckj

New Zenner

Join Date:
Feb 2015
Location:
Reading
Posts:
6
Plugin Contributions:
0

Alert: Your cache directory does not exist or is not writable

New installation of zen cart 1.5.4 on Windows 2008 r2 - when loading admin, I am getting the below ALERT.

Alert: Your cache directory does not exist or is not writable: C:/inetpub/wwwroot/issue/cache... This must be fixed before the page can load correctly

24 Feb 2015, 9:39 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Alert: Your cache directory does not exist or is not writable

Check the path "C:/inetpub/wwwroot/issue/cache" for a cache file and it's properties

24 Feb 2015, 9:49 AM
#3
mckj avatar

mckj

New Zenner

Join Date:
Feb 2015
Location:
Reading
Posts:
6
Plugin Contributions:
0

Re: Alert: Your cache directory does not exist or is not writable

there are only 2 files in the cache folder "index.php and .htaccess" no cache file

I read in a post there were a fix for this issue in version 1.5.3

24 Feb 2015, 10:06 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Alert: Your cache directory does not exist or is not writable

What are the properties of the cache folder/directory??

24 Feb 2015, 10:43 AM
#5
mckj avatar

mckj

New Zenner

Join Date:
Feb 2015
Location:
Reading
Posts:
6
Plugin Contributions:
0

Re: Alert: Your cache directory does not exist or is not writable

I gave the folder full control for everything - also the IIS_IUSERS havd FC. However I can't change the RO attrib on the properties manu, which applies only to the files.

24 Feb 2015, 11:45 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Alert: Your cache directory does not exist or is not writable

mckj:

I gave the folder full control for everything - also the IIS_IUSERS havd FC. However I can't change the RO attrib on the properties manu, which applies only to the files.

What are the contents of your includes/configure.php file with your DB_PASSWORD obscured?

24 Feb 2015, 2:26 PM
#7
mckj avatar

mckj

New Zenner

Join Date:
Feb 2015
Location:
Reading
Posts:
6
Plugin Contributions:
0

Re: Alert: Your cache directory does not exist or is not writable

include/configure.php

?php
/**

  • @package Configuration Settings circa 1.5.4
  • @copyright Copyright 2003-2014 Zen Cart Development Team
  • @copyright Portions Copyright 2003 osCommerce
  • @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  • File Built by zc_install on 2015-02-22 07:12:37
    */

/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. /
/
**** The 2 files should be kept separate and not used to overwrite each other. ***********/

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://localhost');
define('HTTPS_SERVER', 'https://localhost');
define('HTTP_CATALOG_SERVER', 'http://localhost');
define('HTTPS_CATALOG_SERVER', 'https://localhost');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/issue/');
define('DIR_WS_HTTPS_CATALOG', '/issue/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', 'C:/inetpub/wwwroot/issue/');

//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', 'C:/inetpub/wwwroot/issue/logs');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'root');
define('DB_SERVER_PASSWORD', '******');
define('DB_DATABASE', 'BeeKeeping');

// 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', 'none');
define('DIR_FS_SQL_CACHE', 'C:/inetpub/wwwroot/issue/cache');

// EOF

24 Feb 2015, 3:56 PM
#8
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Alert: Your cache directory does not exist or is not writable

mckj:

I gave the folder full control for everything - also the IIS_IUSERS havd FC. However I can't change the RO attrib on the properties manu, which applies only to the files.
Sounds like you are having difficulty working with permissions and attributes in w2k8 (cannot change RO)... Feel free to elaborate further if this is not correct.

Any reason you are tring to set up / manage a w2k8 server to host Zen Cart (instead of using a LAMP environment or a third party hosted and managed server)?

Does your account have "ownership" for the folder AND contents? Does your account, the user PHP is running under, and the user IIS is running under all have RW permissions for the folder and contents? Are any denied permission (other configured permissions or inherited rules; effective permissions tool can be useful to check this)?

Have you tried starting "cmd.exe" (command line) as a administrator and using "attrib.exe" (view and change file attributes such as RO / hidden)? Sometimes command line is simpler and faster for viewing and adjusting filesystem attributes.

25 Feb 2015, 8:55 PM
#9
mckj avatar

mckj

New Zenner

Join Date:
Feb 2015
Location:
Reading
Posts:
6
Plugin Contributions:
0

Re: Alert: Your cache directory does not exist or is not writable

1 - I gave the folder FC - I am not sure if the error is really related to permission because I sort a previous post for 1.5.3 - and it was fixed with a script.

2 my hobby is beekeeping - and I want to start hosting it soon - so I want to build a web site at home first. I can use Ubuntu Desktop would that be a better OS?

3 I gave the user IIS_IUSERS full permission "there isn't a PHP account"
-----I will have a look at the permission again. However, the reason why I posted this alert is because I saw - the same alert for 1.5.3 - but the resolution is only for 1.5.3.

25 Feb 2015, 11:36 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Alert: Your cache directory does not exist or is not writable

Said you gave permissions to the folder, but there should also be file and sub-folder/file permissions to also set. Folder permissions alone won't allow writing files to the folder.

I set up iis a while ago on a vista system and somewhat recall running into issues. Was the server "disabled" when trying to modify the permissions or did it get restarted after making the changes? (Assuming still having the issue even after the posted changes had been made for FC.)

28 Feb 2015, 12:27 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Alert: Your cache directory does not exist or is not writable

mckj:

I can use Ubuntu Desktop would that be a better OS?
In my experience, definitely. IIS is incredibly unfriendly and unnecessarily complicated.

28 Feb 2015, 2:17 PM
#12
mckj avatar

mckj

New Zenner

Join Date:
Feb 2015
Location:
Reading
Posts:
6
Plugin Contributions:
0

Re: Alert: Your cache directory does not exist or is not writable

just want to thank everyone for their support - but I have now installed Ubuntu 14.04.2 LTS with LAMP - I will give that a try