Resolving the Need to Enter FTP Credentials for WordPress Themes and Plugins

RonWang5 years ago (2021-05-28)电子编程 COD50

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

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

Wordpress

第一步:进入WordPress根目录

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

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

添加以下三句代码

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

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

Share with Friends:

Related Articles

How to Understand and Select the Right Wire Specifications

How to Understand and Select the Right Wire Specifications

如何读懂和选用合适的电线的规格?初级电线标准和规格入门知识American Wire Gauge “AWG” Chart – Wire Size & Ampacity TableAmerica…

CODE | Based Security System with Lcd Display - Arduino Project 046

CODE | Based Security System with Lcd Display - Arduino Project 046

Components Needed: You will need an Arduino (like Arduino Uno or Nano), an LCD display, a keypa…

CODE | Basic Stepper Control (Unipolar) - Arduino Project 028B

CODE | Basic Stepper Control (Unipolar) - Arduino Project 028B

In this very simple project, you will connect up a stepper motor and then get the Arduino to control…

Arduino Retired Products & Legacy Doc

Arduino Retired Products & Legacy Doc

Arduino Retired Products & Legacy Documentation fromArduino website. Update time : Jan.1.2023&nb…

DIY T12 Soldering (Full-Assembled Kits)

DIY T12 Soldering (Full-Assembled Kits)

前两天我们刚做了一起T12焊台的半散件的DIY组装,但是很多小伙伴反应这个版本的不够过瘾,对T12焊台的结构还是一知半解的,所以今天我们在上一期的基础上做一期特别的,全散件T12零件包的DIY组装视频…

About microcontroller board Arduino

About microcontroller board Arduino

What is Arduino?Update time: Jan.1.2023Arduino designs, manufactures, and supports electronic device…

Post a Comment

Anonymous

Feel free to share your thoughts and opinions here.