New installation of Mautic 5.10 with Composer in Debian 12

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.

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).

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