admin管理员组文章数量:1125600
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
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
Share Improve this question asked Nov 10, 2018 at 4:31 Jon VJon V 411 gold badge1 silver badge2 bronze badges3 Answers
Reset to default 14Congratulation 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://developer.wordpress.org/apis/wp-config-php/#wordpress-upgrade-constants
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
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.
本文标签: WP Asking for FTP Credentials with XAMPP Localhost
版权声明:本文标题:WP Asking for FTP Credentials with XAMPP Localhost 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736629982a1945757.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论