• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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