Permission Issues regarding Plugin updates & FTP transfers

I am looking for a little assistance tracking down my permission issues regarding updating plugins from my admin page or transfering files via FTP into the wp-content file.

I have been searching for an answer for a while but nothing seems to be working.

I have tried: sudo chown -R www-data:www-data ~/html/blog/wp-content but it does not work.

My permissions for the wp-content folder are: drwxr-xr-x 5 root root 4096 Jan 1 13:16 wp-content

ps aux | grep apache (1st line): root 8879 0.0 2.2 125064 22916 ? Ss Jan01 0:09 /usr/sbin/apache2

ps aux | grep wp-content: pi 25195 0.0 0.0 4380 564 pts/0 S+ 22:39 0:00 grep --color=auto

I am thinking that because apache is 'root' and wp-content is 'pi' that might be the problem, but I do not know how to fix it.

Thank you in advance.

Solutions

Wordpress needs a proper read - write permission to work. To make sure everythings fine, try this:

Go to you public_html folder and run the commands

chown www-data:www-data  -R *
find . -type d -exec chmod 755 {} \; 
find . -type f -exec chmod 644 {} \;  

After that, you might wanna tighten your security, read this

That's what works on me, hope it works on you too...

Similar questions

How can I make updates to a site, on a development copy, but then move updates back without overriding live site's evolving database?
I've tried to be as descriptive in the title as possible, and I know this question has been asked in before in various forms but I could not find good answer to it and it's are to imagine that no one has solved this issue. It's simple, once a WP site is live, if it is not a static one then it keeps updating it's database by having new posts added, ...
Permission Issues with Wordpress Multisite running on AWS EC2
I am sure there are many things not done yet to eliminate the technical frustrations that i am currently experiencing with Bitnami Wordpress Multisite 4.6-1 running on AWS. I am taking this opportunity to highlight the issue i am facing on stackoverflow community to get some help, learn, grow and most importantly be able to help as well. This is my...
WordPress Permission Issues with LAMP in Debian 10
I created a LAMP server in Debian 10 on Google Compute Engine. Instead of using /var/www/site/html I want to use /home/user/site/public_html as a root directory for site. I added following code in /etc/apache2/apache2.conf to enable home directory for sites. The permissions for public_html for all sub directories is 775 and for all files is 664. Ow...
Force Plugin Updates: "Update Failed: Plugin update failed." after update one plugin
I'm developing a plugin that needs to do some force update checks for other plugins that I host on my site with EDD, so I had this UI: And when the user clicks on the Update button, it does an API request to my site and decide if there's a new version available for that plugin; if there is a new version, I save some plugin data in a transient. Afte...
Variable Issues & Event Listener Issues: jQuery Enqueued Scripts in Wordpress
I have browsed several Q&A regarding difficulties with enqueuing scripts (including jQuery) into Wordpress, and most seem to cover the trouble that the scripts are not being found at all. I am pretty sure I cracked that nut ok, my scripts appear to be found and loading correctly, but they are not behaving as traditionally expected. Here is a tr...
Some questions regarding filter
1) Take a look at this example xxx_xxxxx can be anything like my_filter or it should be one of the name listed here. 2) Lets say i have some content in my theme outside the_content loop. Example Is there a way to filter Blah blah some text goes here text? Thanks

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.