Wordpress Local Install Theme Folder Permission To Edit

I have installed WordPress on a local LAMP installation. All I want is to edit the theme files locally on an editor like

I have installed WordPress on a local LAMP installation. All I want is to edit the theme files locally on an editor like VS Code where I can open the theme folder and start editing on the go.

But I can't access them, as the access is denied to the whole wordpress directory. I can edit the files in the theme editor. But I want to do this in an external code editor. How can I achieve this. What permissions do I have to change.

I used these permissions during installation.

sudo chown -R www-data:www-data /var/www/wordpress

sudo find /var/www/wordpress/ -type d -exec chmod 750 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 640 {} \;

Elementary OS 5.1 based on Ubuntu 18.04

I have installed WordPress on a local LAMP installation. All I want is to edit the theme files locally on an editor like VS Code where I can open the theme folder and start editing on the go.

But I can't access them, as the access is denied to the whole wordpress directory. I can edit the files in the theme editor. But I want to do this in an external code editor. How can I achieve this. What permissions do I have to change.

I used these permissions during installation.

sudo chown -R www-data:www-data /var/www/wordpress

sudo find /var/www/wordpress/ -type d -exec chmod 750 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 640 {} \;

Elementary OS 5.1 based on Ubuntu 18.04

Share Improve this question asked May 19, 2020 at 1:38 GunJackGunJack 1133 bronze badges 1
  • 1 Welcome to StackExchange, GunJack. This is a common problem. By default, web sites are usually configured not to allow editing by users in the web directory. This is a security feature intended to limit a malicious visitor's ability to modify the site contents. There are probably numerous answers on how to set this up either here or on the web in general. Can you please consider adding references to other questions or sites that address your issue and indicating why they aren't the solution you need? – Ted Stresen-Reuter Commented May 19, 2020 at 8:49
Add a comment  | 

1 Answer 1

Reset to default 1

You have to add yourself to group www-data. sudo usermod -a -G www-data yourUserName Don't forget the -a, which appends the new group to your existing groups. Otherwise you loose all other groups.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742421255a4440726.html

相关推荐

  • Wordpress Local Install Theme Folder Permission To Edit

    I have installed WordPress on a local LAMP installation. All I want is to edit the theme files locally on an editor like

    1天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信