Mautic Community Forums

Local Mautic development with DDEV

Originally published at:

DDEV is an OS agnostic wrapper for Docker. Learn how to set up a local Mautic development environment using DDEV in this community blog article.

Thanks for this blog post. We will develop a plugin for Mautic for one of customers soon, and would like to work with the index_dev.php in our dev environment, as mentioned in

However, with DDEV we had to do the following things to get the dev environment up and running:

  • In .ddev/config.yaml, change nginx-fpm to apache-fpm
  • In .htaccess, replace
RewriteRule .? %{ENV:BASE}/index.php [L]


RewriteRule .? %{ENV:BASE}/index_dev.php [L]

If anyone has an easier solution to get the dev environment working in DDEV, please share it :slight_smile: at least we’re up and running for now!

1 Like

@Woeler can you give any insights?

1 Like