Re: Weird server shit and WP
What permissions have you tried for the upload folder ?? What was the permission that you were using before the problem began? Did you try to use 755 or 775 before jumping to 777?
Has anything new happened, especially with hardware or software? New drive on the server, etc ? Are your sites on a dedicated managed server, or on shared hosting? (given your time in adult and the popularity of your sites I’m guessing it’s a managed server, but don’t want to assume that.) Has the HOST upgraded anything, linux version, etc etc ? How about site wp versions or plugin upgrades? Did you have to restore a backup recently?
Permissions will be different from host to host but typically, all files should be owned by your user (ftp) account on your web server, and should be writable by that account. Tell the host “make the files writable by the web user.” This has to happen for EACH site as it is setup, it can’t be globally done to all sites on the server at one time.
Grant whatever is needing updating full web server permissions. The locations you’ll want to note are:
wp-content
wp-content/themes
wp-content/plugins
wp-content/upgrade
Sometimes wp-admin
Within those, depending on what is needing updating/upgrading, you may need to fine tune the permissions on the levels deeper within those directories, but those generally suffice if the setup is kept in tact the entire time. If something is set up/changed differently as it is being updated, or if something was restored from backups and permissions were mass set this will not apply and everything will likely need more granular permissions in the above mentioned locations.
For example I recently had an issue with the ShareThis plugin – it had a file some layers deep that it wanted to write to but only had rx permission instead of rw/rwx.
Any file that needs write access from WordPress should be owned or group-owned by the user account used by the WordPress installation (which may be different than the server account). For example, you may have a user account that lets you FTP files back and forth to your server, but your server itself may run using a separate user, in a separate usergroup, such as dhapache or nobody. If WordPress is running as the FTP account, that account needs to have write access, i.e., be the owner of the files, or belong to a group that has write access. In the latter case, that would mean permissions are set more permissively than default (for example, 775 rather than 755 for folders, and 664 instead of 644).