jquery / infrastructure-puppet

Puppet configuration for jQuery Infrastructure servers.
MIT License
7 stars 9 forks source link

Upgrade WordPress hosts to PHP 8 #6

Closed Krinkle closed 1 year ago

Krinkle commented 6 years ago

The wp hosts are currently on PHP 5. More specifically, PHP 5.4, which has been EOL since 2014.

A safer option might be PHP 5.6, which has support for another year. On the other hand, there have been very few breaking changes and WordPress themselves currently recommend PHP 7.2. Seems worth trying to upgrade there in one step.

Quote from https://github.com/jquery/infrastructure/issues/312:

As part of the infra refresh we will (for now) continue to use WordPress for the foreseeable future. (ref jquery/infrastructure-puppet#8, jquery/infrastructure#449, and subtask for WordPress: jquery/infrastructure-puppet#6)

Notable changes:

To do:

Krinkle commented 1 year ago

Since last month, the stage.* sites for all doc sites under .jquery.com, .jquery.org, .jqueryui.com, and, .jquerymobile.com have been provisioned and switched over in DNS to wp-02.stage which runs WordPress 6 and PHP 7.4. E.g. https://stage.jquery.com and https://stage.api.jquery.com, which are open for testing.

The first batch of production sites has been switched over as well:

Krinkle commented 1 year ago

Next batch is rolled out.

wp-04:

wp-05:

Krinkle commented 1 year ago

Next batch is rolled out to the new infra with PHP 8, WordPress 6, on Debian 12 Bookworm.

wp-04:

wp-05:

Changes of note:

Left on old infrastructure:

Krinkle commented 1 year ago

TODO:

I've created wp-03.stage.ops.jquery.net as placeholder for the new droplet to replace wp-02.stage

Krinkle commented 1 year ago

I've decommisioned wp-02.ops and wp-03.ops.

wp-03.ops was originally created 23 October 2014 and ran Debian 7, nginx 1.10.3, PHP 5.4.45-1~dotdeb+7.1.

wp-01.ops is still pending archiving of plugins.jquery.com at https://github.com/jquery/infrastructure-puppet/issues/29.

Krinkle commented 1 year ago

wp-02.stage is now decomissioned as well, that brings all WordPress sites to new infra and running PHP 8.