Home > CMS Tutorial > WordPress > body text

What permissions do I need to give WordPress when installing a plugin?

Release: 2019-07-13 09:17:47
Original
3655 people have browsed it

What permissions do I need to give WordPress when installing a plugin?

If a website using the WordPress program architecture needs to upgrade, install themes or plug-ins in the background of the website, it will always prompt an interface that requires us to provide FTP information. There is a message like "To perform the requested operation, WordPress needs permission to access your web server. Please enter your FTP login credentials to continue. If you have forgotten your login credentials (such as username, password), please contact you 's website host". This is quite troublesome, try to solve it now!

Use SFTP to connect to the server, enter the wp-content directory, create a new tmp folder, and set the folder permissions to 777. Return to the website root directory, edit wp-config.php

Add the following code (note the Chinese and English symbols)

define('WP_TEMP_DIR',ABSPATH.'wp-content/tmp');
define("FS_METHOD","direct");
define("FS_CHMOD_DIR",0777);
define("FS_CHMOD_FILE",0777);

Note: To define ABSPATH Add

and the final code should be

What permissions do I need to give WordPress when installing a plugin?

After saving, set the permissions of the plugins and themes folders in the wp-content directory to 777. At this time, the plugins and The theme can be updated directly. Pay attention to the order of operations. First create tmp, then set the permission to 777, and then modify the wp-config.php configuration file.

For more wordpress related technical articles, please visit the wordpress tutorial column to learn!

The above is the detailed content of What permissions do I need to give WordPress when installing a plugin?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template