mautic.install.logs.unwritable in CLI installer if website never visited
Mautic Series
7.1.x series
Mautic installed version
7.1.3
Way of installing
I installed with composer using https://github.com/mautic/recommended-project
PHP version
8.4
What browsers are you seeing the problem on?
Not relevant
What happened?
When using the CLI installer without ever visiting the front-end of the website after running the composer install using recommended-project (for example in automated deployment), the var/logs directory is not present and as a result the CLI installer reports that it is not writeable (which is technically true because it doesn't exist, even though it could be created as the permissions are correct) and terminates the installation.
After the web interface is once visited, the logs directory is generated and now CLI install works.
How can we reproduce this issue?
Step 1: Deploy installation using composer
Step 2: Make sure permissions are correct
Step 3: run CLI installer... php bin/console mautic:install (without ever visiting the website first)
Relevant log output
[2026-08-14 15:47:10] Mautic Install
[2026-08-14 15:47:10] ==============
[2026-08-14 15:47:10] Parsing options and arguments...
[2026-08-14 15:47:10] 0 - Checking installation requirements...
[2026-08-14 15:47:10] Missing requirements:
[2026-08-14 15:47:10] - [0] mautic.install.logs.unwritable
[2026-08-14 15:47:10] Install canceledCode of Conduct
- I confirm that I have read and agree to follow this project's Code of Conduct
Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.
Source: mautic/mautic