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

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

解决安装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

CODE | Simple RFID Reader - Arduino Project 044

CODE | Simple RFID Reader - Arduino Project 044

Arduino Programming Basic -- Making an RFID ReaderAdvanced RFID with ArduinoRFID (Radio Frequency Id…

Resistor-Electrical Components

Resistor-Electrical Components

A resistor is a passive two-terminal electrical component that implements electrical resistance as a…

CODE | Basic Stepper Control (Bipolar) - Serial to Display - Arduino Project 028A

CODE | Basic Stepper Control (Bipolar) - Serial to Display - Arduino Project 028A

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

CODE | Liquid Crystal Displays Autoscroll - Arduino Project 023A

CODE | Liquid Crystal Displays Autoscroll - Arduino Project 023A

Before wiring the LCD screen to your Arduino board we suggest to solder a pin header strip to the 14…

CODE | Liquid Crystal Displays-Serial to Display - Arduino Project 023C

CODE | Liquid Crystal Displays-Serial to Display - Arduino Project 023C

Before wiring the LCD screen to your Arduino board we suggest to solder a pin header strip to the 14…

DIY - Monochrome Light Cube Maker Introduction Step by Step

DIY - Monochrome Light Cube Maker Introduction Step by Step

First, let's take a look at the complete welded diagram (the shell needs to be purchased separat…

Post a Comment

Anonymous

Feel free to share your thoughts and opinions here.