How to correctly setup permissions on CentOS for Wordpress?

Posted June 1, 2014 6.6k views
Hi everyone, I am having trouble setting up the permissions to let WordPress create its own files in the WordPress structure. I have followed several tutorials on how to install and configure WordPress, but the last one I used is this one : I changed some of the commands in this tutorial to fit with CentOS (e.g. yum instead of apt-get) and I used the "apache" group name instead of "www-data" because www-data doesn't exist on my current CentOS system. I managed to go through all of it, but I am still stuck. WordPress is still not able to upload images, themes and probably plugins (I haven't tried that one yet, but I'm pretty sure it won't work). Could anyone help me figure out what is the problem please?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
For some reason, this command ended up working:

sudo chown -R www-data:www-data /path/to/WordPress/Installation

I'm pretty sure I already did that one and it didn't work. I suppose I modified some things between this execution of the command and the last one.

I found my answer here:
Thanks for responding and providing your answer.