# An Error when i create site

**URL:** <https://community.localwp.com/t/an-error-when-i-create-site/50534>\
**Category:** Support\
**Tags:** hosts-file, windows\
**Created:** [June 16, 2025, 2:24pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534 "2025-06-16T14:24:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatima1](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fatima1](https://community.localwp.com/u/fatima1)\
**Post date:** [June 16, 2025, 2:24pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/1 "2025-06-16T14:24:13Z")

</div>

### What issue or error are you experiencing?

— Hi I just installed local it is my first time ever but i cant create a site i do all the steps then an error appears says Command failed and then it delete the site and take me back to the beginning when it says create a new site. Can you help me wit that, Thank you

 ![Screenshot 2025-06-16 151543](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/d/9/d99c63f28e2a6ab1589f48646b500ed537f49cdd.png)

| Edition | Windows 11 Pro |
| --- | --- |
| Version | 24H2 |
| Installed on | ‎6/‎15/‎2025 |
| OS build | 26100.4349 |
| Experience | Windows Feature Experience Pack 1000.26100.107.0 |
| [local-logs.zip | attachment](upload://5bAIPJJVuWILNSWmIvLnuVR7bEv.zip) (9.4 KB) |

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 16, 2025, 2:47pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/2 "2025-06-16T14:47:27Z")

</div>

Hi @fatima1!

We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, make sure you’re running Local as an admin user, that you don’t have any security blockers, and that Local has access to update your Hosts file.

> **[Troubleshoot: Windows + Local](https://localwp.com/help-docs/troubleshooting/troubleshoot-windows-local/)**
>
> Windows is the operating system of choice for the majority of Local users, and while Local is compatible with Windows, below we will break down some common troubleshooting steps for Windows users to…

If you’re still having trouble can you share your Local log again? It doesn’t seem to have attached.

---

<div class="post-metadata">

**Author:** ![fatima1](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fatima1](https://community.localwp.com/u/fatima1)\
**Post date:** [June 16, 2025, 3:12pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/3 "2025-06-16T15:12:45Z")

</div>

still doesn’t work  
[local-logs1.zip](https://community.localwp.com/uploads/short-url/v1eW78Q6rUSMyns8FM2j5GkTpsv.zip) (8.3 KB)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 16, 2025, 3:16pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/4 "2025-06-16T15:16:37Z")

</div>

Hi @fatima1

It seems like there might be some security and/or network connection issues.

What type of network are you connected to? When you’re using Local for the first time it will need to reach out and make some connections to download some necessary components. Are you using a VPN, proxy or office network of some kind?

Do you have any antivirus, security, or firewall applications that could be blocking Local still?

---

<div class="post-metadata">

**Author:** ![fatima1](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fatima1](https://community.localwp.com/u/fatima1)\
**Post date:** [June 16, 2025, 3:22pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/5 "2025-06-16T15:22:33Z")

</div>

hi thanks for responding. no im using my computer normally no vpn i have proxy . I already turned off antivirus and firewall hoping for it to work but still

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 16, 2025, 3:31pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/6 "2025-06-16T15:31:10Z")

</div>

Are you getting any of the prompts for allowing Local to make changes as shown in that help article above?

You’ve verified you have admin privileges, Local can update the hosts file, etc?

---

<div class="post-metadata">

**Author:** ![fatima1](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fatima1](https://community.localwp.com/u/fatima1)\
**Post date:** [June 16, 2025, 4:37pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/7 "2025-06-16T16:37:02Z")

</div>

yes i get it and i clicked yes

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 16, 2025, 5:05pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/8 "2025-06-16T17:05:44Z")

</div>

Can you share a fresh Local Log here @fatima1? We can compare it and see if anything new is showing.

---

<div class="post-metadata">

**Author:** ![EncryptKalean](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/encryptkalean/32/24553_2.png) [@EncryptKalean](https://community.localwp.com/u/EncryptKalean)\
**Post date:** [July 16, 2025, 8:34pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/9 "2025-07-16T20:34:14Z")

</div>

**I’m not sure if it’s the exact same issue you’re having, but I thought I’d share my experience — maybe it’ll help.**

I was struggling a lot with an error where MySQL wouldn’t start my sites. I tried several solutions, searched everywhere I could… but nothing worked. After a lot of trial and error, I decided to change the **Router Mode** to **Site Domains** — then I got a different error:  
**“Local’s router is having trouble starting.”**

With the help of Copilot, I discovered that port 80 was being used by Apache (`httpd.exe`). I ran the following commands:

- `netstat -aon | findstr :80`
- `tasklist | findstr [PID]`

In my case, Apache came from XAMPP, which I had installed before. I ended the process via Task Manager and restarted LocalWP. Since then, everything has been working smoothly without any headaches.

---

<div class="post-metadata">

**Author:** ![EncryptKalean](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/encryptkalean/32/24553_2.png) [@EncryptKalean](https://community.localwp.com/u/EncryptKalean)\
**Post date:** [July 18, 2025, 9:32pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/10 "2025-07-18T21:32:39Z")

</div>

**Update:**  
After two days running fine, the error came back…  
Digging deeper, I found that the issue was related to MySQL’s startup time — it takes longer to start listening when the system is running on an HDD, which ends up causing the infamous timeouts in LocalWP.

I used Copilot to help optimize the database, and after some testing and adjustments, we managed to create a custom `my.cnf` file specifically tailored for startup on machines with HDDs.

I saved the file here:

```auto
C:\Users\[YOUR_USER]\AppData\Roaming\Local\lightning-services\mysql-8.0.35+4\conf\my.cnf

```

And just to be safe, I also copied it into my sites’ folders and blueprints — to ensure each instance is ready to start quickly.

It’s been 10 hours since I applied it, I’ve opened several sites in a row... and so far, **no errors**. It finally seems stable.  
I’m sharing the file content below — maybe it’ll help someone facing the same issue 🚀  
[my.log](https://community.localwp.com/uploads/short-url/8pXMN9wJyp32hdu2bmCdKnml7oC.log) (981 Bytes)

(I don’t speak English, I used AI to translate it. Sorry if there’s anything wrong.)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [July 21, 2025, 3:03pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/11 "2025-07-21T15:03:02Z")

</div>

Thank you for sharing @EncryptKalean! Glad to hear things are working smoothly once again 💚

---

<div class="post-metadata">

**Author:** ![fatima1](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fatima1](https://community.localwp.com/u/fatima1)\
**Post date:** [July 21, 2025, 6:50pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/12 "2025-07-21T18:50:28Z")

</div>

Thank you it worked

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [July 23, 2025, 12:37pm UTC](https://community.localwp.com/t/an-error-when-i-create-site/50534/13 "2025-07-23T12:37:36Z")

</div>


