Cannot publish site: “failed to open stream: Permission denied”

Created:

2016-11-16 12:52:14 UTC

Modified:

2017-04-24 11:22:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot publish site: “failed to open stream: Permission denied”

Applicable to:

  • Web Presence Builder 11.1 for Linux
  • Web Presence Builder 12.0 for Linux
  • Web Presence Builder 11.5 for Linux

Unable to publish site, the following error is shown in the log:

/usr/local/sb/tmp/sitebuilder.log
--->8---
2013-09-26T17:00:47+02:00 [DEBUG] /JsonApi/ Publication process started.
The site UUID: bcc2c883-88ee-2dad-e5c9-75022b2dfc04
The publication target: xcopy://VHOST_DIR/DOMAIN.TLD
The publication URL: http://selenorenburg.com 91.204.25.4 https://inbuilder24.com/Editor Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
2013-09-26T17:00:47+02:00 [EMERG] /JsonApi/ Base_SyntaxException: PHP Warning : copy(/VHOST_DIR/DOMAIN.TLD/css/navigation-8e2f4b7a-4183-9fe0-20c8-a2becefdffd8.css)
[<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
file: /usr/local/sb/include/Base/Utils/File.php
line: 211
--->8---

Where /VHOST_DIR/DOMAIN.TLD is virtual host directory of the domain where to the site it published.

Cause

Incorrect ownership of domain's virtual host directory: /VHOST_DIR/DOMAIN.TLD

Resolution

Fix permissions for directory /VHOST_DIR/DOMAIN.TLD and all files/directories inside - they should be readable and writable by apache user.

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