Article ID: 6301, created on May 7, 2009, last review on Apr 25, 2014

  • Applies to:
  • Plesk Sitebuilder 4.x for Linux/Unix


I want to publish site with VPS publishing mode. How to configure publishing settings correctly?


 You may configure using instructions below.

1. On Parallels Plesk Sitebuilder server generate public SSH key under Apache user:

sitebuilder~# sudo -u apache ssh-keygen -t rsa1
Generating public/private rsa1 key pair.
Enter file in which to save the key (/var/www/.ssh/identity):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/www/.ssh/identity.
Your public key has been saved in /var/www/.ssh/
The key fingerprint is:
sitebuilder ~#

2. Copy the key file /var/www/.ssh/ to /home/vzagent0/.ssh/authorized_keys on service container on publishing host.

 Login to Hardware Node where Publishing Container is running and enter Service Container.
Open file /home/vzagent0/.ssh/authorized_keys (with vim) and insert content of new generated file /var/www/.ssh/

3. Run the following command to verify Parallels Plesk Sitebuilder is able to work with Service Container:
sitebuilder~# sudo -u apache /usr/bin/ssh -oPasswordAuthentication=no -oProtocol=1 -lvzagent0 -T -oStrictHostKeyChecking=no -oConnectionAttempts=1
<packet xmlns:xsi="" id="0" priority="0" version="4.0.0">

4. Login to Parallels Plesk Sitebuilder and create new site. Then configure publishing settings in the following way:

Sitebuilder -> Sites -> <site name>  -> Publishing Settings

Publishing mode: VPS
Host: <- IP of Service Container  
Container ID: 125 <- ID or Publishing Container
User: USER <- user which is used by Apache to work in publishing working directory 
Group: GROUP <- group which is used by Apache to work in publishing working directory
Working directory: /var/www/qwerty  <- full directory where the site is published to (publishing directory)    
Web site URL: <- URL of published site

For example if Parallels Plesk Panel is installed on Publishing Container and Sitebuilder site is published to Plesk <domain name>  then publishing settings may look like the following:

Publishing mode: VPS
Container ID: 135
User: <ftp user> <- FTP user of <domain>
Group: psacln 
Working directory: /var/www/vhosts/<domain>/httpdocs/qwerty
Web site URL: http://<domain>/qwerty/

After configuration above publishing via VPS more should be possible.
You may check the location with button Verify Location:

Sitebuilder -> Sites -> <site name> -> Publishing Settings -> Verify Location

ea6a61e571a858aa6019ceb068ea403a fad6dc0c8e983c17ae70a51ac7952cd0 d055be4fdc562a8ecb8e6d0bf419f946 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF