# "There is no existing directory at "/domain.com/site/storage/logs" and it could not be created: Permission denied"

**URL:** https://discourse.roots.io/t/there-is-no-existing-directory-at-domain-com-site-storage-logs-and-it-could-not-be-created-permission-denied/26620
**Category:** radicle
**Created:** 2024-01-30T16:31:05Z
**Posts:** 3

## Post 1 by @abombelli — 2024-01-30T16:31:06Z

Just deployed a radicle theme to the staging server and I’m getting this error:  
`"There is no existing directory at "/domain.com/site/storage/logs" and it could not be created: Permission denied"`  
This is wired, as the folder has 0777  
The error happens in `domain.com/site/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php`  
Any idea? Thanks

---

## Post 2 by @abombelli — 2024-01-30T16:52:11Z

Ok, I found out.  
Had to set site folder to 0777.  
Is this how it should be?

---

## Post 3 by @ben — 2024-01-30T18:18:33Z

`777` is probably too permissive. How are you deploying your site?

Theres a good bit of existing articles/docs you can reference regarding permissions for both WordPress and Laravel sites

Example: [The Right Way to Set Up File Permissions in Laravel – TecAdmin](https://tecadmin.net/laravel-file-permissions/)
