Apache Userdir with SELinux on Fedora 31/30, CentOS/RHEL 8.0/7.7 - Comment Page: 3
This is quick guide howto enable Apache userdirs with SELinux on Fedora 31/30/29/28, CentOS 8.0/7.7/6.10 and Red Hat (RHEL) 8.0/7.7/6.10. This guide assumes that you have Apache (httpd) server installed on your system. This guide uses separeted userdir.conf without touching httpd.conf so later default httpd.conf can be overrided or whole configuration moved simply. This guide uses user called testuser and should be replaced by real user name(s).
[inttf_post_ad1]
Enable Apache Userdirs
1. Change root user
su -
## OR ##
sudo -i
2. Create /etc/httpd/conf.d/userdir.conf file
Open file, with our favorite editor, like:
nano -w...
perfect tutorials, thank you!
thank you very much for these clear explanations.
Very well presented and very informative !
Thanks MUCH
On Fedora 31 I just struggled with this after doing the same thing for years. I noticed I also needed a new semanage bool set in addition to above:
$ setsebool -P httpd_read_user_content 1
Hope this helps someone else.
Thanks!
Ah nevermind now I see the thread above. :)