WordPress Permalinks Issue


Many people seem to have this issue where you create a WordPress site and then when you go to change the site URL structure under “Permalinks”, the site is unable to change it due to permissions.

To Resolve:

1. First thing to figure out is which directory is the root of your website. Doing a generic install it is /var/www/html for Apache.

2. Copy the code it gives you on the WordPress page. Create that file in the directory from step 1 and gave it full permissions (temporarily):

#paste in code from above and save.

3. It said to change permission to apache:apache and run:

3. This should’ve done the trick. But what really happened is once I saved, I got a bunch of AVC Denied errors from Selinux on my Centos VM. So I had to look that up


4. I started thinking, maybe if it’s not just SELinux, but maybe some configuration for Apache.