Search My Techie Guy

Tuesday, July 14, 2020

ERROR! /usr/share/cacti/log/ Not Writable (Installing Cacti on CentOS 8)

Summary: 

"ERROR!  /usr/share/cacti/log/ Not Writable"

Problem or Goal: 

Installing cacti on CentOS 8

Cause: 

Apache user doesn't have write access to directory /usr/share/cacti/log/

Solution: 

Simply turning off the SELinux (using setenforce cmd) and restarting the services did the trick for me.

Note: SELinux (Security-Enhanced Linux) is a security architecture for Linux® systems that allows administrators to have more control over who can access the system. It was originally developed by the United States National Security Agency (NSA) as a series of patches to the Linux kernel using Linux Security Modules (LSM).

[root@cact-testbed2 jnomwesigwa]# setenforce 0[root@cact-testbed2 jnomwesigwa]# systemctl restart httpd.service[root@cact-testbed2 jnomwesigwa]# systemctl restart mariadb.service

Problem Solved?

yes

2 comments:

Anonymous said...

yes very good it works

Masdims said...

thankyou so much, it works!