# "Error: Command Failed” when installing WordPress on Windows 11 Pro

**URL:** <https://community.localwp.com/t/error-command-failed-when-installing-wordpress-on-windows-11-pro/31713>\
**Category:** Support\
**Tags:** windows, installation\
**Created:** [May 16, 2022, 4:00pm UTC](https://community.localwp.com/t/error-command-failed-when-installing-wordpress-on-windows-11-pro/31713 "2022-05-16T16:00:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bulent](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/bulent/32/15810_2.png) [@Bulent](https://community.localwp.com/u/Bulent)\
**Post date:** [May 16, 2022, 4:00pm UTC](https://community.localwp.com/t/error-command-failed-when-installing-wordpress-on-windows-11-pro/31713/1 "2022-05-16T16:00:05Z")

</div>

Hi,  
I’ve had Localwp installed for a long time, but since today it’s been behaving very strangely. I could no longer access any of the websites that were created. So I uninstalled and reinstalled Localwp but I keep getting the “Error: Command Failed” problem. I was able to find 2 topics about this on the support page but couldn’t find any help there. I put “local-lightning” in the attachment. Please help.

As I have noticed now the problem is with PHP version 7.4.1. If I use version 7.3.5 the problem is eliminated. I have followed the instructions on “[How can I manually update downloadable Lightning Services?](http://community.localwp.com/t/how-can-i-manually-update-downloadable-lightning-services/21149)” and made but unfortunately that did not work. I do not understand why it works with php 7.3.5 but with 7.4.1 there are problems. The problem was not there before that means that a few days ago there was no problem and now the problem is there and there is no solution for it.

Translated with [DeepL Translate: The world's most accurate translator](http://www.DeepL.com/Translator) (free version)

 ![Ekran görüntüsü 2022-05-16 181723](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/c/ca5638cfd5826f1c4fbfed57ba8fa6d524680899.png)

[local-lightning.log](https://community.localwp.com/uploads/short-url/5Kwunrct9pbKseDe0gw1P1ObvPW.log) (37.1 KB)

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [May 19, 2022, 2:25pm UTC](https://community.localwp.com/t/error-command-failed-when-installing-wordpress-on-windows-11-pro/31713/2 "2022-05-19T14:25:37Z")

</div>

Hi @Bulent - to confirm, you installed your own version of PHP 7.4.1 on top of Local? I assume something in your build isn’t playing nicely with Local.

Here is what I would try:

1. Export or backup your sites in Local.
2. Reinstall the latest production version of Local - [localwp.com/releases/6.4.0](http://localwp.com/releases/6.4.0)
3. Import your sites back into Local. You can drag and drop them or File \> Import.
4. Try accessing them again.

Does this resolve any issues for you?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 17, 2022, 2:26pm UTC](https://community.localwp.com/t/error-command-failed-when-installing-wordpress-on-windows-11-pro/31713/3 "2022-08-17T14:26:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
