How to fix (Wordpress asking for FTP Credentials)

## groups $(whoami) | cut -d' ' -f1 sudo chown -R $(whoami):staff wwwroot ## or simple define('FS_METHOD', 'direct');

1 Response

This assumes WordPress is running on Apache as the _www user in the `_www` group. Plus `htdocs` is a relative path, not absolute. I imagine this only works on your server when you're in a specific directory.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.