I use FileZilla to upload files over SFTP. File permissions are always set to 664 (rw-rw-r--) by default.
Since the MySQL upgrade, I assume some security settings have been changed: PHP pages will not load unless files are set to 644 (rw-r--r--). Whilst I can manually change permissions with SSH/SFTP, it can take a long time with larger sites, e.g. those using WordPress.
Is there any way to set a default file permission of 644 when a file's uploaded?
Alternatively, does anyone know of a quick way to safely chmod every subdirectory to 755 and every file within them to 644 (-R works to an extent, but I don't know of a way to identify and separate files and folders)?
Since the MySQL upgrade, I assume some security settings have been changed: PHP pages will not load unless files are set to 644 (rw-r--r--). Whilst I can manually change permissions with SSH/SFTP, it can take a long time with larger sites, e.g. those using WordPress.
Is there any way to set a default file permission of 644 when a file's uploaded?
Alternatively, does anyone know of a quick way to safely chmod every subdirectory to 755 and every file within them to 644 (-R works to an extent, but I don't know of a way to identify and separate files and folders)?
Comment