# \#php

**URL:** https://community.localwp.com/tag/php/149.md

[Latest](https://community.localwp.com/latest.md) · [Categories](https://community.localwp.com/categories.md) · [Tags](https://community.localwp.com/tags.md)

---

## [Local 7.2.0 and WP-CLI](https://community.localwp.com/t/local-7-2-0-and-wp-cli/39023)

<div class="topic-metadata">

**Author:** [@emmtre](https://community.localwp.com/u/emmtre)\
**Replies:** 16\
**Last updated:** [March 2, 2026, 8:41am UTC](https://community.localwp.com/t/local-7-2-0-and-wp-cli/39023 "2026-03-02T08:41:44Z")

</div>

@austinwendt @adamperry Here we go again… The bundled WP-CLI version in Local 7.2.0 is still 2.7.1 but since the preferred PHP version 8.1.22 is copied now to the Application Support folder you can’t update WP-CLI with…

---

## [Support for PHP 8.5](https://community.localwp.com/t/support-for-php-8-5/50827)

<div class="topic-metadata">

**Author:** [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Replies:** 9\
**Last updated:** [February 20, 2026, 9:17pm UTC](https://community.localwp.com/t/support-for-php-8-5/50827 "2026-02-20T21:17:51Z")

</div>

@austinwendt

---

## [Update serialize\_precision default value](https://community.localwp.com/t/update-serialize-precision-default-value/51381)

<div class="topic-metadata">

**Author:** [@groenroos](https://community.localwp.com/u/groenroos)\
**Replies:** 1\
**Last updated:** [September 19, 2025, 3:01pm UTC](https://community.localwp.com/t/update-serialize-precision-default-value/51381 "2025-09-19T15:01:27Z")

</div>

Local currently sets the value of serialize\_precision in php.ini.hbs to be 17. This was causing some floating point precision errors in my WordPress REST API, when running on Local. Starting from PHP 7.1.0, the default …

---

## [PHP patch versions outdated](https://community.localwp.com/t/php-patch-versions-outdated/50550)

<div class="topic-metadata">

**Author:** [@scottbuscemi](https://community.localwp.com/u/scottbuscemi)\
**Replies:** 4\
**Last updated:** [July 20, 2025, 7:59pm UTC](https://community.localwp.com/t/php-patch-versions-outdated/50550 "2025-07-20T19:59:29Z")

</div>

The latest patch version of PHP 8.4 available in Local is PHP 8.4.4 which came out in February. Is it possible for end-users to update to a later version of the patch, or do we still depend on the app to make each pat…

---

## [Composer Autoload Failing - require\_once 'vendor/autoload.php'](https://community.localwp.com/t/composer-autoload-failing-require-once-vendor-autoload-php/49875)

<div class="topic-metadata">

**Author:** [@dcampbell](https://community.localwp.com/u/dcampbell)\
**Replies:** 5\
**Last updated:** [May 1, 2025, 5:00pm UTC](https://community.localwp.com/t/composer-autoload-failing-require-once-vendor-autoload-php/49875 "2025-05-01T17:00:30Z")

</div>

Hi Local Community, I’m encountering a persistent issue with Composer autoloading within my LocalWP environment (running on Linux) and could use some help diagnosing it. Problem: I’ve developed a custom WordPress plugi…

---

## [Can't see PHP versions and other languages on create new sites](https://community.localwp.com/t/cant-see-php-versions-and-other-languages-on-create-new-sites/49216)

<div class="topic-metadata">

**Author:** [@stefanosistevo](https://community.localwp.com/u/stefanosistevo)\
**Replies:** 8\
**Last updated:** [March 26, 2025, 2:57pm UTC](https://community.localwp.com/t/cant-see-php-versions-and-other-languages-on-create-new-sites/49216 "2025-03-26T14:57:23Z")

</div>

What issue or error are you experiencing? Can’t see new PHP versions to download and other languages on create new WordPress sites (custom), I just see PHP 8.2 and English language What steps can be taken to replicate …

---

## [Ability to download/change specific PHP versions](https://community.localwp.com/t/ability-to-download-change-specific-php-versions/26825)

<div class="topic-metadata">

**Author:** [@erikfreundorfer](https://community.localwp.com/u/erikfreundorfer)\
**Replies:** 15\
**Last updated:** [December 12, 2024, 6:35am UTC](https://community.localwp.com/t/ability-to-download-change-specific-php-versions/26825 "2024-12-12T06:35:53Z")

</div>

Would it be possible to show a wider range of PHP versions that you can download? Right now we show four versions of PHP to select from. With one that comes shipped with the app and three others that we can download if …

---

## [Emojis break when pulling down to Local site (show up as '?')](https://community.localwp.com/t/emojis-break-when-pulling-down-to-local-site-show-up-as/45037)

<div class="topic-metadata">

**Author:** [@beardsavvy](https://community.localwp.com/u/beardsavvy)\
**Replies:** 3\
**Last updated:** [October 17, 2024, 2:19pm UTC](https://community.localwp.com/t/emojis-break-when-pulling-down-to-local-site-show-up-as/45037 "2024-10-17T14:19:57Z")

</div>

Bug Summary Emojis in post content are not displayed. Instead they show up as ? or ??? Steps to reproduce Pull down to Local from a WP Engine environment with emojis in the post content. Environment Info Describe your …

---

## [How to run PHP 5.6 on Local v8 and above](https://community.localwp.com/t/how-to-run-php-5-6-on-local-v8-and-above/44488)

<div class="topic-metadata">

**Author:** [@v2theg](https://community.localwp.com/u/v2theg)\
**Replies:** 1\
**Last updated:** [September 9, 2024, 5:37pm UTC](https://community.localwp.com/t/how-to-run-php-5-6-on-local-v8-and-above/44488 "2024-09-09T17:37:26Z")

</div>

I came across a handful of posts and a feature request where people needed to run older versions of PHP, so I wrote this up to help people who needed the same. Yes, I know WordPress doesn’t support older versions below 7…

---

## [How do I install PhP 8.2 Manually Instead of the Normal Way?](https://community.localwp.com/t/how-do-i-install-php-8-2-manually-instead-of-the-normal-way/44286)

<div class="topic-metadata">

**Author:** [@HalalManO](https://community.localwp.com/u/HalalManO)\
**Replies:** 1\
**Last updated:** [August 27, 2024, 2:57pm UTC](https://community.localwp.com/t/how-do-i-install-php-8-2-manually-instead-of-the-normal-way/44286 "2024-08-27T14:57:26Z")

</div>

What issue or error are you experiencing? For some reason, LocalWp cannot install PhP 8.2 fast. It took 30 mins to just get to 25 out of 115 MB, my internet is fast yet it is still happening. What steps can be taken to…

---

## [Install very old PHP versions to support outdated websites](https://community.localwp.com/t/install-very-old-php-versions-to-support-outdated-websites/42857)

<div class="topic-metadata">

**Author:** [@davidsneighbour](https://community.localwp.com/u/davidsneighbour)\
**Replies:** 3\
**Last updated:** [May 15, 2024, 1:21pm UTC](https://community.localwp.com/t/install-very-old-php-versions-to-support-outdated-websites/42857 "2024-05-15T13:21:03Z")

</div>

I was installing Local and fixing some issues that occurred in this post. But… On my old installation, I was using Local mainly to keep supporting old WordPress installations that run on, for instance, PHP 5.6 only (ee…

---

## [Always support update php 8.2 latest version (8.2.16)](https://community.localwp.com/t/always-support-update-php-8-2-latest-version-8-2-16/41490)

<div class="topic-metadata">

**Author:** [@Banija](https://community.localwp.com/u/Banija)\
**Replies:** 3\
**Last updated:** [April 25, 2024, 12:32pm UTC](https://community.localwp.com/t/always-support-update-php-8-2-latest-version-8-2-16/41490 "2024-04-25T12:32:34Z")

</div>

Please update php 8.2.x to latest version, thanks 15 Feb 2024 Core: Fixed timer leak in zend-max-execution-timers builds. Fixed bug GH-12349 (linking failure on ARM with mold). Fixed bug GH-13097 (Anonymous class re…

---

## [Fatal error: .../video.php one line 334](https://community.localwp.com/t/fatal-error-video-php-one-line-334/42500)

<div class="topic-metadata">

**Author:** [@ashcom](https://community.localwp.com/u/ashcom)\
**Replies:** 9\
**Last updated:** [April 23, 2024, 12:44pm UTC](https://community.localwp.com/t/fatal-error-video-php-one-line-334/42500 "2024-04-23T12:44:26Z")

</div>

What issue or error are you experiencing? I have a “Fatal error” on the home page of my local site so I cannot access it. What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc scr…

---

## [PHP email function](https://community.localwp.com/t/php-email-function/42251)

<div class="topic-metadata">

**Author:** [@oohkumar](https://community.localwp.com/u/oohkumar)\
**Replies:** 4\
**Last updated:** [April 10, 2024, 3:45pm UTC](https://community.localwp.com/t/php-email-function/42251 "2024-04-10T15:45:36Z")

</div>

What issue or error are you experiencing? \<?php mail('kumardesai123@gmail.com', 'subject', 'body') ?\> I want to use the PHP mail() function in my local installation of a site I am working on. I ran the basic code but di…

---

## [WP ALL IMPORT - When uploading csv files it shows "Failed to move uploaded file."](https://community.localwp.com/t/wp-all-import-when-uploading-csv-files-it-shows-failed-to-move-uploaded-file/41360)

<div class="topic-metadata">

**Author:** [@Bumpify](https://community.localwp.com/u/Bumpify)\
**Replies:** 5\
**Last updated:** [February 15, 2024, 4:48pm UTC](https://community.localwp.com/t/wp-all-import-when-uploading-csv-files-it-shows-failed-to-move-uploaded-file/41360 "2024-02-15T16:48:19Z")

</div>

I have installed WP ALL IMPORT plugin and when trying to upload csv files I receive the following error. I have done the obvious step of increasing limits in PHP.INI but no change. it works fine on my live site but not …

---

## [Add PEAR Package](https://community.localwp.com/t/add-pear-package/41356)

<div class="topic-metadata">

**Author:** [@jdonovan](https://community.localwp.com/u/jdonovan)\
**Replies:** 5\
**Last updated:** [February 15, 2024, 3:23pm UTC](https://community.localwp.com/t/add-pear-package/41356 "2024-02-15T15:23:42Z")

</div>

What issue or error are you experiencing? I have a plugin that requires the PEAR Package “HTTP/HTTP\_Request2”. How do I go about installing PEAR Packages for use in a local site? Warning : require\_once(HTTP/Request2.ph…

---

## [PHP 8.3 Support](https://community.localwp.com/t/php-8-3-support/40289)

<div class="topic-metadata">

**Author:** [@benjamin](https://community.localwp.com/u/benjamin)\
**Replies:** 6\
**Last updated:** [December 19, 2023, 10:04pm UTC](https://community.localwp.com/t/php-8-3-support/40289 "2023-12-19T22:04:48Z")

</div>

Since PHP 8.3 was officially announced, I’m making this thread to ask for support for it. I’d love to see this come out much quicker than 8.2 did :smiley:

---

## [PHP versions conflicts](https://community.localwp.com/t/php-versions-conflicts/40478)

<div class="topic-metadata">

**Author:** [@vayu](https://community.localwp.com/u/vayu)\
**Replies:** 4\
**Last updated:** [December 19, 2023, 1:33pm UTC](https://community.localwp.com/t/php-versions-conflicts/40478 "2023-12-19T13:33:57Z")

</div>

Hi, I have setup a site in Local and the PHP version i set to version 8.1.23. However if I run php --version in Terminal console I get 8.0.28. I have also tested this when opening site shell from Local. This does not mak…

---

## [How can I remove an installed php version?](https://community.localwp.com/t/how-can-i-remove-an-installed-php-version/40317)

<div class="topic-metadata">

**Author:** [@nadine](https://community.localwp.com/u/nadine)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 3:06pm UTC](https://community.localwp.com/t/how-can-i-remove-an-installed-php-version/40317 "2023-12-07T15:06:15Z")

</div>

Hi there, I have been using Local for quite some time. Currently I have installed the following PHP versions: 7.3.5 7.4.1 7.4.30 8.1.23 I just saw in my disk manager that the different PHP versions take up some space…

---

## [Sudden PHP configuration error on VS Code](https://community.localwp.com/t/sudden-php-configuration-error-on-vs-code/38779)

<div class="topic-metadata">

**Author:** [@Leta](https://community.localwp.com/u/Leta)\
**Replies:** 8\
**Last updated:** [October 10, 2023, 2:23pm UTC](https://community.localwp.com/t/sudden-php-configuration-error-on-vs-code/38779 "2023-10-10T14:23:43Z")

</div>

What issue or error are you experiencing? “Cannot validate since a PHP installation could not be found. Use the setting ‘php.validate.executablePath’ to configure the PHP executable.” What steps can be taken to replica…

---

## [Recommended way to install additional binaries, to run them from PHP](https://community.localwp.com/t/recommended-way-to-install-additional-binaries-to-run-them-from-php/39370)

<div class="topic-metadata">

**Author:** [@TigrouMeow](https://community.localwp.com/u/TigrouMeow)\
**Replies:** 2\
**Last updated:** [October 5, 2023, 12:37am UTC](https://community.localwp.com/t/recommended-way-to-install-additional-binaries-to-run-them-from-php/39370 "2023-10-05T00:37:14Z")

</div>

Hi, I asked this question a while ago, but I never got a reply: How to install additional packages / binaries in the instances of local sites?. However, it would be great :slight\_smile: I would like to install binaries…

---

## [Support: New update php 8.2.10?](https://community.localwp.com/t/support-new-update-php-8-2-10/39006)

<div class="topic-metadata">

**Author:** [@Banija](https://community.localwp.com/u/Banija)\
**Replies:** 1\
**Last updated:** [September 15, 2023, 6:32pm UTC](https://community.localwp.com/t/support-new-update-php-8-2-10/39006 "2023-09-15T18:32:36Z")

</div>

---

## [High CPU usage php-fpm](https://community.localwp.com/t/high-cpu-usage-php-fpm/38462)

<div class="topic-metadata">

**Author:** [@UHLhosting](https://community.localwp.com/u/UHLhosting)\
**Replies:** 1\
**Last updated:** [August 8, 2023, 1:30pm UTC](https://community.localwp.com/t/high-cpu-usage-php-fpm/38462 "2023-08-08T13:30:35Z")

</div>

What issue or error are you experiencing? On my macOS there is a high cpu usage for 2 php-fpm processes both at 100%. The local wp site moves very slow. What steps can be taken to replicate the issue? Feel free to includ…

---

## [How to add a PHP Version manually](https://community.localwp.com/t/how-to-add-a-php-version-manually/38128)

<div class="topic-metadata">

**Author:** [@egillpayday](https://community.localwp.com/u/egillpayday)\
**Replies:** 2\
**Last updated:** [July 20, 2023, 7:54pm UTC](https://community.localwp.com/t/how-to-add-a-php-version-manually/38128 "2023-07-20T19:54:08Z")

</div>

What issue or error are you experiencing? I am using a plugin that requires the latest Stable version of PHP, version 8.2.8. I am currently running the previous stable release, version 8.1.9, and I don´t see version 8.2…

---

## [Finding functions.php file for twenty twenty-three theme?](https://community.localwp.com/t/finding-functions-php-file-for-twenty-twenty-three-theme/38133)

<div class="topic-metadata">

**Author:** [@nicolet301](https://community.localwp.com/u/nicolet301)\
**Replies:** 3\
**Last updated:** [July 20, 2023, 3:15pm UTC](https://community.localwp.com/t/finding-functions-php-file-for-twenty-twenty-three-theme/38133 "2023-07-20T15:15:11Z")

</div>

Hello, I hope that all is well. Can you please help me find the functions.php file for the twenty twenty-three theme? I want to add some code to keep the theme from adding automatic padding to columns when I give them…

---

## [Updated Code Not Loading -- Only For Non-Logged -- Wordpress](https://community.localwp.com/t/updated-code-not-loading-only-for-non-logged-wordpress/37452)

<div class="topic-metadata">

**Author:** [@willbeing](https://community.localwp.com/u/willbeing)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 7:22pm UTC](https://community.localwp.com/t/updated-code-not-loading-only-for-non-logged-wordpress/37452 "2023-06-20T19:22:13Z")

</div>

Issue Summary Local isn’t loading updated Wordpress code when viewing user logged out of site (one browser). When logged in (as WP admin for example), the new .php and .html loads as expected. When running in an incognit…

---

## [Error installing Wordpress / cruntime140.dll 14.15 is not compatible with php built](https://community.localwp.com/t/error-installing-wordpress-cruntime140-dll-14-15-is-not-compatible-with-php-built/36433)

<div class="topic-metadata">

**Author:** [@Jayno](https://community.localwp.com/u/Jayno)\
**Replies:** 3\
**Last updated:** [April 12, 2023, 1:21pm UTC](https://community.localwp.com/t/error-installing-wordpress-cruntime140-dll-14-15-is-not-compatible-with-php-built/36433 "2023-04-12T13:21:58Z")

</div>

Issue Summary Hello, i am a new user of Local and I have troubles with creating my first site. When i add a new site, an error appears and then when i try to go on the brower i get a “502 bad gateway error”. I thank you …

---

## [VS Code PHP Validation Switcher](https://community.localwp.com/t/vs-code-php-validation-switcher/35755)

<div class="topic-metadata">

**Author:** [@davelin](https://community.localwp.com/u/davelin)\
**Replies:** 0\
**Last updated:** [March 1, 2023, 5:20pm UTC](https://community.localwp.com/t/vs-code-php-validation-switcher/35755 "2023-03-01T17:20:57Z")

</div>

Introduction Since we are able to change the PHP version in Local, it would be nice if there is a way to switch the PHP validation in VS Code for the project when that happens. This is as simple as updating the php.valid…

---

## [PHP 8.0.27 or 8.1.14: its possible?](https://community.localwp.com/t/php-8-0-27-or-8-1-14-its-possible/35720)

<div class="topic-metadata">

**Author:** [@niito](https://community.localwp.com/u/niito)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 5:40pm UTC](https://community.localwp.com/t/php-8-0-27-or-8-1-14-its-possible/35720 "2023-02-28T17:40:40Z")

</div>

hello guys, i would need to know if it is possible to install via localwp a php version 8.0.27 or 8.1.14, because via cpanel these two versions give me critical error on admin dashboard and i would like to understand in …

---

## [Php 8.0.26](https://community.localwp.com/t/php-8-0-26/35440)

<div class="topic-metadata">

**Author:** [@gscoolidge](https://community.localwp.com/u/gscoolidge)\
**Replies:** 3\
**Last updated:** [February 10, 2023, 5:24pm UTC](https://community.localwp.com/t/php-8-0-26/35440 "2023-02-10T17:24:42Z")

</div>

I need to test with the latest PHP versions, but Local only has up to 8.0.22, how can I add them?

[Next page](https://community.localwp.com/tag/php/149.md?match_all_tags=true&page=1&tags%5B%5D=php)
