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.
(not my real IP address but I can give it if it helps.)
Any suggestions please for why the PHP does not execute?
2) I think that the cacti config.php file should look like this http://www.yusufozturk.info/wp-content/ ... ture25.png
ie where you enter the database credentials but my /usr/share/cacti/site/include/config.php looks like this
Juc1 wrote:Any suggestions please for why the PHP does not execute?
What http deamon are you using? Apache? If so, please check the configuration. I believe (from the top of my head) that there should be a /etc/apache2/conf.d/cacti.conf file symlinked to /usr/share/doc/cacti/apache.conf
paulgevers wrote:
What http deamon are you using? Apache? If so, please check the configuration. I believe (from the top of my head) that there should be a /etc/apache2/conf.d/cacti.conf file symlinked to /usr/share/doc/cacti/apache.conf
@ paulgevers thanks for your reply. I think my PHP execution problem has been fixed by this:
<?php
##
## database access settings in php format
## automatically generated from /etc/dbconfig-common/cacti.conf
## by /usr/sbin/dbconfig-generate-include
## Fri, 17 Aug 2012 09:12:50 -0400
##
## by default this file is managed via ucf, so you shouldn't have to
## worry about manual changes being silently discarded. *however*,
## you'll probably also want to edit the configuration file mentioned
## above too.
##
$database_username='cacti';
$database_password='my_password';
$basepath='';
$database_default='cacti';
$database_hostname='';
$database_port='';
$dbtype='mysql';
Can you please tell me do I need to edit anything here (such as database hostname which seems to be empty) or does this file look ok as it is?
Juc1 wrote:Can you please tell me do I need to edit anything here (such as database hostname which seems to be empty) or does this file look ok as it is?
I think that should work, just in case, mine working config looks like this: