Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save duyhenryer/bf5cbc65fe32be923ecdfb6be4a6fb5c to your computer and use it in GitHub Desktop.
Save duyhenryer/bf5cbc65fe32be923ecdfb6be4a6fb5c to your computer and use it in GitHub Desktop.
Install update WordPress plugins without providing ftp access

Install WordPress plugins directly (without FTP)

Put this on your wp-config.php

/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
docker exec -u root -it {CONTAINER_ID} /bin/bash
chown -R www-data:www-data wp-content
chmod -R 755 wp-content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment