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.
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.