Statamic site in Plesk Obsidian (open_basedir restriction in effect) #5543
-
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ErrorException: file_exists(): open_basedir restriction in effect. File(/var/www/project/resources/views/errors/500.blade.php) is not within the allowed path(s): (/var/www/vhosts/project.com/:/tmp/) in /var/www/vhosts/project.com/httpdocs/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:28
I just uploaded the files & directories, just like I do on other projects. I also set the right permissions on the storage and bootstrap/cache directory. I don't understand why this is not working. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
It tries to load the default error 500 page. I'm not familiar with Plesk but you probably need to set the PS. The copy pasted error contains a link to your server, you might want to remove that. |
Beta Was this translation helpful? Give feedback.
-
Anything in your logs file? |
Beta Was this translation helpful? Give feedback.
-
It tries to show you the error 500 page and it can't access If |
Beta Was this translation helpful? Give feedback.
-
Hello All. when I check the Logs for my website. I have a PHP script with Laravel, the contact us page, the new user registration email, subscribers cant subscribe (Error "401: Your API key may be invalid, or you've attempted to access the wrong datacenter.") and the incoming and outgoing emails from the website do not work Here is the error message I get in the Log file: AH01071: Got error 'PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/var/www/vhosts/MySite.com/:/tmp/) in /var/www/vhosts/MySite.com/httpdocs/vendor/vonage/nexmo-bridge/src/Autoloader.php on line 69', referer: https://mysite.com/ I would appreciate any help and walking me through step by step to get this fixed. I am the Plesk Server Admin and the VPS Server in which I need to change anything in the root directory. Thank you. |
Beta Was this translation helpful? Give feedback.
It tries to show you the error 500 page and it can't access
/var/www/project/resources/views/errors/500.blade.php
to show it.If
/var/www/project/
is your local dev dir it is probably cached somewhere, try clearing all caches, check your.env
file (make sure it has a key) and probably try deleting the vendor folder and running composer again.