WordPress needs to access your web server?
It was Thursday night and I decided to learn some new tricks on WordPress. I started to build a test environment using Docker.
Here is my docker-compose.yml file:
Then started my Terminal, and located the folder that my yml file stored, with the command:
docker-compose up -d
Everything went pretty smoothly. WordPress installed! Now I went to the second step and tried to install plugins and here comes the warning:
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.
Googled this issue around and found the most simple and useful solution:
define( ‘FS_METHOD’, ‘direct’ );
Problem solved!!! Happy end. Alright, time for a coffee break.