Search code examples
phplinuxenvoyproxy

Envoy - Permission denied


I'm trying to deploy my project using Envoy. I linked my vagrant to a deploybot user on the server, which works perfectly, but when I try to deploy my project I get these errors

[deploybot@"Server IP"]: PHP Warning:  require(/home/boost/bootstrap/autoload.php): failed to open stream: Permission denied in /home/boost/artisan on line 16 [deploybot@"Server IP"]: PHP Fatal error:  require(): Failed opening required
'/home/boost/bootstrap/autoload.php' (include_path='.:/usr/share/pear:/usr/share                            /php') in /home/boost/artisan on line 16

I've been trying to switch some permissions around, but that didn't seem to work. Any idea on how I can solve this?


Solution

  • Try running these commands. This will make it so the deploybot will be able to read and write in files.

    chown -R deploybot directory
    chmod -R u+rX directory