WordPress Apache Permissions For Easy Update

I need to update my WordPress Apache permissions and I have them set so WordPress doesn’t have write access to the main HTML folder. I always have to Google to remember what I need to set so figured I would write it here so I wouldn’t forget.

sudo find /vol/html/ -type d -exec chmod 777 {} \;
sudo find /vol/html/ -type f -exec chmod 777 {} \;

Once these have run you can run the update successfully, you then just put the files back to my what my previous post recommended.

sudo find /vol/html/ -type d -exec chmod 755 {} \;
sudo find /vol/html/ -type f -exec chmod 644 {} \;
sudo chmod -R 775 /vol/html/wp-content;

Happy updating, though if it doubt you can’t beat the Hardening WordPress page on the Codex.

Music To Write This Code To

TODD TERJE – Strandbar (disko) – Let that Nordic disco take you to a warmer place.

Leave a Reply

Your email address will not be published. Required fields are marked *