PHP 8.2 security maintenance until the end of 2026, how to arrange the migration for sites still running?

📅 2026-10-13 👁️ 49

The security support for PHP 8.2 ends on December 31, 2026. After this date, the official will no longer release any security patches for this branch. Websites still running PHP 8.2 should not be a choice of 'whether to migrate' but a scheduling question of 'when to act': at least make time for inventory, gray release, and rollback within the year, otherwise, every new vulnerability disclosed after the deadline will directly fall on the production environment.

How to read the official support table

PHP supports each branch in two segments: the first two years are active support, fixing bugs and security issues; after two years, it is pure security maintenance, only releasing critical security patches. According to the official supported-versions page today, the end dates for each key branch are as follows.

Branch The current stage End of active support End of security support
PHP 8.2 Only security fixes 2024-12-31 2026-12-31
PHP 8.3 Only security fixes 2025-12-31 2027-12-31
PHP 8.4 Active support 2026-12-31 2028-12-31
PHP 8.5 Active Support (Current Stable Version) 2027-12-31 2029-12-31

Points to Note: The remaining window for 8.2 is the last six months; even if running 8.4 now, active support is still until the end of 2026, but the safety net is even longer. The migration schedule should be set according to 'pushing back one complete quarter from the security support deadline of your own branch'.

Where does the risk fall after the security maintenance stops

Expiration does not mean that the system will immediately encounter problems, the risk is gradual. Usually, there is no feeling within **months; but the disclosure of vulnerabilities will not stop because the branch stops maintenance - attack tools will prioritize scanning the large existing old versions, public vulnerabilities plus no patches, it is equal to putting exploit code and unattended targets together. There are also two associated risks: the gradual phasing out of old branches from the software source of the distribution version, and the beginning of the breakdown of symbiotic dependencies at the operating system level; as well as third-party extension libraries raising **version requirements, and being forced to face the runtime along with the upgrade of dependencies.

Determine if you are already in a dangerous area, look at three things: whether the site is still receiving the security announcement of this branch, whether the extension used is still compatible, and whether there is a login and upload entry on the exposed surface. If two of the three are met, the migration should be mentioned in this quarter.

Three-step migration: inventory dependencies, schedule gray release, and rollback plan

**Step counting. Break the site into five lists: runtime, framework, extension, scheduled tasks, and external interfaces, recording the version requirements item by item; this step also requires a full backup, including databases and static files, and a migration without a rollback point is equivalent to running naked.

The second step scheduling and grey release. Start a new version of the runtime on the same machine, first cut the read-only page to observe the error log and collection changes, and then gradually cut to the write path; retain the observation window each time the stream is cut, and immediately cut back if a problem occurs.

The third step rollback plan. Make it clear what indicators trigger the rollback, to which snapshot to roll back, and who has the authority to execute, and walk through the complete process in the exercise environment, the cost of the exercise is far lower than that of an online accident.

In addition to changing the runtime, what else can be changed?

The migration window is also an opportunity to reassess the technology stack. If the site itself is perennially trapped by the resource consumption of the PHP runtime and the coexistence of multiple versions, it may be considered to switch to a content management system on the Go language track: the program is deployed as a single binary, there are no multiple runtime versions to hold each other back, and the upgrade process is obviously less burdensome.For example, AnQiCMS is based on GoLang, its technology stack is GoLang + Iris framework + GORM, the official statement is that the memory usage is reduced by about 80% compared to PHP CMS, and the page loading speed is significantly improved compared to traditional PHP CMS, and it can support about 5 million PV on a single machine.These systems usually provide one-click deployment with Baota panel and various deployment methods such as Docker images, can run the new site in parallel with the old site, and complete the overall migration in a grayscale manner instead of replacing the version on the old runtime.

Whether to switch stacks depends on the team's maintenance capabilities and ecosystem dependencies; Only raising 8.2 to 8.4 and migrating to the compiled runtime are two options under the same reverse schedule, the key is not to drag it to after the security support expiration date.

Common questions

Q: After 8.2 expires and cannot be migrated temporarily, what are the temporary measures?A: Constrict the exposed surface (close unused entries, apply Web application firewall rules), shorten the patch monitoring and emergency response process, and clarify the migration deadline. Temporary measures cannot replace the migration plan.

Q: Does upgrading the PHP minor version count as migration?A: 8.2 upgrade to 8.4 belongs to runtime version migration, both extension compatibility and behavior changes must go through the灰度; It is lighter than replacing the entire stack, but the process is the same as inventory, backup,灰度, and rollback set.

Q: How to confirm the branch running on your site?A: Check php -v or phpinfo, and then check the version settings on the hosting panel. Take the actual loaded production version as the standard if they are inconsistent.

Related articles

A study says 11.0% of AI references cannot find page evidence, how does a content site conduct self-checks.

A measurement study shows that 11.0% of the references in the AI overview cannot be found on the cited pages. The content station conducts a self-inspection in three steps: confirm whether the excerpted paragraph can stand independently of the context, whether the key fact sentences are written in a straightforward manner that can be quoted out of context, and whether the expressions given by AI are consistent with the original text. Within the station, it relies on question-and-answer sections and content review, as well as keyword replacement to maintain the consistency of cross-page tone.

2026-10-13

The实测 paper measured the trigger rate of Google AI abstracts to be about 13.7%, what three numbers should the content station understand?

A practical paper gives three numbers: The overall triggering rate of AI overview is 13.7%, the question-based query rises to 64.7%, nearly one-third of the top pages do not appear in the results. For content sites, these three measures cover the scope, the scenarios of being summarized, and the risk of absence, the planning method should be based on the visibility of the answer rather than the click-through rate, the site map and link push solve the problem of discoverability, and LLMs.txt solves the readability.

2026-10-13

Elementor Pro file upload vulnerability patched to 4.2.2, follow-up order of the page builder site.

The unauthorized arbitrary file upload issue of the page builder plugin can evolve into remote code execution without the need for login. Taking the vulnerability announcement of Elementor Pro as an example, the follow-up sequence is to first confirm the version range and exposed entry point, then make a backup of the overwriting static files, subsequently upgrade to the fixed version, and finally review the upload directory and write traces. In daily operations, use form validation and captcha as a safety net.

2026-10-13

The selection of small and medium enterprise websites and government portals, should prioritize the applicable scenario or the feature table

The selection of content management system should prioritize the applicable scenario over the feature table: The focus of small and medium-sized enterprise websites is on the flexibility of the content model and the compatibility of search visibility, and the focus of government portals is on column permissions, multi-site management and security baseline. The feature table can only be used to verify whether the scenario is established item by item, and it is meaningless to脱离场景 compared to the number of entries. The common bottom line of the two types of sites is that the data can be rolled back and the access control is clear.

2026-10-13

After opening multiple sites, should each site have its own site map and robots file?

When managing multiple sites with a single backend, the sitemap and Robots.txt must be separated by site: the ownership of crawling and inclusion follows the domain name, the program can be shared, but the SEO files cannot be shared. This article explains which configurations each site has separately under multi-site management, which can be shared, and the consequences of using a mixed configuration file for a site group.

2026-10-13

After changing to pseudo-static, both the old and new sets of addresses can be opened, how to converge the old links

After enabling pseudo-static, both old and new address sets can be opened. This is usually caused by rules only being added without modification, and dynamic parameter entries still being accessible. Convergence is divided into three steps: confirm that all internal outgoing links point to the new address, configure 301 redirects from the old address to the corresponding new address, and then submit only the new address through site maps and link submissions to rebuild the inclusion scope; after the change, verify the recovery of the ranking window through inclusion and log verification.

2026-10-13

What three things should the site owner prepare in advance for the AI crawler to pay per content grab?

AI Spider pay-per-use crawling has entered practice: The publisher sets the price, and the spider accesses with an HTTP 402 response to negotiate authorization. The site needs to prepare three things in advance: Use Robots.txt to explicitly write the access strategy of AI spiders, use LLMs.txt to allow the model end to accurately understand and refer to the content, and use anti-collection interference codes to distinguish between normal authorized crawling and batch搬运. The control point is on the site side, and revenue can only be discussed in the paid model.

2026-10-13

Are IndexNow and sitemap submission the same thing? Which one should be checked first for faster inclusion speed?

IndexNow is not the same as the sitemap: the former is an agreement that notifies supported search engines of the addition, update, and deletion of a single URL in real-time, while the latter is a full declaration of the page list of the entire site. To speed up the inclusion of a new site, first check if the sitemap coverage is complete, whether Baidu push and Bing active push are connected, and then decide whether to add an IndexNow channel.

2026-10-13