Docker4drupal: Adding FTP to update modules

Created on 8 Sep 2016  路  9Comments  路  Source: wodby/docker4drupal

Hello. Great work with this configuration! Do you have any plans to add ftp server to update modules easily?

question

All 9 comments

@suricactus what do you mean?

When there are updates of modules or themes, I'm redirected to page asking for FTP credentials. I know I can achieve the same thing with drush pm-update, but it would be nice to do it with UI too.
image

Hello, I think the problem is with users permissions.. the drupal-php images need to have users like root to work with volumes..

@suricactus You can use docker-compose exec php sh and $chmod 777 modules, then exit the container with CTRL+p+q and use docker-compose exec --user 82 php drush dl module.

@suricactus Also, you should read the p3 of https://github.com/Wodby/docker4drupal#instructions

...
$ sudo chgrp -R 82 sites/default/files
$ sudo chmod -R 775 sites/default/files
...

It should helps.

Is there a solution for Windows?

@willcode4food no, it's for Linux. You should use an appropriate Windows commands.

I was able to resolve this on Windows. You have to unset readonly permissions and make sure they are propagated to all the subdirectories and files.

  1. Right-click on the root directory of the drupal installation and select Properties
  2. Uncheck Read-only and click Apply
  3. You should be prompted to Confirm Attribute Changes and make sure Apply Changes to this folder, subfolders and files is selected. Click Ok

Should be good to go after that. Hope this helps other windows users.

Thank you @willcode4food I'll add it to readme.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webdobe picture webdobe  路  5Comments

featherbelly picture featherbelly  路  5Comments

magick93 picture magick93  路  7Comments

rsanzante picture rsanzante  路  7Comments

ChristianNally picture ChristianNally  路  8Comments