# Update from 4.4.10 to 5.0.4 Tipps - Manual is incomplete

**URL:** <https://forum.mautic.org/t/update-from-4-4-10-to-5-0-4-tipps-manual-is-incomplete/31649>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [April 12, 2024, 8:13am UTC](https://forum.mautic.org/t/update-from-4-4-10-to-5-0-4-tipps-manual-is-incomplete/31649 "2024-04-12T08:13:42Z")\
**Posts on this page:** 5\
**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:** [April 12, 2024, 8:13am UTC](https://forum.mautic.org/t/update-from-4-4-10-to-5-0-4-tipps-manual-is-incomplete/31649/1 "2024-04-12T08:13:42Z")

</div>

I found out, how to update successfully from 4.4.10 to 5.0.4  
The first time mautic wasn’t able to use as here reported:

> <https://github.com/mautic/mautic/issues/13638>
>
> I made the update as here standing:
> https://docs.mautic.org/en/5.x/getting\_star…ted/how\_to\_update\_mautic.html
> 
> Installing updates at the command line\[\](https://docs.mautic.org/en/5.x/getting\_started/how\_to\_update\_mautic.html#installing-updates-at-the-command-line)
> 
> If there are updates available, run the following command to apply them:
> 
> php bin/console mautic:update:apply
> 
> Next, a prompt displays asking you to run the command again with this additional argument:
> 
> php bin/console mautic:update:apply --finish
> 
> The result was a total crash. I had to restore my server via image.
> 
> \`root@mautic01:/var/www/html/mautic# php bin/console mautic:update:apply
> Sind Sie sicher, dass Sie Mautic auf die neueste Version aktualisieren möchten? y
> Step 7 \[-----\>----------------------\] Cache löschen
> 
> \<warning\>IMPORTANT: Run the same command again with --finish. For example 'php bin/console mautic:update:apply --finish'\</warning\>
> root@mautic01:/var/www/html/mautic# php bin/console mautic:update:apply --finish
> Step 3 \[============================\] Erfolg! Sie verwenden nun Mautic 5.0.4.\`
> 
> 
> 
> 
> !\[Bildschirmfoto vom 2024-04-11 20-46-48\](https://github.com/mautic/mautic/assets/96744684/a38922e7-36e1-4ffb-a093-9f3b9dfa5a61)
> 
> 
> \### How can we reproduce this issue?
> 
> Update as described above
> 
> \### Relevant log output
> 
> \_No response\_
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct
> 
> \<br /\>\<hr\>
> Care about this issue? Want to get it resolved sooner? If you are a \<a href='https://www.mautic.org/become-a-member-of-mautic'\>member of Mautic\</a\>, you can add some funds to the \<a href='https://opencollective.com/mautic/projects/bounties'\>Bounties Project\</a\> so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs \<a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'\>here.\</a\>

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

is incomplete  
After update in my case these 2 commands were necessary  
chown -R www-data:www-data /var/www/html/mautic  
chmod -R 755 /var/www/html/mautic

The full terminal (Ubuntu 22.04) looked so:  
root@mautic01:/var/www/html/mautic# php bin/console mautic:update:find  
Version 5.0.4 von Mautic ist zum Download bereit. Weitere Informationen finden Sie hier: [Release Mautic Community 5.0.4 · mautic/mautic · GitHub](https://github.com/mautic/mautic/releases/tag/5.0.4).  
To update, you can run ‘php bin/console mautic:update:apply’ from the command line.  
root@mautic01:/var/www/html/mautic# php bin/console mautic:update:apply  
Sind Sie sicher, dass Sie Mautic auf die neueste Version aktualisieren möchten? y  
Step 7 [-----\>----------------------] Cache löschen

IMPORTANT: Run the same command again with --finish. For example ‘php bin/console mautic:update:apply --finish’  
root@mautic01:/var/www/html/mautic# php bin/console mautic:update:apply --finish  
Step 3 [============================] Erfolg! Sie verwenden nun Mautic 5.0.4.

root@mautic01:/var/www/html/mautic# chown -R www-data:www-data /var/www/html/mautic  
root@mautic01:/var/www/html/mautic# chmod -R 755 /var/www/html/mautic

Now 5.0.4 works

I updated to php 8.1.27 and for the first look, it seems to work.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 13, 2024, 8:38am UTC](https://forum.mautic.org/t/update-from-4-4-10-to-5-0-4-tipps-manual-is-incomplete/31649/2 "2024-04-13T08:38:59Z")

</div>

> [@stefan-franz](#):
>
> root@mautic01

Thats the reason: “root@mautic01” you do everything as “root” user. Thats why the files will be owned by root and your web server has no access on those files.

As I just mentioned in the other topic: [Rights problem at installatioin, delete cache, and some strange things over night - #2 by dirk\_s](https://forum.mautic.org/t/rights-problem-at-installatioin-delete-cache-and-some-strange-things-over-night/31661/2) … its the problem how you set up your web server - it has nothing to do with Mautic itself.

---

<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:** [April 13, 2024, 9:04am UTC](https://forum.mautic.org/t/update-from-4-4-10-to-5-0-4-tipps-manual-is-incomplete/31649/3 "2024-04-13T09:04:13Z")

</div>

Can you give me a short “Tutorial” what i have do to correct it? to have a right system?  
Adding a new user? What do i have to do that Mautic works?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 13, 2024, 9:12am UTC](https://forum.mautic.org/t/update-from-4-4-10-to-5-0-4-tipps-manual-is-incomplete/31649/4 "2024-04-13T09:12:45Z")

</div>

@stefan-franz actually preparing a system to be a safe and well running web server is nothing that can be achieved by a simple tutorial, let alone to maintain it and keeping it safe.

If you don’t have the experience and knowledge, I recommend using Plesk or similar management console. There the groups and users and security features are on a better level for public web hosting.

Although I have years of experience with Linux ans web servers I wouldn’t dare to maintain it myself - unless I was a administrator fulltime.

---

<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:** [April 17, 2024, 4:54pm UTC](https://forum.mautic.org/t/update-from-4-4-10-to-5-0-4-tipps-manual-is-incomplete/31649/5 "2024-04-17T16:54:40Z")

</div>

My fault was, that at the very beginning i had set the cronjobs under root.

The right way is, to set the cronjobs under www-data  
sudo crontab -u www-data -e

For my understanding, because of some infos from the forum here, was the root cronjob the problem with rights, so www-data’s rights have been revoked.

Now all worked fine.
