# Local ran into error when changing PHP version

**URL:** <https://community.localwp.com/t/local-ran-into-error-when-changing-php-version/24682>\
**Category:** Support\
**Tags:** windows-10\
**Created:** [March 3, 2021, 2:33pm UTC](https://community.localwp.com/t/local-ran-into-error-when-changing-php-version/24682 "2021-03-03T14:33:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vguruli](https://avatars.discourse-cdn.com/v4/letter/v/c89c15/32.png) [@vguruli](https://community.localwp.com/u/vguruli)\
**Post date:** [March 3, 2021, 2:33pm UTC](https://community.localwp.com/t/local-ran-into-error-when-changing-php-version/24682/1 "2021-03-03T14:33:14Z")

</div>

Hi Local Community,

When I wanted to change php version from 7.3 to 7.4 I’ve got an error and cant start my dev site.  
Any help would be much appreciated. THe only thing I did was to change a php version after local site was installed. Is there any way to make it work again? Thanks

 ![Capture](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/1/1c7846401ba6636c23effb06af7d2bc7b4914bfd.png)

Cheers

---

<div class="post-metadata">

**Author:** ![DaniFM](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@DaniFM](https://community.localwp.com/u/DaniFM)\
**Post date:** [March 3, 2021, 9:40pm UTC](https://community.localwp.com/t/local-ran-into-error-when-changing-php-version/24682/2 "2021-03-03T21:40:03Z")

</div>

Hi there!

I had the same problem and don’t know what to do eighter. I tried to start a new site, but the error remains.

Hope someone could help us.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [March 25, 2021, 5:28pm UTC](https://community.localwp.com/t/local-ran-into-error-when-changing-php-version/24682/3 "2021-03-25T17:28:34Z")

</div>

Hey! Thanks for writing in!

Can you try manually updating the PHP Lightning Service? You can do this by following the steps in this FAQ:

> **[How can I manually update downloadable Lightning Services?](https://community.localwp.com/t/how-can-i-manually-update-downloadable-lightning-services/21149)**
>
> Every now and then, the Local team pushes out updates to the downloadable Lightning Services (PHP, MySQL, web servers, etc) in Local. Reasons for these updates include config changes to better facilitate local development, adjusting PHP...

If that doesn’t allow you to switch PHP versions, can you please provide your Local Log? See this Community Forum post for instructions on how to do so:

- [How do I retrieve Local’s Log?](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720?u=ben.turner)

---

<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:** [June 23, 2021, 5:28pm UTC](https://community.localwp.com/t/local-ran-into-error-when-changing-php-version/24682/4 "2021-06-23T17:28:38Z")

</div>

Closed on June 23, 2021, 5:28pm UTC

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