Code: Select all
ls -Z /var/www/html/cacti/plugins/weathermap/
Code: Select all
drwxrwxr-x. 11 apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 4096 Jul 22 16:09 weathermap
Code: Select all
drwxrwxr-x. 11 apache apache unconfined_u:object_r:user_tmp_t:s0 4096 Jul 22 16:09 weathermap
Code: Select all
restorecon -Rv /var/www/html/cacti/plugins/
Btw, this usually only happens if you have extracted the archive somewhere else and then moved it into that directory. If you extracted the archive directly within the plugins directory, then the context is usually already correctly set.
A side Note:
You can check the default context of a directory using the following semanage command ( this one greps for all /var/www entries):
Code: Select all
semanage fcontext -l | grep /var/www
---