Update/upgrade prompting for FTP credentials on local Trellis

Hey guys, my local Trellis sites prompt me for FTP credentials when I try to update plugins or upgrade WP core.

I’m guessing this is a permissions issue but I never touched the default permissions. I’m also not sure whether this is something I should troubleshoot on my local filesystem or through my Vagrant shell.

Updates with Composer work just fine (for core and plugins) but I have several paid plugins which I manage through composer that need to be hosted remotely and step 1 is to update the plugins locally so I can zip up the new versions to host remotely.

Thanks for any help!

Update: after running vagrant destroy and deleting my .vagrant file and then vagrant up again, the issue persists.

Adding define('FS_METHOD', 'direct'); to my application.php seems to get me one step closer to pinpointing the issue:

But I am still at a loss

I can think of a few things that could contribute to this…

  • get_ini('open_basedir')
  • get_ini('disable_functions')
  • permissions/FACL issue (wp doesn’t have permission to create app/upgrade/)
  • network issue (zip is 0 bytes because wp can’t access the internet)