Skip to content

Instantly share code, notes, and snippets.

View cmoa-webmaster's full-sized avatar

CMOA Webmaster cmoa-webmaster

View GitHub Profile

Migrate WordPress Database

Copy your database from one WordPress install to another with one click from the dashboard with WP Migrate DB Pro.

Step 1: Get Plugin

Go to deliciousbrains.com, login, and download the latest versions of the plugin. Account info and License Key are available in 1Password.

Step 2: Install and Activate

Install and activate all WP Migrate DB Pro plugins to your local WordPress plugins directory. These plugins need to be active on both sites.

New installations will need the plugin license key. Copy the key from 1Password and paste in the plugin’s settings: Admin > Tools > Migrate DP Pro > Settings.

@cmoa-webmaster
cmoa-webmaster / localhost-wordpress-plugin-permissions.md
Created January 22, 2020 20:27
Working locally on a WordPress site you may find you are unable to update WordPress plugins.

Localhost WordPress Plugin Permissions

Working locally on a WordPress site you may find you are unable to update WordPress plugins. WordPress will ask for web server credentials. This is do to permissions issues between Docker and your local OS. To get around this issue, execute the following commands from the directory where your docker-compose.yml file lives.

  1. Run docker ps to figure out the container name. It should be something like ”themename_wordpress_1”.
  2. Run docker exec -it [container_name] /bin/bash/. That should put you in /var/www/html within the docker container.
  3. Run chown www-data:www-data wp-content/. You should see some evidence that permissions have been updated.
  4. Run exit to close the docker container.
  5. You now should be able to update plugins.