chown -R apache not working in macOS #40764
-
How to give permission to Laravel folders to be written by apache and Laravel. I just install Laravel-8 on my mac so I am trying to run the below commands via Terminal on Mac: *These commands: chmod -R 775 storage/ chmod -R 775 bootstrap/cache worked perfectly but the below commands didn't work: chown -R apache storage/ and chown -R apache bootstrap/cache I keep getting this error "chown: apache: illegal user name". Please, how do I get this issue resolved? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey there ✋🏻 . Basically the Try using just the owner if no group chown -R $USER storage
chown -R $USER bootstrap/cache But I highly recommend you to use the Laravel's default server environment, by running this command: php artisan serve If you have Brew installed in your machine, the best way to prevent and avoid this kind of issues is using Laravel Valet, which is a development environment for macOS. Or if you are using Docker, there is Laravel Sail, a light-weight command-line interface for interacting with Laravel's default Docker development environment. Using any of the options above, prevent and avoid this kind of issues. |
Beta Was this translation helpful? Give feedback.
-
Hey, @icetechy |
Beta Was this translation helpful? Give feedback.
Hey there ✋🏻 .
Basically the
apache
group doesn't exist, you can create it and then run again the command.Try using just the owner if no group
But I highly recommend you to use the Laravel's default server environment, by running this command:
If you have Brew installed in your machine, the best way to prevent and avoid this kind of issues is using Laravel Valet, which is a development environment for macOS.
Or if you are using Docker, there is Laravel Sail, a light-weight command-line interface for interacting with Laravel's default Docker development environment.
Using any of the options above, prevent and avoid th…