# Composer install

**URL:** <https://forum.mautic.org/t/composer-install/22973>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [March 9, 2022, 9:03pm UTC](https://forum.mautic.org/t/composer-install/22973 "2022-03-09T21:03:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 9, 2022, 9:03pm UTC](https://forum.mautic.org/t/composer-install/22973/1 "2022-03-09T21:03:04Z")

</div>

**Your software**  
My Mautic version is: 4.1.2  
My PHP version is: 7.4  
My Database type and version is: MariaDB

**Your problem**  
My problem is: first time mautic install via composer.  
I’ve never installed Mautic this way. Used to documentation ]([How to switch to Composer | Mautic](https://docs.mautic.org/en/setup/switch-to-composer)) and everything went pretty smoothly. However, in the last bit you had to update you web configuration to point to the new docroot folder.

I thought the way to do that was to put an .htaccess file in the public\_html folder and point to the docroot in that folder… But now I get a 403 error.  
Any ideas?

Kind regards,

Piet

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [March 9, 2022, 10:15pm UTC](https://forum.mautic.org/t/composer-install/22973/2 "2022-03-09T22:15:20Z")

</div>

When you mentioned pubic\_html in your post, I assume you are using cPanel ?

I am facing similar issue where I had no problem installing Mautic zipped but when I switch to Composer install then I have problems and errors on my cPanel …

Can you check your php error log to see if there are errors in it?

---

<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 10, 2022, 8:01am UTC](https://forum.mautic.org/t/composer-install/22973/3 "2022-03-10T08:01:20Z")

</div>

Are you using self-hosted server ?

If so what it is referring to is your webserver, so what web server are you using apache2 or nignx ?

You would need to update the web server configuration file in apache2 usually found in something like /sites-enabled and in nginx in /etc/nginx/conf.d/mautic.conf file

---

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 10, 2022, 9:08am UTC](https://forum.mautic.org/t/composer-install/22973/4 "2022-03-10T09:08:15Z")

</div>

I’ve got Mautic running on shared hosting.  
So that’s maybe the problem.

How would I proceed next then? Any ideas?

Piet

---

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 10, 2022, 6:10pm UTC](https://forum.mautic.org/t/composer-install/22973/5 "2022-03-10T18:10:17Z")

</div>

Managed to do it, however I still get a 404.  
Some guys at my hosting looked at it and helped, but said there were no files in the docroot folder for a working website (thought it did…Just to make absolutely sure I’ve enclosed a screnshot of the docroot folder).

 ![2022-03-10 (2)_LI](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1f560fafefdcaeb36702192edbf8ee3e6b7ed8d6.jpeg)

---

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 15, 2022, 9:09am UTC](https://forum.mautic.org/t/composer-install/22973/6 "2022-03-15T09:09:53Z")

</div>

Couldn’t get the composer install to work properly. The rootdoc folder is a bit of a pain as well…Went back to 4.1.2 and will wait with updating for a bit 😉

---

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 15, 2022, 9:10am UTC](https://forum.mautic.org/t/composer-install/22973/7 "2022-03-15T09:10:16Z")

</div>

Thanks for the help!
