• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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