Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
how do you update your wp-config file in the docker container, can only see wp-content in the volume?
Execute the bash attached on your container
docker exec -it <CONTAINER ID> /bin/bash
it should leave you at the working directory, if no just navigate to where the wordpress are installed and use vim, or you editor of preference.
You can also share volumes and edited in the host. I prefer that technique
Thank a lot for your gist!
I 'bypassed' the FTP credential page but got blocked by "Could not create directory" after the installation had finished.
For people with Docker, log into interactive session of your container:
docker exec -u root -it {CONTAINER_ID} /bin/bash
chown -R www-data wp-content
chmod -R 755 wp-content
@nguyenlamlll Thank you.
Great thanks for this, it worked for me with both indications in my docker
Thanks a lot, you saved me hours)
For me FS_METHOD: direct
works only with permission www-data.
Try to change permissions for wp-content to www-data or add your user to www-data group.
sudo adduser ${USER} www-data
This also worked for me.
Thanks guys, nice solution!
(after transfering wordpress to another host, i had this problems).
Thanks a lot!
I'm using docker for wordpress development.
For me, works next:
I added define('FS_METHOD', 'direct');
to function.php file of my theme.
And then:
docker exec -u root -it {CONTAINER_ID} /bin/bash
chown -R www-data wp-content
chmod -R 755 wp-content
Because of this PR, there is no need to change the permissions within the container :)
thanks so much!
thank's a bunch ! works perfect
Thanks!
very helpful, thanks Diego!
You save my day ❤️
how do you update your wp-config file in the docker container, can only see wp-content in the volume?