本地主机上载和安装WooCommerce的Wordpress FTP连接设置 [英] Wordpress FTP connection setting for localhost to upload and install WooCommerce
本文介绍了本地主机上载和安装WooCommerce的Wordpress FTP连接设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法上传WooCommerce .zip文件,也无法在本地主机上安装插件。每次单击安装按钮Wordpress时,都要求FTP凭据的连接信息,如下图所示:
I can't upload WooCommerce .zip file and install the plugin on the local host. Every time I click install button Wordpress asking for connection information for the FTP credentials like this pic:
即使我艰难地进入了本地主机
Even tough I entered localhost for the hostname and admin as username, it doesn't work!
推荐答案
尝试:
chmod 777 /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/plugins/
chmod 777 /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/themes/
然后将它们添加到 wp-config。 php
:
/** Add here*/
define('FS_METHOD','direct');
define("FTP_HOST", "localhost");
define("FTP_USER", "my_wordpress_user");
define("FTP_PASS", "password");
/** To here*/
在上面的行中, my_wordpress_user
和 password
是wordpress中使用的密码。
In the line above, my_wordpress_user
and password
are the ones used in wordpress.
这篇关于本地主机上载和安装WooCommerce的Wordpress FTP连接设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文