fauria / docker-vsftpd

🐳 vsftpd Docker image based on Centos 7. Supports passive mode and virtual users.
https://hub.docker.com/r/fauria/vsftpd/
Apache License 2.0
414 stars 341 forks source link

Add FTP support to oficial WordPress image #67

Open albreis opened 3 years ago

albreis commented 3 years ago

I have this stack file:

version: '3.2'

services: wordpress{id}: image: wordpress:latest deploy: resources: limits: cpus: '0.30' memory: 512M hostname: {id} ports:

FTP is working for delete, create, etc. But I can't install plugins and theme from WordPress admin panel with this notice: Installation failed: Could not create directory.

How configure fauria/vsftpd for working with WordPress or any other image in a separeted service?

alainseys commented 2 years ago

Hy, @albreis

What is the setting of your wordpress config file (config.php) does it have the following rule ? define('FS_METHOD', 'direct');`

if not add this settings and as you figured out you need to give the folder you want to edit RW permissions.

volumes: 
            - wordpress:/var/www/html:**rw**

Worpress wil then be able to connect to you application data directly and this should solve your issue