Woah, that’s no good. I can’t imagine how EWWW nuked 30,000 pictures, but if you ever need help, just shoot me a message at https://ewww.io/contact-us/
I should also add, if there is ANY way to reproduce what happened on your site, I would be most interested in digging into the root cause. I’ve built in lots of safeguards to prevent such a thing, but if we can find a hole in that “armor”, I would love to get that taken care of.
Hello again,
Well, I found out the problem after hours later through developer tools. The strange thing I couldn’t manage to find those pictures with Cpanel and I thought all pictures have deleted. (There are 430k pictures in the folder totally) When I checked dev tools, I just saw the 403 error and understood what is going on. I checked the file permissions and all of pictures were 640. I have placed a single picture (in uploads) with 640 permission for a few days ago. I think Ewww has overwrote all pictures with 640 permissions because of that picture. Problem fixed now. After I changed all permissions, it is also working good now.
-
This reply was modified 8 years, 4 months ago by
faramirtr.
EWWW uses the same method as WP for setting the initial permissions. It combines the parent folder permissions with a 0666 mask (read/write for all). So if it changed them all to 640, I would suspect that the parent folder has something like 640 or 750 permissions.
That said, those permissions should be fine, unless the 0 applies to the web server process that is running your site (which IS possible).
Anyway, just double check the permissions on the uploads folder, the 2018 folder, and all sub-folders to make sure they look okay. You’re probably fine now since you reset them, but it doesn’t hurt to double-check.