Okay, so here’s the deal with the fresh topic popping up in the Mautic community—that dreaded installation snag when trying to run Mautic 7 on PHP 8.4. You follow the recommended way (Composer method), expecting a smooth setup, but bam! The installer halts with a “The directory must be writable” error. Yet, if you’ve double-checked permissions and your web server clearly has write access, it’s super confusing.
Turns out, the root cause isn’t your permission settings at all. When you run composer create-project mautic/recommended-project:^7 mautic, the crucial var/logs folder doesn’t get created automatically. Since Mautic needs that directory to write logs during install, its absence makes the installer think it can’t write anywhere—hence the error.
So what’s the fix? Just manually add that var/logs folder inside your Mautic directory, and make sure it’s writable by your web server user. This tiny step gets the installer back on track without any permissions head-scratching.
Now, you might wonder if this is a recurring bug or some PHP 8.4 compatibility hiccup. From what we’ve seen, it’s more of a packaging oversight than a persistent bug, and the community is watching the repo for a proper fix. For now, this manual folder creation is your best bet.
My takeaway? Composer projects usually handle directory creation smoothly, but watch out for tiny gaps like this. It’s a reminder to always check the basics before diving into deeper “permission denied” rabbit holes. And since Mautic relies heavily on writeable directories for logs and caches, this is an easy but critical step to confirm.
Want to follow the back-and-forth and see if the Mautic devs roll out a fix soon? Check out the original forum thread here to get the latest community tips and updates.