Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wyred's avatar
Level 2

Using Envoyer with Amazon AMI

I'm using Envoyer to deploy one of my projects to an AWS EC2 server running on AMI.

So I chose to deploy it to /home/ec2-user/www/project_dir but nginx isn't able to run the site because it does not have enough permissions to read the file.

I can't deploy it to /var/www/project_dir because ec2-user doesn't have write permissions to that directory.

I can't find any articles on best practices on deploying on AMI servers so does anyone out there has the same setup as me? How did you setup your deployments, configure file/user permissions?

0 likes
0 replies

Please or to participate in this conversation.