question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

open_basedir restriction in effect

See original GitHub issue

On stage environment, I can’t import translations, I’m getting this error - message": "file_exists(): open_basedir restriction in effect. File(/var) is not within the allowed path(s): (/var/www/clients/client2/web2/web:/var/www/clients/client2/web2/private:/var/www/clients/client2/web2/tmp:/var/www/cryptosided.com/web:/srv/www/cryptosided.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom)", "exception": "ErrorException", "file": "/var/www/clients/client2/web2/web/vendor/vsch/laravel-translation-manager/src/Classes/PathTemplateResolver.php", "line": 351,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vschcommented, Sep 17, 2018

@MarisV, I updated the code for a logic error and changed the str_starts_with for starts_with, there was also a reversal of arguments to starts with.

Please let me know if this fix works for you so I can update 5.4 and 5.3 branches with the same fix.

1reaction
vschcommented, Sep 13, 2018

@MarisV, I updated all version 5 related branches 2.3, 2.4 and 2.5. Thank you for being patient.

Read more comments on GitHub >

github_iconTop Results From Across the Web

php - open_basedir restriction in effect. File(/) is not within the ...
The open_basedir setting is primarily used to prevent PHP scripts for a particular user from accessing files in another user's account. So usually,...
Read more >
A website hosted in Plesk is not accessible: open_basedir ...
The PHP script is trying to access the folder for which access is not allowed. This restriction is defined by the PHP open_basedir...
Read more >
open_basedir restriction in effect - WordPress.org
The open_basedir is a server configuration, a security measure to disallow file access. The message says that the Polylang_Pro.php file located within not ......
Read more >
How to Fix the WordPress Warning: open_basedir restriction ...
The WordPress system throws the open_basedir restriction error when a user tries to access files and folders that he is not supposed to....
Read more >
WordPress Warning: open_basedir restriction in effect
The WordPress Warning: open_basedir restriction in effect is a security restriction to prevent a user on a webserver to access files and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found