User Tools

Site Tools


berkeleylug:wordpress

Updating Plugins

Debian (at least >= 12)

  1. see: https://berkeleylug.com/wp-admin/plugins.php for the status of the plugins (and configuration/activation, etc.)
    1. reload the page to refresh the information status
  2. use Debian package(s) as feasible, otherwise …
  3. download .zip file
    1. to find out where to download from:
      1. generally –> (View details / Visit plugin site –>) WordPress.org Plugin Page / Plugin Homepage / Visit plugin site
      2. and then hopefully a download link on such page or reasonably accessible thereunder - but alas, some sites/pages/plugins don't offer that.
    2. place the .zip file on host, and extract and install it
      1. extract and place in suitably named directory (generally same name as plugin) under /var/lib/wordpress/wp-content/plugins/
        1. note directories under there don't by their name determine the name of the plugin as it shows in WordPress, but rather the contents determine the name by which it shows in WordPress
          1. e.g. if there are two differently named directories with otherwise same content, both will show as two separate plugins with same name in WordPress and may be acted upon and then show, e.g. different status or versions, etc. - so don't do that
        2. only use/create directory names that start with matching * file glob for plugins to actually show in WordPress (e.g. otherwise use names starting with . for temporary/hidden purposes)
        3. be sure to use appropriate ownerships/permissions
          1. www-data:www-data and writable by www-data allows WordPress to update via https://berkeleylug.com/wp-admin/plugins.php
          2. root:root and not writable by www-data to lock it down (may also be sym linked to location on /usr to be mostly mounted ro)
  4. alternatively one can (attempt to) update via update now link for the plugin on https://berkeleylug.com/wp-admin/plugins.php
    1. generally preferable, as feasible, to not do that but instead manually download the .zip file and install as noted further above (notably for security reasons, etc.), but sometimes may not be feasible (e.g. unable to determine location to manually download .zip file from)
    2. using approach update now for the plugin on https://berkeleylug.com/wp-admin/plugins.php, WordPress attempts to locally change the files
      1. see information on ownerships/permissions further above
      2. if that fails it defaults to failover attempting (or prompting to attempt) via FTP(S) to access and alter the files on web site that way
        1. by adding define('FS_METHOD', 'direct'); to /etc/wordpress/config-berkeleylug.com.php we disable WordPress from attempting FTP(S), this may be useful for diagnostic purposes (e.g. what it's failing to update/write/etc. and where)
  5. reload https://berkeleylug.com/wp-admin/plugins.php to get updated status, Activate/Deactivate, use/review Settings, etc. as relevant and appropriate

Updating Themes

  1. rather similar to Plugins as noted above, except:
    1. /var/lib/wordpress/wp-content/themes instead of /var/lib/wordpress/wp-content/plugins/
    2. There may not be a "download" or download for .zip file or equivalent.
berkeleylug/wordpress.txt · Last modified: 2024-09-10T23:53:02+0000 by michael_paoli_admin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki