0

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?

ArtKorchagin
  • 4,461
  • 13
  • 38
  • 58
Joren Polfliet
  • 101
  • 1
  • 7
  • either the user you're running as doesn't have read permissions on `/home/boost/bootstrap/autoload.php`, or it doesn't have execute permissions on the directory it's in, or one of its parents. what does `ls -ld /home/boost/bootstrap/autoload.php /home/boost/bootstrap /home/boost /home` show, and what user are you running as? – Rob G Nov 30 '15 at 14:20
  • I see, it shows permission denied. I'm running the deploybot user on my server. – Joren Polfliet Nov 30 '15 at 20:18
  • need to fix the correct permissions then :) – Rob G Nov 30 '15 at 20:21

1 Answers1

2

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
Nicolas
  • 3,621
  • 14
  • 41
  • 75