# New installation of Mautic 5.10 with Composer in Debian 12

**URL:** <https://forum.mautic.org/t/new-installation-of-mautic-5-10-with-composer-in-debian-12/33021>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [August 5, 2024, 12:03pm UTC](https://forum.mautic.org/t/new-installation-of-mautic-5-10-with-composer-in-debian-12/33021 "2024-08-05T12:03:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![perissf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/perissf/32/12942_2.png) [@perissf](https://forum.mautic.org/u/perissf)\
**Post date:** [August 5, 2024, 12:03pm UTC](https://forum.mautic.org/t/new-installation-of-mautic-5-10-with-composer-in-debian-12/33021/1 "2024-08-05T12:03:47Z")

</div>

My Mautic version is: 5.10  
My PHP version is: 8.2.20  
My Database type and version is: 10.11.6-MariaDB-0+deb12u1

I am new to Mautic and Composer. Trying to install Mautic 5.10 (new installation) with Composer and serving it on an existing Apache2 installation in Debian 12 server. I installed Composer globally. Then created `mautic` folder under `/var/www/html` and set ownership to `www-data:www-data` user. I extracted the installation files there and run `composer update` from the folder.

This is causing permission denied errors, because the logged-in user doesn’t have the permissions to write in that folder, and the use of sudo with composer is discouraged. However I don’t want to give more permissions to the folder, hence I am bit lost on how to proceed.

---

<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:** [August 5, 2024, 9:59pm UTC](https://forum.mautic.org/t/new-installation-of-mautic-5-10-with-composer-in-debian-12/33021/2 "2024-08-05T21:59:01Z")

</div>

Your Apache user (probably www-data) need to have read and write access to the doc root.

Ideally it should be the owner of it.

Also, anything that is executed by “mautic” need to be done by the “www-data” user (and never root).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [August 7, 2024, 12:49pm UTC](https://forum.mautic.org/t/new-installation-of-mautic-5-10-with-composer-in-debian-12/33021/3 "2024-08-07T12:49:10Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
