private function build_view()
 {
     $this->view = new FileTemplate('install/server-config.tpl');
     $this->view->put_all(array('MIN_PHP_VERSION' => ServerConfiguration::MIN_PHP_VERSION, 'PHP_VERSION_OK' => $this->server_conf->is_php_compatible(), 'HAS_GD_LIBRARY' => $this->server_conf->has_gd_library()));
     if (!PHPBoostFoldersPermissions::validate()) {
         $this->view->put('ERROR', $this->lang['folders.chmod.error']);
     }
     try {
         $this->view->put('URL_REWRITING_KNOWN', true);
         $this->view->put('URL_REWRITING_AVAILABLE', $this->server_conf->has_url_rewriting());
     } catch (UnsupportedOperationException $ex) {
         $this->view->put('URL_REWRITING_KNOWN', false);
     }
     $this->check_folders_permissions();
     $this->view->put('CONTINUE_FORM', $this->form->display());
 }
 private function check_folders_permissions()
 {
     CLIOutput::writeln("\t" . 'folder permissions...');
     if (!PHPBoostFoldersPermissions::validate()) {
         foreach (PHPBoostFoldersPermissions::get_permissions() as $folder_name => $folder) {
             if (!$folder->is_writable()) {
                 CLIOutput::writeln('Folder ' . $folder_name . ' is not writable. Please change its rights');
             }
         }
         return false;
     }
     return true;
 }