Parallels Web Presence Builder: cannot publish a site: "Unexpected server behavior"

Refers to:

  • Plesk 12.5 for Linux
  • Web Presence Builder 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Created:

2016-11-16 12:42:11 UTC

Modified:

2016-12-21 19:00:49 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Parallels Web Presence Builder: cannot publish a site: "Unexpected server behavior"

Symptoms

I cannot publish a site with Parallels Web Presence Builder. The following error occurs:

Unexpected server behavior.
Please contact the server administrator.

Cause

Invalid permissions in the publishing directory (where to the site is published). Apache does not have permissions for writing into the directory.

[For Plesk] Enable Plesk backend tools debug tracking and try to publish the site. The following error is shown in the log:

cp: cannot create regular file `/var/www/vhosts/%domain.tld%/httpdocs/css/style.css': Permission denied

Resolution

Verify and fix permissions for the publishing directory.

[For Plesk] . Here are correct permissions for files in virtual host directory of Plesk domain %domain.tld% :

~# /usr/local/psa/bin/domain --info %domain.tld% | egrep 'FTP Login|WWW-Root'
FTP Login: %ftpuser%
--WWW-Root--: /var/www/vhosts/%domain.tld%/httpdocs/
~#
~# ls -l /var/www/vhosts/%domain.tld%/httpdocs/
total 108
-rw-r--r-- 1 %ftpuser% psacln 4579 Dec 5 13:07 index.html
drwxr-xr-x 2 %ftpuser% psacln 4096 Dec 5 13:07 css
drwxr-xr-x 8 %ftpuser% psacln 4096 Dec 4 09:18 attachments

If the permissions are incorrect, fix them with this command:

~# chown -R %ftpuser%:psacln /var/www/vhosts/%domain.tld%/httpdocs/*
~# chmod -R 755 /var/www/vhosts/%domain.tld%/httpdocs/css

Refer to this KB article for changing permissions for Plesk domains in a mass:

How to reset Virtual Host Permissions in Parallels Plesk Panel 11

Additional information

[Troubleshooting] Cannot publish site with Parallels Web Presence Builder: "Unexpected server behavior"

Cannot apply generated templates to site: "Unexpected server behavior"

Cannot launch Parallels Presence Builder: "Unexpected server behavior"

Module "Banner" cannot be added to site: "Unexpected server behavior"

Have more questions? Submit a request
Please sign in to leave a comment.