# Downgrade PHP version

**URL:** <https://community.localwp.com/t/downgrade-php-version/44791>\
**Category:** Support\
**Created:** [October 1, 2024, 2:47pm UTC](https://community.localwp.com/t/downgrade-php-version/44791 "2024-10-01T14:47:25Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 1, 2024, 2:47pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/1 "2024-10-01T14:47:25Z")

</div>

I need PHP 7.4 for my site. But in my local, it’s showing only PHP 8 versions. How can I add version 7.4 to the dropdown?

---

<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:** [October 1, 2024, 2:51pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/2 "2024-10-01T14:51:45Z")

</div>

Hi @Subhashreep

PHP 7.3 and 7.4 should still be available in the app. Can you tell me what is your OS/OS version and your Local Version?

When you say dropdown is this for a specific site or when you create a Custom site and use that drop down?

---

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 1, 2024, 2:54pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/3 "2024-10-01T14:54:06Z")

</div>

Hi. Thank you for the reply. I am using windows and Local version is 9. I want PHP 7.4 version by default added to my local. Now I am seeing only 8.1.29 and 8.1.23

---

<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:** [October 1, 2024, 3:15pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/4 "2024-10-01T15:15:47Z")

</div>

What Windows version are you on?

---

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 1, 2024, 3:26pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/5 "2024-10-01T15:26:08Z")

</div>

Windows 10 version 22H2

---

<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:** [October 1, 2024, 3:27pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/6 "2024-10-01T15:27:45Z")

</div>

So when you go to create a new site, select Custom, and choose your PHP version is that where you only see those PHP versions?

---

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 1, 2024, 3:33pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/7 "2024-10-01T15:33:04Z")

</div>

yeah, only those 2

---

<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:** [October 1, 2024, 3:38pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/8 "2024-10-01T15:38:56Z")

</div>

What server/database type are you selecting? Does that make a difference?

---

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 1, 2024, 3:42pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/9 "2024-10-01T15:42:00Z")

</div>

webserver - nginx and database - mysql

---

<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:** [October 1, 2024, 3:44pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/10 "2024-10-01T15:44:09Z")

</div>

Okay thank you @Subhashreep

In order to refresh here and start with a clean slate could you give the below troubleshooting steps a try?

- Export any sites that you have on Local and save them to a folder somewhere on your computer: [Backup a Local Site - Local](https://localwp.com/help-docs/getting-started/how-to-backup-a-local-site/)

- Fully uninstall Local from your computer including the specific steps for your OS here: [Uninstall Local - Local](https://localwp.com/help-docs/troubleshooting/uninstalling-local/)

- Install the latest version of Local on this link: [Releases - Local](https://localwp.com/releases/)

- Once installed, please restart the computer.

- When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).

- Check and see if the issue still persists. If so, please provide us with an updated log: [Retrieve Local’s Log File - Local](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/)

---

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 1, 2024, 4:02pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/11 "2024-10-01T16:02:13Z")

</div>

I have installed local recently. And it’s the latest one

---

<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:** [October 1, 2024, 4:12pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/12 "2024-10-01T16:12:01Z")

</div>

It’s possible during installation something blocked Local from downloading the files for those other PHP versions, so you could try doing those refresh steps I provided to ensure everything gets installed.

Does your machine also have available disk space or is the storage maxed out?

---

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 1, 2024, 4:34pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/13 "2024-10-01T16:34:15Z")

</div>

yes, it has enough space. I will reinstall local and check as you mentioned

---

<div class="post-metadata">

**Author:** ![Subhashreep](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Subhashreep](https://community.localwp.com/u/Subhashreep)\
**Post date:** [October 4, 2024, 4:37pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/14 "2024-10-04T16:37:15Z")

</div>

I have reinstalled the local app with the latest one. Attaching the log files for your reference.  
[local-lightning.log](https://community.localwp.com/uploads/short-url/Zr5jo82WHP7b0Tj401L9JO0L8N.log) (186.1 KB)  
[local-lightning-verbose.log](https://community.localwp.com/uploads/short-url/uBSEPetdzedleK3A4oNlcPSWEI7.log) (624.5 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:** [October 4, 2024, 9:37pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/16 "2024-10-04T21:37:19Z")

</div>

Hi @Subhashreep

Do you have any antivirus, security, or firewall applications that could be blocking Local? It seems like maybe a security feature or firewall on this specific machine is limiting the downloads. Windows Defender maybe? Could you look and see what’s installed on this machine and whether or not it is blocking Local or has a setting that needs to be be adjusted to give access?

---

<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:** [October 4, 2024, 9:49pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/17 "2024-10-04T21:49:36Z")

</div>

Following up here again @Subhashreep - specifically looking in your logs we are seeing a `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` error, which may indicate a firewall blockage, possibly by something from your place of business if they are monitoring the hardware and connection.

This comment and section of our help article go into a bit more detail if you’re working with someone in IT who can take a look:

> [@Unable to re-connect to WP Engine](https://community.localwp.com/t/unable-to-re-connect-to-wp-engine/36758/4):
>
> Hey @SantiMB ! The error UNABLE\_TO\_GET\_ISSUER\_CERT\_LOCALLY likely is related to the issue, and it basically means that when Local was trying to connect to a remote server over HTTPS, it wasn’t able to get the security certificate to make the request. I notice that you’re on Windows 10 Enterprise – is this a work machine? I ask because it might be that there are some security settings in place that are preventing third-party apps (like Local) from making request to places on the internet. In th…

> **[Install Local](https://localwp.com/help-docs/getting-started/installing-local/#allowing-local)**
>
> Installing Local should be easy, but if you’re having trouble, this is guide should help! Table of Contents: You can get the latest version of Local by visiting the releases page and downloading Local…

---

<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:** [January 2, 2025, 9:50pm UTC](https://community.localwp.com/t/downgrade-php-version/44791/18 "2025-01-02T21:50:28Z")

</div>

Closed on January 2, 2025, 9:50pm UTC

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