# Can't activate index\_dev.php

**URL:** <https://forum.mautic.org/t/cant-activate-index-dev-php/16153>\
**Category:** Product Support\
**Tags:** development\
**Created:** [September 17, 2020, 10:35am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153 "2020-09-17T10:35:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![assimerq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/assimerq/32/691_2.png) [@assimerq](https://forum.mautic.org/u/assimerq)\
**Post date:** [September 17, 2020, 10:35am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/1 "2020-09-17T10:35:27Z")

</div>

**Your software**  
My Mautic version is: 3.1.0  
My PHP version is: 7.2.31

**Your problem**  
My problem is: I have an issue with email tracking, and I want to debug it. I’ve tried to enable index\_dev.php, but I receive internal error

These errors are showing in the log:  
no errors in log

Steps I have tried to fix the problem:  
I have installed mautic from github  
I have enabled IPs in dev\_hosts in local.php

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [September 17, 2020, 10:52am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/2 "2020-09-17T10:52:02Z")

</div>

Quick check - did you clone from Github or download from the release package? You weren’t specific in your post.

Release builds do not contain the dev/testing stuff. Double check that you have the file in your instance?

---

<div class="post-metadata">

**Author:** ![assimerq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/assimerq/32/691_2.png) [@assimerq](https://forum.mautic.org/u/assimerq)\
**Post date:** [September 17, 2020, 11:18am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/3 "2020-09-17T11:18:44Z")

</div>

Hi Ruth,  
thanks for the response.  
As currently in the github version there is an issue that prevents the builder from working, we had to install from build and then we added all \_dev files.  
I am stuck, because build version doesn’t track emails, no errors in log, and to enable dev version I have to use github sources that can’t build an email, and I can’t reproduce the issue

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [September 17, 2020, 11:24am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/4 "2020-09-17T11:24:10Z")

</div>

That issue on Staging has been resolved now 🙂

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [September 17, 2020, 11:24am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/5 "2020-09-17T11:24:55Z")

</div>

[https://github.com/mautic/mautic/pull/9194](https://github.com/mautic/mautic/pull/9194) This is the PR which fixed the issue.

---

<div class="post-metadata">

**Author:** ![assimerq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/assimerq/32/691_2.png) [@assimerq](https://forum.mautic.org/u/assimerq)\
**Post date:** [September 17, 2020, 11:25am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/6 "2020-09-17T11:25:22Z")

</div>

I’m gonna try a fresh staging install.  
I’ll let you know.  
Thanks

---

<div class="post-metadata">

**Author:** ![assimerq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/assimerq/32/691_2.png) [@assimerq](https://forum.mautic.org/u/assimerq)\
**Post date:** [September 17, 2020, 2:28pm UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/7 "2020-09-17T14:28:18Z")

</div>

We have solved.  
we missed a configuration in nginx.  
Now it works, and the builder works too!  
Thanks  
P.S. To all people using Nginx: dev environment requires specific configuration. If someone needs it, ask

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [September 17, 2020, 2:44pm UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/8 "2020-09-17T14:44:08Z")

</div>

> [@assimerq](#):
>
> P.S. To all people using Nginx: dev environment requires specific configuration. If someone needs it, ask

Maybe share that in case folk come across this in the future and you’re not here to reply? May be useful!

---

<div class="post-metadata">

**Author:** ![assimerq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/assimerq/32/691_2.png) [@assimerq](https://forum.mautic.org/u/assimerq)\
**Post date:** [October 5, 2020, 10:15am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/9 "2020-10-05T10:15:37Z")

</div>

the command needed to activate index\_dev.php is

> location / {  
> try\_files $uri /index\_dev.php$is\_args$args;  
> }

it’s possible to insert both index.php and index\_dev.php in try\_files, but we chose to activate and deactivate index\_dev.php manually for security matters.

---

<div class="post-metadata">

**Author:** ![dominic.mayers](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dominic.mayers/32/13549_2.png) [@dominic.mayers](https://forum.mautic.org/u/dominic.mayers)\
**Post date:** [February 16, 2025, 1:59am UTC](https://forum.mautic.org/t/cant-activate-index-dev-php/16153/10 "2025-02-16T01:59:20Z")

</div>

This is old, but just want to say that index\_dev.php was removed from mautic. So, if you have a problem setting the dev environment, this page will be useless to you.
