A
A
Andrew2019-05-09 19:31:15
linux
Andrew, 2019-05-09 19:31:15

How to give WordPress write access to a directory?

Good afternoon!

WordPress constantly asks for a login and password for ftp access, and some operations (media uploads, for example) are not performed at all. At the same time, full rights are given to all users on the server for the folder with the site.

Tell me how else to solve the problem

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alfieros, 2019-05-09
@ToshiyukiHiro

Well, firstly, take away the rights of everyone - this will not help. Secondly, you create a new user in the system, hang the web server itself on the daemon and give write access only to it. That is, you should not have these rights, only from under the root.

P
PatapoIIIka, 2019-05-11
@PatapoIIIka

1. visudo
2. WordPress ALL=(root:root) NOPASSWD: *this should be the full path to the command that WP runs like (/usr/bin/wc)*'
1st ALL - run the command from anywhere, localhost or any other IP;
1st root - run the command as ROOT, be careful I'm not sure if this is safe!
2nd root - run command from ROOT group
NOPASSWD: run the following commands without prompting password
Example: NOPASSWD: /usr/bin/grep,/usr/sbin/ip
Good luck :S

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question