private function createClusteredFile(CNabuSite $nb_site)
    {
        $file = new CApacheClusteredFile($this, $this->nb_server, $nb_site);
        $file->create();
        $path = self::NABU_APACHE_ETC_PATH . DIRECTORY_SEPARATOR . $nb_site->getBasePath();

        if (!is_dir($path)) {
            mkdir($path, 0755, true);
        }
        if (!is_dir($path)) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_FOLDER_NOT_FOUND, array($path));
        }
        $filename = $path . DIRECTORY_SEPARATOR . NABU_VHOST_CONFIG_FILENAME;
        $file->exportToFile($filename);
    }
private function createClusteredFile(CNabuSite $nb_site)
    {
        $file = new CApacheClusteredFile($this, $this->nb_server, $nb_site);
        $file->create();
        $path = self::NABU_APACHE_ETC_PATH . DIRECTORY_SEPARATOR . $nb_site->getBasePath();

        if (!is_dir($path)) {
            mkdir($path, 0755, true);
        }
        if (!is_dir($path)) {
            throw new ENabuCoreException(ENabuCoreException::ERROR_FOLDER_NOT_FOUND, array($path));
        }
        $filename = $path . DIRECTORY_SEPARATOR . NABU_VHOST_CONFIG_FILENAME;
        $file->exportToFile($filename);
    }
private function createClusteredFile ( CNabuSite $ nb_site ) { $ file = new CApacheClusteredFile ( $ this , $ this -> nb_server , $ nb_site ) ; $ file -> create ( ) ; $ path = self :: NABU_APACHE_ETC_PATH . DIRECTORY_SEPARATOR . $ nb_site -> getBasePath ( ) ; if ( ! is_dir ( $ path ) ) { mkdir ( $ path , 0755 , true ) ; } if ( ! is_dir ( $ path ) ) { throw new ENabuCoreException ( ENabuCoreException :: ERROR_FOLDER_NOT_FOUND , array ( $ path ) ) ; } $ filename = $ path . DIRECTORY_SEPARATOR . NABU_VHOST_CONFIG_FILENAME ; $ file -> exportToFile ( $ filename ) ; }
Create Clustered per Site file configuration.
@param CNabuSite $nb_site Site to create configuration.
Create Clustered per Site file configuration .