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

3 Answers
3

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

Leave a Comment