# Update Mautic manually

**URL:** <https://forum.mautic.org/t/update-mautic-manually/1766>\
**Category:** Product Support\
**Created:** [April 22, 2015, 9:16am UTC](https://forum.mautic.org/t/update-mautic-manually/1766 "2015-04-22T09:16:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [April 22, 2015, 9:16am UTC](https://forum.mautic.org/t/update-mautic-manually/1766/1 "2015-04-22T09:16:34Z")

</div>

Hi guys,  
  
  
  
Is it possible to upgrade Mautic 1.0.2 tot 1.0.3 manually?  
  
  
  
Regards,  
  
  
  
Wim

---

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [April 22, 2015, 9:16am UTC](https://forum.mautic.org/t/update-mautic-manually/1766/2 "2015-04-22T09:16:34Z")

</div>

Hi guys,

Is it possible to upgrade Mautic 1.0.2 tot 1.0.3 manually?

Regards,

Wim

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [April 22, 2015, 11:38am UTC](https://forum.mautic.org/t/update-mautic-manually/1766/3 "2015-04-22T11:38:24Z")

</div>

Hi Wim,

Do you have access to the command line (via ssh)? If so, that’s the better option than a manual overriding of files. To upgrade from the command line you would run the commands:

Use this to find the available updates

```auto
php /path/to/mautic/app/console mautic:update:find -e prod
```

Then this to apply it

```auto
php /path/to/mautic/app/console mautic:update:apply -e prod
```

Thanks!  
Alan

---

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [April 29, 2015, 10:54am UTC](https://forum.mautic.org/t/update-mautic-manually/1766/4 "2015-04-29T10:54:21Z")

</div>

Hey Alan,

I’ve got SSH access. Found the cause.

`PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 10924085 bytes) in /var/www/vhosts/example.com/httpdocs/marketing.example.com/vendor/joomla/http/src/Transport/Curl.php on line 221
example.com@web01roc:~/httpdocs/example.com/app`  
The PHP memory\_limit of the server should be 128M. I’ve asked the provider to check if the server settings are correct.

Wim

---

<div class="post-metadata">

**Author:** ![menolo](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@menolo](https://forum.mautic.org/u/menolo)\
**Post date:** [April 29, 2015, 12:02pm UTC](https://forum.mautic.org/t/update-mautic-manually/1766/5 "2015-04-29T12:02:20Z")

</div>

Command line memory slimit was still set at 64M. They changed it and now the process runs a bit further before throwing an exhausted memory error.

`Extracting zip...
Clearing the cache...
Clearing the cache for the prod environment with debug false
Clearing the cache for the prod environment with debug false
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10 bytes) in /var/www/vhosts/example.com/httpdocs/example.com/app/bootstrap.php.cache on line 2659`

Still, the update seemed to be finished when checking for an update through the command line. Also, the frontend says it’s updated.

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [April 29, 2015, 5:14pm UTC](https://forum.mautic.org/t/update-mautic-manually/1766/6 "2015-04-29T17:14:01Z")

</div>

I would manually delete app/cache/prod just to be sure (it’ll auto rebuild on your first browse to Mautic). It seems that the system is having a hard time maybe deleting all the files. We do have a change coming with 1.1 that should decrease the cache files by hundreds which will likely help that. In the mean time, you may have to manually delete app/cache/prod to keep it from hitting the resource limit errors.

Thanks,  
Alan

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [April 29, 2015, 5:14pm UTC](https://forum.mautic.org/t/update-mautic-manually/1766/7 "2015-04-29T17:14:21Z")

</div>

(That’s only after updates though. You shouldn’t have to do that regularly.)

---

<div class="post-metadata">

**Author:** ![Filipe](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@Filipe](https://forum.mautic.org/u/Filipe)\
**Post date:** [June 8, 2015, 6:45pm UTC](https://forum.mautic.org/t/update-mautic-manually/1766/8 "2015-06-08T18:45:21Z")

</div>

Do i have to do anything with the databse or do I have to update only the files itself?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/update-mautic-manually/1766/9 "2020-02-02T22:59:33Z")

</div>


