WP Asking for FTP Credentials with XAMPP Localhost

Total newbie here. I'm a pretty good user of applications, but have never written a single line of code. Installed XAMPP and WP, purchased a template from Envato and plan on working on it over the weekend. Followed instructions for both WP and XAMPP, and all seems to be fine. Running solely on local machine, MAC running Mojave.

Go to install the .zip file on WP, and it asks for credentials for FTP. Not sure what I need to put in here, or what to do to change in order to install the .zip file for my template site.

Any suggestions or recommendations are appreciated in advance.

JVN

Topic localhost xampp ftp Wordpress

Category Web


In my case, only adding the 'define' line in my wp-config wasn't working.

I also had to give full permission to admin & everyone to read/write my xampp folder and its subfolder :

  • right-click on the folder itself
  • give permission to modify by clicking on the lock
  • change admin & everyone permission to read and write in the 'sharing & permissions' menu
  • click on the ... below (next to + and - buttons) and select (apply to enclosed items)

I don't know if this is related, but after this change, my MySql Database stopped working. I found this debug for that issue :

  • open terminal and enter : sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start

Hope this helps.


In my case Im using a Linux machine (Debian) and I reckon there must be an authorization step included into this process to get the update done. So, this is what I got in the first trial:

Downloading update from https://downloads.wordpress.org/release/wordpress-5.7.1-no-content.zip…

The authenticity of wordpress-5.7.1-no-content.zip could not be verified as no signature was found.

Unpacking the update…

Could not create directory.

Installation failed.

Thanks in advance!

So my solution was Updating WP manually. Here the details to follow: https://wordpress.org/support/article/updating-wordpress/#manual-update


Congratulation Jon, welcome to the WordPress world!

To fix the issue, just add the following line of code in your installed WordPress's wp-config.php file. It's a PHP constant declaration which tells the WordPress to avoid the FTP. That's it.

define( 'FS_METHOD', 'direct' );

For more info: https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.