XAMPP Version: 7.1.9-0
lampp status says everything is running
I'm trying to do WordPress development on my localhost using the XAMPP stack, everything is installed in /opt/lampp
WordPress is successfully installed and running, but when I try to update a plugin or install a new one, I get this error message in the WordPress Dashboard>Plugins.
Update Failed: Could not create directory.
I ran lampp security and configured passwords for everything, including the FTP user 'daemon'.
/opt/lampp/htdocs/site/wp-content/plugins is set for 755 permissions, but I've also tried 777
/opt/lampp/htdocs/site/wp-content/plugins is owned by nobody:nobody (as most everything is in /opt/lampp), but I've also tried chowning to www-data, root, my local user account, daemon, and none of them make any difference
When WordPress prompts me for FTP credentials after clicking Update on the plugin, I'm logging in with daemon + the password I created for FTP user when I ran lampp security, but I've also tried logging in as nobody, root, and my WordPress username for the particular sites, none of which work. I select FTP rather than SFTP on the radio buttons. I use localhost for hostname.
I've tried adding define(‘FS_METHOD’,’direct’); to the very bottom of my wp-config.php file, doesn't help
I've checked for a vsftpd.conf file in order to add write_enable=YES to it, but it doesn't seem to exist anywhere, inside or outside of my XAMPP directory (/opt/lampp)
I'm kinda stumped here, I'm not sure what else could be going wrong. Does anyone know what I'm missing here? I don't think it's a WordPress issue, because on Windows using MAMP everything works without a hitch, so I'm fairly confident it must be something that I'm missing or doing wrong with XAMPP.