Question

How to set up and verify publishing via FTP in Parallels Plesk Sitebuilder?

Answer

Site publishing settings are configured through the Parallels Plesk Sitebuilder at:

Sites > SITE_ALIAS > Publish Settings

"Publishing mode" is how files are uploaded to the publishing host. It can take place via FTP, VPS, or XCOPY. For details, please see specifying hosts used for publishing sites in the Parallels Plesk Sitebuilder Administrator’s Guide.

  1. Setting up publishing via FTP

    Here is an example of how to configure FTP publishing:

    "Host" is the IP address or hostname where files are uploaded via FTP
    "Port" is the port for the FTP connection
    "Login" is the FTP login for uploading files
    "Password" is the password for FTP login
    "Working directory" is the location under the FTP user's root directory where files are uploaded
    "Web site URL" is the URL used to access the site
    

    For example:

    "Publishing mode" FTP
    "Host" xxx.xxx.xxx.xxx
    "Port" 21
    "Login" ftp_login
    "Password" ftp_password
    "Working directory" /httpdocs
    "Web site URL" http://DOMAIN.TLD
    
  2. Verifying publishing via FTP.

    To test the FTP location is set correctly, log in to the FTP location and upload a test file via FTP using the login credentials specified. Check the file is available via http://domain.tld/test.file.

    Also, check that DOMAIN.TLD resolves to single IP address 123.123.123.123 on the Sitebuilder server:

    ~$ host DOMAIN.TLD
    DOMAIN.TLD has address 123.123.123.123
    ~$
    

    If the domain name is resolved to several IP addresses, this may cause non-permanent problems in verification of the publishing location. Publishing may fail from time to time.

    It is also recommended that you verify the publishing server is configured correctly. For a list of requirements for the publishing host, see Parallels Plesk SiteBuilder — Requirements

    There is a special script which can help you to check if these requirements are met:

    SITEBUILDER_ROOT/resources/publish/check.php
    

    It should be run from the publishing site's directory. SITEBUILDER_ROOT - Sitebuilder installation directory /usr/local/sitebuilder/ (or /opt/sitebuilder/ for Debian/Ubuntu).

    For example, if you are trying to publish to domain DOMAIN.TLD, you need upload this script into the site's directory and run it in your browser as http://DOMAIN.TLD/check.php.

    As an example, you can find correct output below:

    ioncube=ok phpVersion=4.4.3 mbstring=ok zlib=ok session=ok dom=ok domxml_xslt=ok sqlite=2.8.17 sqliteEncoding=UTF-8 gd_png=ok gd_gif=ok gd_jpg=ok gd_wbmp=ok gd=2.0.28 safe_mode=ok mail=ok serverApi=Apache  Handlerfolder_permissions_data=ok
    

NOTE:

  1. Publication works with safe_mode 'on' since Parallels Plesk Sitebuilder version 4.0. If you have version 4.0 or newer, you do not need to worry about safe_mode=failed output.
  2. The parameter folder_permissions_data is for publishing to Windows servers, so if you see that folder_permissions_data=fail, you can ignore this output.

Additional information

[Parallels Plesk Sitebuilder 4.5 for Windows] FTP error during site publishing"

Internal content