Y
Y
YanSao2019-02-18 08:22:56
linux
YanSao, 2019-02-18 08:22:56

How to create templates without root in Wordpress on Linux?

I set up a local server on Kubuntu, it is stored in the /var/www/ folder, and there is the /html folder with Wordpress files and directories, I get to the themes folder, create my own, but every time I write sudo and run an inferior sublime, I don’t want that do. so that the files can be easily edited?
OS: Kubuntu 18.04 bionic
Kernel: x86_64 Linux 4.15.0-45-generic

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Orlov, 2019-02-18
@Yangolo

1) Assign files to the user you are working
as 2) Add the user you are working as to the group that owns the files and
set permissions on the folder/files allowing them to be edited by the user you are working as

usermod -aG www-data <username>
chmod -R 0775 /var/www/html

!!! Before experimenting, make a backup of the /var/www/html folder to keep the current owner settings, privileges.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question