The following error appears when access the website: PHP Warning: require_once failed to open stream: Permission denied

Created:

2016-11-16 13:09:04 UTC

Modified:

2017-08-08 13:16:13 UTC

0

Was this article helpful?


Have more questions?

Submit a request

The following error appears when access the website: PHP Warning: require_once failed to open stream: Permission denied

Applicable to:

  • Plesk

Symptoms

The following error appears when accessing the website which is not installed from Plesk APS catalog:

PHP Warning:  require_once(C:\\Inetpub\\vhosts\\example.com\\httpdocs): failed to open stream: Permission denied in C:\\Inetpub\\vhosts\\example.com\\httpdocs\\index.php on line 48
PHP Fatal error: require_once(): Failed opening required '' (include_path='.;.\\includes;.\\pear') in C:\\Inetpub\\vhosts\\example.com\\httpdocs\\index.php on line 48

Test file test.php with content:

<?php phpinfo(); ?>

is placed in domain vhost directory C:\\Inetpub\\vhosts\\example.com\\httpdocs\test.php and shows PHP information by address: http://example.com/test.php

Cause

A website is running third-party CMS wich was not installed via Plesk APS.

Resolution

Only applications that were installed via Plesk APS are supported:

Please contact your CMS vendor to resolve the issue on code level.

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