pmhaynes

Just another WordPress site

How to:WordPress directory permissions

Posted by Paul on March 3, 2018
Posted in: Linux, Wordpress.

Source
chown www-data:www-data -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x

The above command will say you days

Finds all the directories and sets them as:

read,write,exec by user

read,exec by group and anon

find . -type f -exec chmod 644 {} \; # Change file permissions rw-r–r–

above command finds all the files and sets them to:

read,write by user

read only by group and anon

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Like this:

Like Loading...

Related

Posts navigation

← How to set default directory for a user VSFTPD
How to set the time zone in Debian →
  • Advert

  • Recent Posts

    • How to change WordPress upload size limit
    • Routing network traffic between 2 subnets using a Raspberry Pi
    • OpenVPN setup
    • How to set the time zone in Debian
    • How to:WordPress directory permissions
  • Recent Comments

    • Archives

      • June 2021 (1)
      • February 2019 (1)
      • December 2018 (1)
      • March 2018 (2)
      • April 2015 (2)
      • January 2015 (1)
      • October 2014 (1)
      • June 2014 (1)
      • May 2014 (6)
      • April 2014 (2)
      • March 2014 (1)
      • January 2014 (1)
      • December 2013 (1)
      • November 2013 (6)
    • Categories

      • Linux
      • Uncategorized
      • Wordpress
    • Meta

      • Log in
      • Entries feed
      • Comments feed
      • WordPress.org
    Proudly powered by WordPress Theme: Parament by Automattic.
    %d bloggers like this: