← Back to team overview

tsep-dev team mailing list archive

Re: [Question #154739]: IIS 7 Install fails

 

Question #154739 on The Search Engine Project changed:
https://answers.launchpad.net/tsep/+question/154739

    Status: Open => Answered

Geoff proposed the following answer:
Hmm...

Ironically, this is the problem that happened to the other person. Seems
PHP has problems detecting if something is_writable() on windows... Oh
well.

Open cake/libs/cache/file.php

Find the function __active() :

	function __active() {
		if ($this->_init && !is_writable($this->settings['path'])) {
			
			mkdir($this->settings['path']);
			
			if(!is_writable($this->settings['path'])) {
			
				$this->_init = false;
				trigger_error(sprintf(__('%s is not writable', true), $this->settings['path']), E_USER_WARNING);
				return false;
			}
		}
		return true;
	}

Replace the entire thing with

	function __active() {
		return true;
	}

What this is doing is fooling CakePHP into thinking that those
directories are writable, even if PHP says that are not.

-- 
You received this question notification because you are a member of TSEP
Development, which is an answer contact for The Search Engine Project.