# Landingpages not work - Can't download templates - error ....Failed to open stream: Permission denied

**URL:** <https://forum.mautic.org/t/landingpages-not-work-cant-download-templates-error-failed-to-open-stream-permission-denied/29517>\
**Category:** Product Support\
**Created:** [October 2, 2023, 7:06pm UTC](https://forum.mautic.org/t/landingpages-not-work-cant-download-templates-error-failed-to-open-stream-permission-denied/29517 "2023-10-02T19:06:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)\
**Post date:** [October 2, 2023, 7:06pm UTC](https://forum.mautic.org/t/landingpages-not-work-cant-download-templates-error-failed-to-open-stream-permission-denied/29517/1 "2023-10-02T19:06:14Z")

</div>

**Your software** Ubuntu 22.04  
My Mautic version is: 4.4.10  
My PHP version is: 8.0.30  
My Database type and version is: 10.6

I tried to make a landing page - but it doesn’t work. Blank site. I tried to download templates, but here ist the error message.

`The stream or file "/var/www/html/mautic/app/../var/logs/mautic_prod-2023-10-02.php" could not be opened in append mode: Failed to open stream: Permission denied`

What can i do?

---

<div class="post-metadata">

**Author:** ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)\
**Post date:** [October 3, 2023, 12:11am UTC](https://forum.mautic.org/t/landingpages-not-work-cant-download-templates-error-failed-to-open-stream-permission-denied/29517/2 "2023-10-03T00:11:57Z")

</div>

i found the reason and the solution

Due to an upgrade of my server (i think that was the reason) the permission rights were not set to this:

```auto
chown -R www-data:www-data /var/www/html/mautic
chmod -R 755 /var/www/html/mautic

```

After that i deleted the cache and now it works.

```auto
php /var/www/html/mautic/bin/console cache:clear

```

Greetings, Stefan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [October 4, 2023, 12:12pm UTC](https://forum.mautic.org/t/landingpages-not-work-cant-download-templates-error-failed-to-open-stream-permission-denied/29517/3 "2023-10-04T12:12:38Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
