Post by JNeuhoff » Mon Mar 24, 2008 3:02 am

One of of clients uses shared webhosting on which I installed OpenCart 0.7.7, and when I tested it the error message

Error: Could not write to cache directory!

came up in locator.php, after the line:

Code: Select all

	function createCache() {
    	if (!is_writable(DIR_CACHE)) {
      		exit('Error: Could not write to cache directory!');
    	}
			
		require_once(DIR_LIBRARY . 'cache/cache.php');
		
		return new Cache();
	}
The PHP scripts are running under Apache's general user/group 'nobody', whereis our cache directory has user/group of our own account, to keep it safe. I don't want to give our cache-directory write-access to user/group 'nobody'. Though OpenCart would work it would be a high security risk.

Has anybody had a similar problem and found a solution to this?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 2 guests