Replies: 0
Hi,
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.
Error in detail: https://wordpress.org/support/topic/something-may-be-wrong-with-wordpress-org-or-this-servers-configuration-4/
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.