Set all directories to 755 recursively
fix wordpress folder permissions | chmod 755 directories only recursively | set directories to 755 linux | fix permissions after ftp upload | chmod | find | wordpressCaution: This command changes the system. Understand what it does before you run it.
find /var/www/vhosts/example.com/httpdocs -type d -exec chmod 755 {} +Changes only directories, not files, to 755: the owner can do everything, group and others can read and enter. This is the usual target state for web projects, for example after an FTP upload with wrong permissions. -exec ... {} + passes many paths at once and is therefore fast.
Note: Intentionally stricter permissions (such as 750 for private folders) are overwritten. The counterpart for files: -type f with 644.
Also searched as
- fix wordpress folder permissions
- chmod 755 directories only recursively
- set directories to 755 linux
- fix permissions after ftp upload