# How to correct update from 6.0.7

**URL:** <https://forum.mautic.org/t/how-to-correct-update-from-6-0-7/37313>\
**Category:** Mautic 7 Install / Upgrade Support\
**Created:** [February 6, 2026, 10:22am UTC](https://forum.mautic.org/t/how-to-correct-update-from-6-0-7/37313 "2026-02-06T10:22:08Z")\
**Posts on this page:** 2\
**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:** [February 6, 2026, 10:22am UTC](https://forum.mautic.org/t/how-to-correct-update-from-6-0-7/37313/1 "2026-02-06T10:22:08Z")

</div>

My system:  
Ubuntu 24.04 server - Apache - Mautic 8.3.6 normal installation (no composer or anything special).

How is the correct way to update via ssh - normal standard server without any tweaks.

Mautic is here installed: /var/www/html/mautic

The update manual is here:

> **[How to update Mautic — Mautic Documentation 0.1 documentation](https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html)**

User on the system: root, www-data, user01

Can someone confirm that this is correct (or correct, give infos please) and that all rights will set correctly?

In short words:  
Standing in the Mautic directory: /var/www/html/mautic  
Command as user01 for the script but with user: “www-data” prefix, that the rights will set correctly for the update files.

```auto
user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$ sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:find
Version 7.0.0 von Mautic ist zum Download bereit. Weitere Informationen finden Sie hier: https://github.com/mautic/mautic/releases/tag/7.0.0.
Geben Sie 'php bin/console mautic:update:apply' in die Kommandozeile ein, um das Update durchzuführen.
user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$ sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:apply
...
user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$ sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:apply --finish

```

Cache will be deleted by the script - is shown at the install process

Additional info (but normally not needed): If the rights are not correct:  
sudo chown -R www-data:www-data /var/www/html/mautic  
sudo chmod -R 755 /var/www/html/mautic

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [February 6, 2026, 12:17pm UTC](https://forum.mautic.org/t/how-to-correct-update-from-6-0-7/37313/2 "2026-02-06T12:17:37Z")

</div>

I don’t understand why you’re persisting in claiming that "composer” is a server component. It’s not.

_Composer is an application-level dependency manager for the PHP programming language. It’s under the MIT license and can/should be bundled with any app/project that use it for managing app-side libs (and not the server-side PHP librairies)._

ref:

> **[Dependency management - Introduction - Composer](https://getcomposer.org/doc/00-intro.md#dependency-management)**
>
> Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. | A Dependency Manager for PHP

And for the rest, the “tweaks” are literal bad practices. It’s abnormal and non-standard. It’s more of ugly hacks.

I’ll break it down once again:

This is wrong:  
User on the system: root, www-data, user01

You should have a dedicated user for the web app. And that user shouldn’t have the sudo power. (www-data ain’t the proper one - you’re openly and willingly putting your server at risk)

This is also wrong:  
`sudo chmod -R 755 /var/www/html/mautic`

Files are **644** and directories are **755** (it’s universal on all web app, on any Linux distro)

Using the proper user right right away when managing your web app will prevent/avoid the `chmod`

Quick tip on how you may “fix” the permissions: Use the “`find`” tool.

i.e.  
Files permissions:  
`find /var/www/html/mautic -type f | xargs chmod 0644`

Directory permissions:  
`find /var/www/html/mautic -type d | xargs chmod 0755`

Good luck!
