# Composer upgrade Docs, need some work

**URL:** <https://forum.mautic.org/t/composer-upgrade-docs-need-some-work/22950>\
**Category:** Documentation\
**Created:** [March 8, 2022, 12:52am UTC](https://forum.mautic.org/t/composer-upgrade-docs-need-some-work/22950 "2022-03-08T00:52:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdwild](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rdwild/32/666_2.png) [@rdwild](https://forum.mautic.org/u/rdwild)\
**Post date:** [March 8, 2022, 12:52am UTC](https://forum.mautic.org/t/composer-upgrade-docs-need-some-work/22950/1 "2022-03-08T00:52:55Z")

</div>

> **[How to switch to Composer](https://docs.mautic.org/en/setup/switch-to-composer)**
>
> . Up until Mautic 4, users could download Mautic as a ZIP file and install it on any PHP server. However, many users were running into installation and update errors, many of which caused considerable frustration and in some cases, significant...

The switch to composer docs really needs some work. I see lots of copy icons but the copied text is not complete so you can’t just copy and paste into a terminal windows in order to do the upgrade.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [March 8, 2022, 9:06am UTC](https://forum.mautic.org/t/composer-upgrade-docs-need-some-work/22950/2 "2022-03-08T09:06:08Z")

</div>

I have also bought up in the slack channel the local.php file needs to be updated.  
With the new installation/upgrade with composer there is now a docroot directory added where Mautic and all it’s files reside.

So would all directory paths need to be updated to reflect /mautic/docroot now ? and also cronjob need to be updated as well.

My understanding from @silavapi is this is for security reasons.

I have been struggling with composer for a while now and I think there are a few dependency issues that require a little technical knowledge to overcome (thankfully I was able to resolve all these and have been documented in slack channel)

---

<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:** [March 8, 2022, 1:04pm UTC](https://forum.mautic.org/t/composer-upgrade-docs-need-some-work/22950/3 "2022-03-08T13:04:16Z")

</div>

Hi folks!

Please feel free to edit the page with the link at the bottom of the page. I also have a pending PR to be reviewed:

> <https://github.com/mautic/mautic-documentation/pull/303>
>
> We added this in the blog post but it was missing in the docs - also added the d…ocs category to make the GitHub link show and navigation work.

---

<div class="post-metadata">

**Author:** ![rdwild](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rdwild/32/666_2.png) [@rdwild](https://forum.mautic.org/u/rdwild)\
**Post date:** [March 8, 2022, 4:15pm UTC](https://forum.mautic.org/t/composer-upgrade-docs-need-some-work/22950/4 "2022-03-08T16:15:11Z")

</div>

I guess the other question I have is why a change to rootdoc instead of the original path?
