Answer the question
In order to leave comments, you need to log in
Rights to the directory and user group?
Interested in the question of how to properly install any component from composer so that without errors access to a specific directory. On a system, 2 users are root and a user with root (sudo) permissions, composer is installed as root. How to properly install Laravel via composer, to the /var/www/$domain directory, so that there are no Access denied problems in the directories storage и bootstrap/cache
? Maybe the installation of Laravel needs to be done as the root user or sudo $user?
Answer the question
In order to leave comments, you need to log in
Usually in these directories there should be read rights from the www user - he is the user from whom the web server is running (for example, apache or nginx)
Laravel installation does not matter from whom to do, just then:
$ sudo chown -R www-user:www- user /var/www/$domain
check which usera the web server is running as, $ps aux | grep nginx/apache/http - what is installed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question