Wordpress Update: verschil tussen versies

Uit MakerSpace Leiden
Naar navigatie springen Naar zoeken springen
Luke (overleg | bijdragen)
Luke (overleg | bijdragen)
Add subheading formatting
 
(3 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
[[Category:Servers network & websites]]
[[Category:Servers network & websites]]
Unfortunately - the default ubuntu install is a bit too broken to allow for an automated update in general.


==Core + Plugin updates==
==Prerequisites==
Follow the following process
# [https://makerspaceleiden.nl/wp-admin Log into WordPress] with a user that has administrator access.
# Navigate to the [https://makerspaceleiden.nl/wp-admin/update-core.php 'Updates' page]<br  />
# Review the available updates. <br  />
# Work through the updates one at a time starting from smallest updates, minor and patch releases.


== Large updates ==
* WordPress admin credentials
* Hetzner konsoleH credentials


The manual update process for simple releases is as follows:
==Major Releases of WordPress Core==


0) Read the rel notes https://codex.wordpress.org/Version_VERSION (substitute the right version number for VERSION)
# Read the releases notes https://codex.wordpress.org/Version_VERSION (substitute the right version number for VERSION)
# Consider making a backup of the database. This can be done via the Hetzner konsoleH control panel.
# Apply update using the [https://makerspaceleiden.nl/wp-admin/update-core.php Updates page]
# Cursory tests and declare victory.
# Then let the mailing list know and ask people to be on the alert for issues.


1) Consider making a backup of the database:
==Minor Core + Plugin updates==
 
Follow the following process
    umask 077
# [https://makerspaceleiden.nl/wp-admin Log into WordPress] with a user that has administrator access.
    mysqldump  --single-transaction --quick --lock-tables=false wordpress > ~/wordpress-pre-VERSION.sql
# Navigate to the [https://makerspaceleiden.nl/wp-admin/update-core.php 'Updates' page]
 
# Review the available updates.
2) Fetch a recent copy from https://wordpress.org/download/releases, check, unpacked and _rename_ it:
# Work through the updates one at a time starting from smallest updates, minor and patch releases.
 
Warning - do not do this in /usr/share - as it unpacks in wordpress rather than something version number namespaced.
 
    curl -O https://wordpress.org/wordpress-VERSION.tar.gz
    openssl sha1 wordpress-VERSION.tar.gz
    tar zxf wordpress-VERSION.tar.gz
    sudo mv wordpress /usr/share/wordpress-VERSION
 
3) Get some permission sanity
 
    cd /usr/share
    sudo chgrp -R www-data wordpressVERSION
    sudo chmod -R o-rwx wordpress-VERSION
 
4) Take risk (after scanning the release notes) and copy the old config across
 
    sudo cp wordpress-4.9.7/wp-config.php wordpress-4.9.8
 
And link it in
 
    ln -s /usr/share/wordpress-VERSION /usr/share/wordpress
 
5) Test cursory and declared victory. Then let the mailing list know and ask people to be on the alert for issues.

Huidige versie van 13 mei 2025 19:42


Prerequisites

  • WordPress admin credentials
  • Hetzner konsoleH credentials

Major Releases of WordPress Core

  1. Read the releases notes https://codex.wordpress.org/Version_VERSION (substitute the right version number for VERSION)
  2. Consider making a backup of the database. This can be done via the Hetzner konsoleH control panel.
  3. Apply update using the Updates page
  4. Cursory tests and declare victory.
  5. Then let the mailing list know and ask people to be on the alert for issues.

Minor Core + Plugin updates

Follow the following process

  1. Log into WordPress with a user that has administrator access.
  2. Navigate to the 'Updates' page
  3. Review the available updates.
  4. Work through the updates one at a time starting from smallest updates, minor and patch releases.