Link to home
Start Free TrialLog in
Avatar of sharingsunshine
sharingsunshineFlag for United States of America

asked on

Can't Upload Wordpress Images Nor Update Plugins

I am getting this error when I try to upload an image to my server.  I haven't change anything except for the normal centos updates.  Here is the error:

https://gyazo.com/03f0e39e905cdeddda55c2629a53b7b9

This is also affecting my ability to update a plugin.  Where I get this error:

https://gyazo.com/ef7f4ed9f0d28e9d9cfa4a40a3536e02

I have used this writeup to try and fix the problem.  However, nothing changed.  

http://www.wpbeginner.com/wp-tutorials/how-to-fix-image-upload-issue-in-wordpress/

Please help me get this working again.
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Did you change the uploads folder to read/write permissions?
Avatar of sharingsunshine

ASKER

In my understanding of permisssions, yes.  Here is a screenshot of uploads.

https://gyazo.com/6732316180c05b0a7a0e130a93ace41e
You need to have everyone with read/write for that folder https://codex.wordpress.org/Changing_File_Permissions
so what numbers for directory and what for files and still keeping the server secure?
You are only setting the uploads folder so it is read/write for everybody. If you read through the codex link I supplied, it shows
0666	-rw-rw-rw-	all have rw only (6)

Open in new window

OK, I made everything 666 recursively.  Now I am getting this message:

https://gyazo.com/a5d5b2d3aa91e94e812fcc701231c387

Here is a screenshot of the uploads folder

https://gyazo.com/beded4cf2cf391b2d8cf62372f62faa1

Here is the command I used while in the wp-content directory
chmod 666 -R uploads
I work in Windows and not linux/apache.  Try using 777 instead of 666
I appreciate your help but I don't want to do 777 since there are many articles about that being a security risk.
chmod _rwrwrw  directory
chmod drwrwrw directory

definity not execute
r = 4
w = 2
x = 1     you add the bits to get 7 which is the same as rwx
Yes, you are correct, after reading the WP doc, it should have been 755 https://codex.wordpress.org/Changing_File_Permissions. Like I said, I am used to doing this on Windows, not linux.

Some plugins require the /wp-content/ folder be made writeable, but in such cases they will let you know during installation. In some cases, this may require assigning 755 permissions. The same is true for /wp-content/cache/ and maybe /wp-content/uploads/
ASKER CERTIFIED SOLUTION
Avatar of sharingsunshine
sharingsunshine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This has been a very stable website so none of the permission changes helped.  Since, they had been working all along.  That's why I began to look at the actual admin user.