当前位置:首页 > 美丽人生 > 学习成长 > 正文内容

解决WordPress主题及插件需要输入FTP的问题

RonWang2年前 (2023-05-04)学习成长1800

解决安装WordPress主题及插件需要输入FTP问题

发布于2019-12-17 09:20:28阅读 2.2K0

解决安装WordPress主题及插件需要输入FTP问题

安装一个WordPress好像挺简单,但是默认主题不喜欢,想更换一个,无奈本地可以更换,但是服务器更换的时候需要设置FTP 。OK,设置呗,好像我的用户名密码之类的都是正确的,就是不让我通过,因此,找了一下解决方案。

Wordpress

第一步:进入WordPress根目录

第二步:使用 vim wp-config.php

第三步:复制以下代码,添加到文件最后。

添加以下三句代码

define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);

接着重新访问你的网站,重新安装主题,可能就不需要输入密码。


版权声明:本文为原创文章,版权归donstudio所有,欢迎分享本文,转载请保留出处!

本文链接:http://www.donstudio.cn/?id=221

相关文章

TOEFL Writing Studying - 范文分析

TOEFL Writing Studying - 范文分析

Dangerous SportsWhy do you think some people are attacted to do dangerous sports or other dangerous...

CPA Exam BEC Section Content

CPA Exam BEC Section Content

The Business Environment and Concepts (BEC) section of the CPA Exam tests CPA candidates’...

CentOS安装Redis及redis启动与关闭、配置

CentOS安装Redis及redis启动与关闭、配置

Install RedisIn this section you’ll add theEPEL repository, and then use it to install Redis.Ad...

Centos服务器挂载硬盘

Centos服务器挂载硬盘

1. 查看服务器上未挂载的磁盘(磁盘有普通磁盘,高效磁盘,SSD磁盘fdisk -l2. 磁盘分区(分区有主分区,扩展 分区,逻辑分区)fdisk /dev/vdbn->p-...

 TOEFL Writing Studying - Sentence

TOEFL Writing Studying - Sentence

基础经典句型(一) 如此……以至于  so +adj.+be +主词+that +句子So valuable is water resource that we should protect...

To understand them well, look to the past

To understand them well, look to the past

FOR THE past four billion years or so the only way for life on Earth to produce a sequence of DNA—a...