[英]Failed to connect to FTP Server on XAMPP (Mac)
I have installed xampp and wordpress, which I run on my local host.我已经安装了在本地主机上运行的 xampp 和 wordpress。 When I try to make changes, eg.
当我尝试进行更改时,例如。 remove plugins it keeps asking me for the following:
删除插件它不断要求我提供以下内容:
hostname
FTP username
FTP password
I know the username and the password but I don't know what to type in hostname.我知道用户名和密码,但我不知道在主机名中输入什么。 I tried "localhost" or path to the actual wp Wordpress folder (/Applications/XAMPP/xamppfiles/htdocs/projects/wp)- both don't work.
我尝试了“localhost”或实际 wp Wordpress 文件夹(/Applications/XAMPP/xamppfiles/htdocs/projects/wp)的路径 - 两者都不起作用。
Please note that I have granted all permissions to this user.请注意,我已授予此用户所有权限。 I feel that the hostname I put is wrong.
我觉得我输入的主机名是错误的。
Can you please help me out with this?你能帮我解决这个问题吗? I'm stuck on this (I guess) basic step and can't do anything more.
我被困在这个(我猜)基本步骤上,不能再做任何事情了。
First of all, go to wp-config.php and add this line after the首先,转到 wp-config.php 并在后面添加这一行
@package WordPress @package WordPress
define( 'FS_METHOD', 'direct' );
then open the Terminal and paste this:然后打开终端并粘贴:
sudo chmod -R 777 /Applications/XAMPP/xamppfiles/htdocs/
followed by your system password后跟您的系统密码
Done and done!大功告成!
A usefull video about installing Xampp correctly.关于正确安装 Xampp 的有用视频。
Change in your php.ini after更改你的 php.ini 之后
@package Wordpress @package WordPress
define( 'FS_METHOD', 'direct' );
And change your directory to 777 and the files to 644 in your terminal:并将您的目录更改为 777,并将终端中的文件更改为 644:
sudo find /Applications/XAMPP/xamppfiles/htdocs/ -type d -exec chmod 777 {} \;
sudo find /Applications/XAMPP/xamppfiles/htdocs/ -type f -exec chmod 644 {} \;
Good luck!祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.