wordpress: maintain charm, port to xenial and bionic, fix critical deployment issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wordpress (Juju Charms Collection) |
Fix Released
|
Undecided
|
Matthew Ruffell |
Bug Description
[Impact]
When you deploy wordpress via cs:trusty-
> PHP Update required
>
> WordPress has detected that your site is running on an insecure version of PHP.
If you try and target a newer series like xenial or bionic, the deploy fails due to specific php package naming, e.g. php5-<name>.
I have spent some time overhauling this charm due to a customer complaint.
Things that have been fixed:
- This charm now supports xenial and bionic, and is focal ready. (eoan works).
- This charm now does a sha256 checksum on wordpress download.
- This charm now works with memcached, and tests do not leave the charm in a bad state. Note, the condition of completing the wordpress install is still required before adding the memcached relation.
- All tests now pass.
- Supports latest versions of wordpress.
- Charm icon is now circular.
Bugs Fixed:
LP #1827164 wordpress charm stuck on trusty (this bug)
LP #1706045 Updating the charm icon
LP #1603153 Tests pass, but leave wordpress in an errored state
LP #1317644 Can't install wordpress on local provider with trusty host
LP #1593498 apache2 borked
LP #1521190 Wordpress deploy fails on install, config-changed etc.
LP #1491995 Can't upload files to wordpress
LP #1491996 Wordpress config help for wp-content references dead link
LP #1494202 Wordpress charm install currently fails on missing /etc/php5/conf.d directory
LP #1491901 Wordpress max upload size set to 2mb, no way to change
LP #1064846 install does not check errors
[Fix]
The source code of the charm can be found here:
https:/
You can review a "git diff" of the charm compared to cs:trusty-
https:/
I am requesting Promulgation of cs:~mruffell/
[Testcase]
You can deploy the charm like so:
juju deploy cs:~mruffell/
juju deploy mysql
juju add-relation wordpress mysql
juju expose wordpress
Complete the install, by navigating to the exposed ip address.
If you wish to test memcached:
juju deploy memcached
juju add-relation memcached wordpress
Navigate to the dashboard, and at the warning at the top of the page about caching, click it, scroll to the bottom and click save. This is necessary as of LP #1057212 Memcached relation fails if wp install isn't complete
[Regression Potential]
While the base charm has not changed architecturally, there may be problems on upgrading an existing deployment with this new charm.
I have NOT tested a trusty deployment, upgrading from trusty to xenial and seeing if it works, although, if the wp-content folder is placed in the same place, there is a chance of it working.
For new deployments, this version of wordpress charm supports all existing config options, and will match the existing workflows that users expect.
Thus, I do not expect any regressions for fresh deployments.
description: | updated |
Changed in wordpress (Juju Charms Collection): | |
status: | New → In Progress |
assignee: | nobody → Matthew Ruffell (mruffell) |
summary: |
- wordpress charm stuck on trusty + wordpress: maintain charm, port to xenial and bionic, fix critical + deployment issues |
tags: | added: sts |
This is excellent Matthew. Thanks for moving this forward.
Do you know how to make a promulgation request? It involves adding a post
in the Juju discourse under the Charming category.
On Wed, 8 Jan 2020 at 17:10, Matthew Ruffell <email address hidden>
wrote:
> ** Description changed: wordpress- 5 leads to a security warning wordpress- 5, the user is /jaas.ai/ u/mruffell/ wordpress/ 0 wordpress- 5 here: /paste. ubuntu. com/p/xnxrdgBt9 k/ wordpress- 0 to the official wordpress- 0
>
> - This charm should be updated to a more recent series. Installing
> - Wordpress via cs:trusty/
> - presented to the user once Wordpress is configured:
> + [Impact]
> +
> + When you deploy wordpress via cs:trusty-
> + presented with a warning that their php install is out of date, and
> + cannot proceed any further:
>
> > PHP Update required
> >
> > WordPress has detected that your site is running on an insecure
> version of PHP.
> +
> + If you try and target a newer series like xenial or bionic, the deploy
> + fails due to specific php package naming, e.g. php5-<name>.
> +
> + I have spent some time overhauling this charm due to a customer
> + complaint.
> +
> + Things that have been fixed:
> + - This charm now supports xenial and bionic, and is focal ready. (eoan
> works).
> + - This charm now does a sha256 checksum on wordpress download.
> + - This charm now works with memcached, and tests do not leave the charm
> in a bad state. Note, the condition of completing the wordpress install is
> still required before adding the memcached relation.
> + - All tests now pass.
> + - Supports latest versions of wordpress.
> + - Charm icon is now circular.
> +
> + Bugs Fixed:
> + LP #1827164 wordpress charm stuck on trusty (this bug)
> + LP #1706045 Updating the charm icon
> + LP #1603153 Tests pass, but leave wordpress in an errored state
> + LP #1317644 Can't install wordpress on local provider with trusty host
> + LP #1593498 apache2 borked
> + LP #1521190 Wordpress deploy fails on install, config-changed etc.
> + LP #1491995 Can't upload files to wordpress
> + LP #1491996 Wordpress config help for wp-content references dead link
> + LP #1494202 Wordpress charm install currently fails on missing
> /etc/php5/conf.d directory
> + LP #1491901 Wordpress max upload size set to 2mb, no way to change
> + LP #1064846 install does not check errors
> +
> + [Fix]
> +
> + The source code of the charm can be found here:
> + https:/
> +
> + You can review a "git diff" of the charm compared to
> cs:trusty-
> + https:/
> +
> + I am requesting Promulgation of cs:~mruffell/
> + wordpress charm.
> +
> + [Testcase]
> +
> + You can deploy the charm like so:
> +
> + juju deploy cs:~mruffell/
> + juju deploy mysql
> + juju add-relation wordpress mysql
> + juju expose wordpress
> +
> + Complete the install, by navigating to the exposed ip address.
> +
> + If you wish to test memcached:
> + juju deploy memcached
> + juju add-relation memcached wordpress
> +
> + Navigate to the dashboard, and at the warning at the top of the page
> + about caching, click it, scroll to the bottom and click save. This is
> + necessary as of LP #1057212 Memcached relation fails if wp install isn't
> + complete
> +
> + ...