public function createConfig()
	{
		
		//common checks
		if(!is_writable(dirname($this->file))){
			throw new tao_install_utils_Exception('Unable to create configuration file. Please set write permission to : '.dirname($this->file));
		}
		if(file_exists($this->file) && !is_writable($this->file)){
			throw new tao_install_utils_Exception('Unable to create the configuration file. Please set the write permissions to : '.$this->file);
		}
		if(!is_readable($this->sample)){
			throw new tao_install_utils_Exception('Unable to read the sample configuration. Please set the read permissions to : '.$this->sample);
		}
		
		if(!copy($this->sample, $this->file)){
			throw new tao_install_utils_Exception('Unable to copy the sample configuration to : '.$this->file);
		}
	}