Great work on VDD! I am running into an issue in two areas with Drupal 8.

1) when I try to install a new module it's asking me to enter my ftp information, and then when I enter my credentials to the box, update manager comes up prompting me to enter FTP credentials. This never happened when I used a webhost.

2) if I try to create an article and add an image, I get "The file could not be uploaded."

All I have done so far is "vagrant up" and installed drupal 8 according to the instructions provided.

Is there anything I'm missing here?

Thanks,

Scromie

Comments

scromie’s picture

Has anyone had a chance to look at this?

videographics’s picture

I agree. VDD is super-useful. But as far as I can tell, anyone using VDD is going to encounter the following warnings when trying to install a module from the modules page:

Failed to connect to the server. The server reports the following message:
Cannot connect to FTP Server, check settings

For more help installing or updating code on your server, see the handbook.
WARNING: You are not using an encrypted connection, so your password will be sent in plain text. Learn more.

videographics’s picture

I've only encountered and tested this with D7. Unsure if this happens in D8.Here's how to fix this problem by installing ftp and enabling it for authenticated users:

Make sure your vagrant vm is running. Then:

vagrant ssh
sudo apt-get install vsftpd

Edit the ftp config file to enable authenticated users to ftp:

sudo nano /etc/vsftpd.conf

Then uncomment the following lines:

local_enable=YES
write_enable=YES

Save the file. (Control-x, y, return) Restart ftp with:

sudo /etc/init.d/vsftpd restart

After this, you should be able to install modules from the modules page. Login with "vagrant" for the username and password if/when asked.

Obviously, it'd be best if we didn't have to do this.

druplicate’s picture

This is not the preferred way to install modules as it's not secure.

The vast majority of developers use Drush. VDD includes Drush aliases to make it easy.

videographics’s picture

Issue tags: +ftp, +sftp

On a local vm, this really shouldn't be a security issue. We're already running ssh with vagrant/vagrant and mysql with root/root. (Most of us are running nfs as well.) ftp isn't going to make a difference.

Yes, most of us use drush most of the time to install modules, but if installing from the modules page it's a valuable enough function to be included in drupal core, it should be supported here. If vdd's design goal is to create a seamless working dev environment for Drupal, it's pretty bad form to have it intentionally breaking a core capability of D7.