I can't update Wordpress or install plugins on my local Docker installation of Wordpress?

Posted 
 by 
rob
 in 
Wordpress

I get the message: "To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host."

How do I fix this? I'm running the docker-compose version locally.

Reply
Edit
Delete
You can use Markdown to style your post.

Responses

rob OP 1 month ago *

Solution 1

Add the following to my wp-config.php file:

define( 'FS_METHOD', 'direct' );

You're supposed to put it right before the line that says:

/* That's all, stop editing! Happy publishing. */

Solution 2

Now if that doesn't work, you can try this:

  • Connect to your Docker container
  • run this command while you're in the Wordpress folder:
chown www-data:www-data -R *

This is not recommended for live servers, just to fix issues with local development environments. You'll have to figure out permissions properly on your web server if you're running this live.

Neoscroll Logo
Don't agree? Join the community & post your take (or forever hold your peace)