pmhaynes

Just another WordPress site

  • Buy Adspace

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 X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook

Like this:

Like Loading...

Posts navigation

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

  • Recent Posts

    • MS Office 2010 working links on Microsoft URL
    • Change your LAN from public to Private Profile with Powershell on Windows 10
    • How to change WordPress upload size limit
    • Routing network traffic between 2 subnets using a Raspberry Pi
    • OpenVPN setup
  • Recent Comments

    • Archives

      • March 2023 (2)
      • 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
      • Windows
      • Wordpress
    • Meta

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