private function createHostedFile(CNabuSite $nb_site)
    {
        $file = new CApacheHostedFile($this, $this->nb_server, $nb_site);
        $file->create();
        $path = $this->nb_server->getVirtualHostsPath()
                  . DIRECTORY_SEPARATOR
                  . $nb_site->getBasePath()
                  . NABU_VHOST_CONFIG_FOLDER
                  . DIRECTORY_SEPARATOR
                  . $this->nb_server->getKey()
        ;
        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 createHostedFile(CNabuSite $nb_site)
    {
        $file = new CApacheHostedFile($this, $this->nb_server, $nb_site);
        $file->create();
        $path = $this->nb_server->getVirtualHostsPath()
                  . DIRECTORY_SEPARATOR
                  . $nb_site->getBasePath()
                  . NABU_VHOST_CONFIG_FOLDER
                  . DIRECTORY_SEPARATOR
                  . $this->nb_server->getKey()
        ;
        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 createHostedFile ( CNabuSite $ nb_site ) { $ file = new CApacheHostedFile ( $ this , $ this -> nb_server , $ nb_site ) ; $ file -> create ( ) ; $ path = $ this -> nb_server -> getVirtualHostsPath ( ) . DIRECTORY_SEPARATOR . $ nb_site -> getBasePath ( ) . NABU_VHOST_CONFIG_FOLDER . DIRECTORY_SEPARATOR . $ this -> nb_server -> getKey ( ) ; 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 Hosted per Site file configuration.
@param CNabuSite $nb_site Site to create configuration.
Create Hosted per Site file configuration .