"Permission denied" when I first time try to access Grav dir on localhost

Downloaded grav + admin plugin from official website, unpacked to my Sites folder. Getting this when I try to access my http://localhost/~evo/gravx/

Fatal error: Uncaught exception 'RuntimeException' with message 'Creating directory '/Users/evo/Sites/gravx/cache/compiled/files' failed on error mkdir(): Permission denied' in /Users/evo/Sites/gravx/vendor/rockettheme/toolbox/File/src/File.php:40 0 Stack trace: #0 /Users/evo/Sites/gravx/vendor/rockettheme/toolbox/File/src/File.php(19 5): RocketTheme\Toolbox\File\File->mkdir('/Users/evo/Site...') #1 /Users/evo/Sites/gravx/vendor/rockettheme/toolbox/File/src/File.php(31 6): RocketTheme\Toolbox\File\File->lock() #2 /Users/evo/Sites/gravx/vendor/rockettheme/toolbox/File/src/PhpFile.php (31): RocketTheme\Toolbox\File\File->save(Array) #3 /Users/evo/Sites/gravx/system/src/Grav/Common/File/CompiledFile.php(67 ): RocketTheme\Toolbox\File\PhpFile->save(Array) #4 /Users/evo/Sites/gravx/system/src/Grav/Common/Config/Setup.php(163): Grav\Common\File\CompiledYamlFile->content() #5 /Users/evo/Sites/gravx/system/src/Grav/Common/Gra v.php(213): Grav\Common\Config\Setup->init() #6 /Users/evo/Sites/gravx/index.php(38): Grav\Common\Grav->process in /Users/evo/Sites/gravx/vendor/rockettheme/toolbox/File/src/File.php on line 400

I tried running this bash script I found and modified:

#!/bin/sh
chown evo:staff .
chown -R evo:staff *
find . -type f ! -path "./bin/" | xargs chmod 664
find . -type f -path "./bin/" | xargs chmod 775
find . -type d | xargs chmod 775
find . -type d | xargs chmod +s
umask 0002

…but this doesn’t help! Permission error is still there.

Help!

My file permissions:

drwxrwxr-x@ 21 evo  staff   714B Apr 27 09:07 .
drwxr-xr-x   5 evo  staff   170B Jun  4 11:13 ..
-rw-rw-r--@  1 evo  staff   2.6K Apr 27 09:07 .htaccess
-rw-rw-r--@  1 evo  staff    46K Apr 27 09:07 CHANGELOG.md
-rw-rw-r--@  1 evo  staff   6.0K Apr 27 09:07 CONTRIBUTING.md
-rw-rw-r--@  1 evo  staff   1.0K Apr 27 09:07 LICENSE.txt
-rw-rw-r--@  1 evo  staff   6.1K Apr 27 09:07 README.md
drwxrwxr-x@  3 evo  staff   102B Apr 27 09:07 assets
drwxrwxr-x@  3 evo  staff   102B Apr 27 09:07 backup
drwxrwxr-x@  6 evo  staff   204B Apr 27 09:07 bin
drwxrwxr-x@  3 evo  staff   102B Apr 27 09:07 cache
-rw-rw-r--@  1 evo  staff   1.6K Apr 27 09:07 composer.json
-rw-rw-r--@  1 evo  staff    91K Apr 27 09:07 composer.lock
drwxrwxr-x@  3 evo  staff   102B Apr 27 09:07 images
-rw-rw-r--@  1 evo  staff   1.1K Apr 27 09:07 index.php
drwxrwxr-x@  3 evo  staff   102B Apr 27 09:07 logs
-rw-rw-r--@  1 evo  staff   197B Apr 27 09:07 robots.txt 
drwxrwxr-x@  9 evo  staff   306B Apr 27 09:07 system
drwxrwxr-x@  8 evo  staff   272B Apr 27 09:07 user
drwxrwxr-x@ 18 evo  staff   612B Apr 27 09:07 vendor
drwxrwxr-x@  7 evo  staff   238B Apr 27 09:07 webserver-configs

Check the permissions inside the cache folder.

Missed your answer, sorry. I did something else instead. I run this in ~/Sites directory:

sudo chmod -R a+w gravx

And now I can see Grav “Welcome” screen asking me to create admin account :slight_smile: