# CakePHP 3.5.2 auto delete index.php in webroot why?

**URL:** <https://discourse.cakephp.org/t/cakephp-3-5-2-auto-delete-index-php-in-webroot-why/3238>\
**Category:** Uncategorized\
**Created:** [September 19, 2017, 8:06pm UTC](https://discourse.cakephp.org/t/cakephp-3-5-2-auto-delete-index-php-in-webroot-why/3238 "2017-09-19T20:06:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dean](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@dean](https://discourse.cakephp.org/u/dean)\
**Post date:** [September 19, 2017, 8:06pm UTC](https://discourse.cakephp.org/t/cakephp-3-5-2-auto-delete-index-php-in-webroot-why/3238/1 "2017-09-19T20:06:14Z")

</div>

i use command : cake server to start the project.

## It run the first time. The second time it give me this error

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

## Fatal error: Unknown: Failed opening required ‘C:\Users\duyqu\Desktop\page\webroot/index.php’ (include\_path=’.;C:\php\pear’) in Unknown on line 0

I have check several time and it appear to delete the “index.php” file in webroot folder for no reason.

Here is what is already try:  
-re-download Wamp server and composer  
-update to newest version 3.5.2 of cakePHP  
-copy the index.php to another place and recopy them back to webroot ( can’t be done because access denied)

I am stuck and have no idea what is happening. I have been use cakePHP for 6 months and this is the first time this problem occurd

---

<div class="post-metadata">

**Author:** ![dean](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@dean](https://discourse.cakephp.org/u/dean)\
**Post date:** [September 25, 2017, 12:24am UTC](https://discourse.cakephp.org/t/cakephp-3-5-2-auto-delete-index-php-in-webroot-why/3238/2 "2017-09-25T00:24:47Z")

</div>

It is anti virus software auto delete index.php in webroot. Check viruschest and restore the file
