Unable add plugins and themes to Wordpress
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
Why put all of
httpd
into permissive?Quick test to verify issue
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
semanage permissive -a httpd_t
I used wp-cli on my last new server setup with WP. I did not set this boolean, so the setup process must have done it.
[jbusch@bnaweb01 ~]$ sudo getsebool -a | grep http | grep ' on' httpd_builtin_scripting --> on httpd_can_network_connect --> on httpd_enable_cgi --> on
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
semanage permissive -a httpd_t
I used wp-cli on my last new server setup with WP. I did not set this boolean, so the setup process must have done it.
[jbusch@bnaweb01 ~]$ sudo getsebool -a | grep http | grep ' on' httpd_builtin_scripting --> on httpd_can_network_connect --> on httpd_enable_cgi --> on
It's been awhile since I set mine up per my blog instructions. I don't remember having to do that. Maybe I did, but I didn't incluse that in my instructions so I don't think I did.
-
@Obsolesce said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
semanage permissive -a httpd_t
I used wp-cli on my last new server setup with WP. I did not set this boolean, so the setup process must have done it.
[jbusch@bnaweb01 ~]$ sudo getsebool -a | grep http | grep ' on' httpd_builtin_scripting --> on httpd_can_network_connect --> on httpd_enable_cgi --> on
It's been awhile since I set mine up per my blog instructions. I don't remember having to do that. Maybe I did, but I didn't incluse that in my instructions so I don't think I did.
Last I knew, it is not enable by default. So I assumed that
wp-cli
did it. -
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
-
@EddieJennings said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
Did oyu check the boolean's as noted?
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
Did oyu check the boolean's as noted?
After trying out permissive, yes.
httpd_can_network_connect
is off, though I thought I had taken care of that during my setup process. I know there is asetsebool
command, but I want to see how to do it usingfcontext
as @Obsolesce suggested. -
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
Did oyu check the boolean's as noted?
After trying out permissive, yes.
httpd_can_network_connect
is off, though I thought I had taken care of that during my setup process. I know there is asetsebool
command, but I want to see how to do it usingfcontext
as @Obsolesce suggested.silly.
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
Did oyu check the boolean's as noted?
After trying out permissive, yes.
httpd_can_network_connect
is off, though I thought I had taken care of that during my setup process. I know there is asetsebool
command, but I want to see how to do it usingfcontext
as @Obsolesce suggested.silly.
That I'm a n00b at SELinux and am probably spouting nonsense or that I'm following @Obsolesce 's advice?
-
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
Did oyu check the boolean's as noted?
After trying out permissive, yes.
httpd_can_network_connect
is off, though I thought I had taken care of that during my setup process. I know there is asetsebool
command, but I want to see how to do it usingfcontext
as @Obsolesce suggested.silly.
That I'm a n00b at SELinux and am probably spouting nonsense or that I'm following @Obsolesce 's advice?
That you don't even understand the advice you are following.
What @Obsolesce told you to do was to set ALL things marked as
httpd_t
to permissive. Effectively no different thansetenforce 0
but jsut to the things with the taghttpd_t
.Change the boolean. Turn enforcing back on.
-
@Obsolesce said in Unable add plugins and themes to Wordpress:
httpd_can_network_connect
First go look up WTF that boolean does if you want to learn something.
The name is plenty descriptive for most.
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
Did oyu check the boolean's as noted?
After trying out permissive, yes.
httpd_can_network_connect
is off, though I thought I had taken care of that during my setup process. I know there is asetsebool
command, but I want to see how to do it usingfcontext
as @Obsolesce suggested.silly.
That I'm a n00b at SELinux and am probably spouting nonsense or that I'm following @Obsolesce 's advice?
That you don't even understand the advice you are following.
What @Obsolesce told you to do was to set ALL things marked as
httpd_t
to permissive. Effectively no different thansetenforce 0
but jsut to the things with the taghttpd_t
.Change the boolean. Turn enforcing back on.
I didn't type my thought clearly. The end goal is to find the right way to change
httpd_can_network_connect
to true, and make sure the value is persistent. -
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
Try this to see if it resolves the issue:
semanage permissive -a httpd_t
If that works, then you can do it properly with
fcontext
SELinux was the problem. Next is narrowing down what config to fix, so everything isn't permissive.
Did oyu check the boolean's as noted?
After trying out permissive, yes.
httpd_can_network_connect
is off, though I thought I had taken care of that during my setup process. I know there is asetsebool
command, but I want to see how to do it usingfcontext
as @Obsolesce suggested.silly.
That I'm a n00b at SELinux and am probably spouting nonsense or that I'm following @Obsolesce 's advice?
That you don't even understand the advice you are following.
What @Obsolesce told you to do was to set ALL things marked as
httpd_t
to permissive. Effectively no different thansetenforce 0
but jsut to the things with the taghttpd_t
.Change the boolean. Turn enforcing back on.
I didn't type my thought clearly. The end goal is to find the right way to change
httpd_can_network_connect
to true, and make sure the value is persistent.That does not mesh with WTF you just stated. The two are not the same thing.
You want to set a Boolean. Then you fucking use the tool designed to change booleans.
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
@Obsolesce said in Unable add plugins and themes to Wordpress:
httpd_can_network_connect
First go look up WTF that boolean does if you want to learn something.
The name is plenty descriptive for most.
Just did, and it makes sense.
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
httpd_can_network_connect
And
setsebool -P httpd_can_network_connect on
appears to be the answer . -
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
httpd_can_network_connect
And
setsebool -P httpd_can_network_connect on
appears to be the answer .And has nothing to do with contexts
-
@JaredBusch said in Unable add plugins and themes to Wordpress:
@EddieJennings said in Unable add plugins and themes to Wordpress:
@JaredBusch said in Unable add plugins and themes to Wordpress:
httpd_can_network_connect
And
setsebool -P httpd_can_network_connect on
appears to be the answer .And has nothing to do with contexts
True. That was a point of confusion.