WPCloudDeploy Documentation

Updating PHP Options For A Site

Starting in Version 4.0.0 of WPCD, we introduced a new team option that specifies whether a team member can add or update PHP specific options.  This locks down a potentially vulnerable area because certain PHP options can provide server-wide access.

With this new option the default is to allow only WP ADMINS and SUPER ADMINS to set PHP options for a site.  This, as you might expect, can be changed by assigning the permission to particular teams.  However, for installations prior to version 4.0.0, this option will not show up in the TEAMS screens. This can be forced to be visible as follows:

  1. Enable the PERMISSION LIST menu item
  2. Add the new permission to the PERMISSION LIST
  3. Update designated teams access to the new item

More details about each of the above listed steps are below:

1. Enable the PERMISSION LIST menu item.

To enable the PERMISSION LIST menu item, you need to add the following entry to your wp-config.php file:

define('WPCD_SHOW_PERMISSION_LIST', true);

2. Add The New Permission to the PERMISSION LIST

  • Go to WPCLOUD DEPLOY -> PERMISSION LIST
  • Click the ADD SERVER/APP PERMISSION button at the top of the screen
  • For the title enter Update Site PHP Options
  • For Object Type, set it to APP
  • For Permission Name, enter wpapp_update_site_php_options
    • NOTE: all lower-case!
  • For Permission Category, choose wpapp.

Click the PUBLISH button.

3. Update designated teams access to the new item

Now you can use the WPCLOUD DEPLOY -> TEAMS menu option to assign this permission to your teams.

4. (Optional) Remove the PERMISSION LIST menu item

You can now remove the PERMISSIONS LIST menu item by removing the wp-config.php entry that was added in step 1 above.

Share: