WordPress Configuration with SELinux on CentOS 8

Question

My VPS is running with CentOS 8. I installed there WordPress for my website. After finishing setup of my website, I cannot download/update plugin or theme. I got a solution by disabling SELinux for permanently.But, it’s really an idiotic work. Here is a log file of SELinux alert.

I cannot understand, should I allow these things?
LOGS:
SELinux is preventing /usr/sbin/php-fpm from using the execmem access on a process.
SELinux is preventing /usr/sbin/php-fpm from write access on the directory wp-content.
SELinux is preventing /usr/sbin/php-fpm from name_connect access on the tcp_socket port 80.

I just tried one of them to solve:
SELinux is preventing /usr/sbin/php-fpm from write access on the directory wp-content.

by
semanage fcontext -a -t httpd_sys_rw_content_t '/path/wp-content'

restorecon -v 'path/wp-content'

But after, allowing this, still I’m getting SElinux preventing error. Nothing solve for my site.
I also tried by allowing main directory of my website/Wordpress by using semanage as well as chcon. Nothing happened good. Did I do anything worn? or what should I do now to solve SELinux permission error for my website.

TIA
It’ll be grateful for me if I’ll get help from you.

0
Sakib 1 year 2020-07-11T07:10:38-05:00 0 Answers 49 views 0

Leave an answer

Browse
Browse