# 500 error - Permission denied - ps\_files\_cleanup\_dir

**URL:** <https://forum.shopware.com/t/500-error-permission-denied-ps-files-cleanup-dir/87437>\
**Category:** Shopware 6 (English)\
**Created:** [6. Mai 2021 um 08:10 UTC](https://forum.shopware.com/t/500-error-permission-denied-ps-files-cleanup-dir/87437 "2021-05-06T08:10:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DjLance](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DjLance](https://forum.shopware.com/u/DjLance)\
**Post date:** [6. Mai 2021 um 08:10 UTC](https://forum.shopware.com/t/500-error-permission-denied-ps-files-cleanup-dir/87437/1 "2021-05-06T08:10:54Z")

</div>

Hi,

I’m new to Shopware.  
I feel like this error is not related to Shopware but I need to be sure.  
The back-office is working correctly. The front-end returns 500 error …  
I’ve installed a fresh 6.3 Shopware installation with bin/console and composer.

Am I missing something in the .env ?  
In the back-office there is a default saleschannel „storefront“ and the domain is correctly set there.

The given error in the logs is not saying much:

> [06-May-2021 07:28:30 UTC] PHP Fatal error: Uncaught ErrorException: Notice: SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/cpanel/php/sessions/ea-php73) failed: Permission denied (13) in /shopware/vendor/symfon$  
> Stack trace:  
> #0 /shopware/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php(83): Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler-\>gc(1440)  
> #1 [internal function]: Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy-\>gc(1440)  
> #2 /shopware/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(156): session\_start()  
> #3 /shopware/vendor/symfony/http-foundation/Session/Session.php(57): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage-\>start()  
> #4 /shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php(171): Symfony\Component\HttpFoundation\Session\Session-\>start() in /shopware/vendor/symfony/http-foundation/Session/Storage/P$

---

<div class="post-metadata">

**Author:** ![DjLance](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DjLance](https://forum.shopware.com/u/DjLance)\
**Post date:** [7. Mai 2021 um 07:33 UTC](https://forum.shopware.com/t/500-error-permission-denied-ps-files-cleanup-dir/87437/2 "2021-05-07T07:33:31Z")

</div>

It was due to cache.
