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

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

解决安装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 | LED Interactive Chase Effect - Arduino Project 006

CODE | LED Interactive Chase Effect - Arduino Project 006

Leave your circuit board intact from Project 5. You’re just going to add a potentiometer to this cir…

CODE | Pulsating Lamp - Arduino Project 007

CODE | Pulsating Lamp - Arduino Project 007

You are now going try a more advanced method of controlling LEDs. So far, you have simply turned the…

Centos Install OSCommerce 4.0

Centos Install OSCommerce 4.0

osCommerce is a Free shopping cart and open source Ecommerce software. You can choose to host your o…

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…

Installing Redis on CentOS and Configuring Redis

Installing Redis on CentOS and Configuring Redis

CentOS安装Redis及redis启动与关闭、配置Install RedisIn this section you’ll add theEPEL repository, and then…

CODE | L293D Motor Driver IC - Arduino Project 016

CODE | L293D Motor Driver IC - Arduino Project 016

In the previous project, you used a transistor to control the motor. In this project, you are going…

Post a Comment

Anonymous

Feel free to share your thoughts and opinions here.