# Permissions error when updating Mautic 3.2

**URL:** <https://forum.mautic.org/t/permissions-error-when-updating-mautic-3-2/17257>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [December 2, 2020, 1:47pm UTC](https://forum.mautic.org/t/permissions-error-when-updating-mautic-3-2/17257 "2020-12-02T13:47:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![francourbano](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/francourbano/32/556_2.png) [@francourbano](https://forum.mautic.org/u/francourbano)\
**Post date:** [December 2, 2020, 1:47pm UTC](https://forum.mautic.org/t/permissions-error-when-updating-mautic-3-2/17257/1 "2020-12-02T13:47:40Z")

</div>

**Mautic**  
_My PHP version is_ : 7.2  
_My MySQL/MariaDB version is_ (delete as applicable): MySQL

**Updating/Installing Errors**  
_I am_ (delete as applicable): Updating  
_Upgrading/installing via_ (delete as applicable) : Command Line

_These errors are showing in the installer_ :

Step 4 [----\>-----------------------] Extracting PackagePHP Warning: ZipArchive::extractTo(/opt/bitnami/apps/mautic/htdocs/.htaccess): failed to open stream: Permission denied in /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Update/Step/InstallNewFilesStep.php on line 91

The Mautic update could not complete successfully because of the following error: Could not extract the contents of the ZIP archive to the filesystem.

_These errors are showing in the Mautic log_ :

_These errors are showing in the upgrade\_log.txt file (located in the root of your Mautic instance when an upgrade has been attempted - ensure you remove or redact any sensitive data such as domain names in the file path)_ :

**Your problem**  
_My problem is_ : I want to update Mautic from 3.1.2 to 3.2 and I get the following error.

_Steps I have tried to fix the problem_ : -

---

<div class="post-metadata">

**Author:** ![stefanomarty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefanomarty/32/690_2.png) [@stefanomarty](https://forum.mautic.org/u/stefanomarty)\
**Post date:** [December 2, 2020, 11:51pm UTC](https://forum.mautic.org/t/permissions-error-when-updating-mautic-3-2/17257/2 "2020-12-02T23:51:34Z")

</div>

Looks like you don’t have enough permissions to write in /opt/bitnami/apps/mautic/htdocs/ or to override /opt/bitnami/apps/mautic/htdocs/.htaccess

It could depend on many factors, check folder’s owner and see your own user permissions.

I don’t know the Bitnami setup, maybe they prevent you to override .htaccess?

---

<div class="post-metadata">

**Author:** ![francourbano](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/francourbano/32/556_2.png) [@francourbano](https://forum.mautic.org/u/francourbano)\
**Post date:** [December 7, 2020, 6:34pm UTC](https://forum.mautic.org/t/permissions-error-when-updating-mautic-3-2/17257/3 "2020-12-07T18:34:52Z")

</div>

Solved!

I just managed to update Mautic to 3.2.1

Previously it was updated by a programmer, so I opened the `history` to see how he did it.

The commands is as follows:

```
sudo su -
cd /opt/bitnami/apps/mautic/htdocs
php bin/console mautic:update:apply
php bin/console mautic:update:apply --finish

```

I really don’t know what the problem is and why these commands work.

If anyone has an explanation or a solution to make it work with normal commands again, I appreciate it.

Thank you very much for your help.

Franco.
