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.



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

  • Thanks, Obi! I will edit the .php file and insert the code you have provided. Does it matter where I insert the new code into the file? Is there any code that needs to be removed? I thank you for your time, expertise and consideration.
    – Jon V
    Nov 11 '18 at 13:51
  • You don't have to remove any code and there's no specific place but you can add right after the define( 'WP_DEBUG' ... ); constant.
    – obiPlabon
    Nov 12 '18 at 3:29

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

  • That normally happens when the user the web server is running as (www-data I think on Debian) does not have permission to write to the WordPress installation files.
    – Rup
    Apr 18 at 23:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.