INFRA-223: Insufficient privileges broke plugin install

Metadata

Source
INFRA-223
Type
New Feature
Priority
Critical
Status
Closed
Resolution
Fixed
Assignee
Alan Harnum
Reporter
Jonathan Hung
Created
2018-10-23T12:01:24.419-0400
Updated
2018-10-23T12:54:52.415-0400
Versions
N/A
Fixed Versions
N/A
Component
N/A

Description

I was looking into SNOW-39 and it appears to be a caching issue. I tried installing the Super Cache plugin (https://wordpress.org/plugins/wp-super-cache/) but it failed upon install. It appears there are insufficient privs.

See: https://snow.idrc.ocadu.ca/wp-admin/options-general.php?page=wpsupercache

Now the PHP error is appearing on all pages. I have put up a Maintenance message on the site for now.

What would be the ideal solution in this case? Should we grant specific permissions this case only, or should we find another solution?

Environments

SNOW, Wordpress

Comments

  • Alan Harnum commented 2018-10-23T12:54:08.079-0400

    Fixed as follows:

    • SSH'd into server
    • changed to the production SNOW install directory at /var/www/afe0ab1f
    • removed these two lines from wp-config.php
      • define('WP_CACHE', true); //Added by WP-Cache Manager
        define( 'WPCACHEHOME', '/var/www/snow-dev.idrc.ocadu.ca/wordpress/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
    • At this point, the Super Cache plugin could be disabled
    • Turned off maintenance mode

    I believe this issues relates to the WPCACHEHOME variable pointing to a nonexistent directory. Possibly this is what the plugin sets by default, but because the install failed the plugin could not be properly configured to use the correct directory.