Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
AH01276: Cannot serve directory /usr/share/cacti/site/: No matching DirectoryIndex (index.php) found, and server-generated directory index forbidden by Options directive
1.if I create info.php file at /var/www/ it shows my installed php components
2.in /etc/apache2/sites-enables I have symlink @cacti.conf to >/sites-available/cacti.conf, cacti.conf have this config:
Alias /cacti /usr/share/cacti/site
<Directory /usr/share/cacti/site>
Options +FollowSymLinks
AllowOverride None
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order Allow,Deny
Allow from all
</IfVersion>
AddType application/x-httpd-php .php
<IfModule mod_php5.c>
php_flag magic_quotes_gpc Off
php_flag short_open_tag On
php_flag register_globals Off
php_flag register_argc_argv On
php_flag track_vars On
# this setting is necessary for some locales
php_value mbstring.func_overload 0
php_value include_path .
</IfModule>
DirectoryIndex index.php
</Directory>
What are you trying to do?
You might have to troubleshoot this on the apache web site, not cacti.
I have cacti-1.2.4 running on RHEL7.6 no problem. I use the standard cacti configuration.
i.e. expand the cacti-1.2.4 in /var/www (or wherever your httpd or httpd24 is installed), then I create two symbolic
links, one in /var/www and one in /var/www/html. The link is this: ln -sf /var/www/cacti-1.2.4 cacti. This works fine.
I would guess you are complicating your install. Suggest reviewing Apache docs, if you want to use
custom directories and *.conf files in your config.
The second one regarding no access kicked me in the teeth for quite some time as well. This was a CentOS install using YUM. I followed the guides, did all I thought I had to, then found out that the <directory> statement isn't in the /etc/httpd/conf/httpd.conf file.
Instead, vi /etc/httpd/conf.d/cacti.conf and make the necessary changes in there.