• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

How to find # yum provides /usr/sbin/semanage

HeloiseB

New Pleskian
I'm new to this: private server & Parallels Plesk Panel....

But how can execute this? And where to put the #?

1. Find the package which provides the semanage utility:
# yum provides /usr/sbin/semanage

and install it (for instance, on Centos 6 x86_64):
# yum install policycoreutils-python-2.0.83-19.24.el6.x86_64

2. Change the context type for webserver configuration files:
# semanage fcontext -a -t httpd_sys_content_t "/var/www/vhosts/[^/]*/conf(/.*)?"

3. Apply context type changes:
# restorecon -Rv /var/www/vhosts/

4. Reconfigure webserver configurations:
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Thanks.
 
Back
Top