Two problems with CACTI installation on Fedora 27 server
Moderators: Developers, Moderators
Re: Two problems with CACTI installation on Fedora 27 server
How did you create the apache configuration for cacti's website?
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Two problems with CACTI installation on Fedora 27 server
Hello again,
I think I find out where the problem is.
For some reason, probabli because electricity was cutted down, something happened with the database or scrips which use it.
As I told you there is not a single record in the /var/log/httpd/error.log,
but when I checked /var/log/php-frm/www-error.log, i saw the next records (and they appear everytime when I try to access http://my server IP address/cacti/index.php or cacti/install/index.php):
#0 /usr/share/cacti/include/global.php(217): db_connect_real('localhost', 'cactiuser', 'cactipassword', 'cacti', 'mysql', '3306', false)
#1 /usr/share/cacti/install/index.php(28): include_once('/usr/share/cact...')
#2 {main}
thrown in /usr/share/cacti/lib/database.php on line 52
[31-Mar-2018 19:26:31 UTC] PHP Fatal error: Uncaught Error: Class 'PDO' not found in /usr/share/cacti/lib/database.php:52
Stack trace:
#0 /usr/share/cacti/include/global.php(217): db_connect_real('localhost', 'cactiuser', 'cactipassword', 'cacti', 'mysql', '3306', false)
#1 /usr/share/cacti/install/index.php(28): include_once('/usr/share/cact...')
#2 {main}
thrown in /usr/share/cacti/lib/database.php on line 52
[31-Mar-2018 19:27:05 UTC] PHP Fatal error: Uncaught Error: Class 'PDO' not found in /usr/share/cacti/lib/database.php:52
Stack trace:
#0 /usr/share/cacti/include/global.php(217): db_connect_real('localhost', 'cactiuser', 'cactipassword', 'cacti', 'mysql', '3306', false)
#1 /usr/share/cacti/install/index.php(28): include_once('/usr/share/cact...')
#2 {main}
thrown in /usr/share/cacti/lib/database.php on line 52
So I will appreciate if somebody can tell me how to fix this problem.
I think I find out where the problem is.
For some reason, probabli because electricity was cutted down, something happened with the database or scrips which use it.
As I told you there is not a single record in the /var/log/httpd/error.log,
but when I checked /var/log/php-frm/www-error.log, i saw the next records (and they appear everytime when I try to access http://my server IP address/cacti/index.php or cacti/install/index.php):
#0 /usr/share/cacti/include/global.php(217): db_connect_real('localhost', 'cactiuser', 'cactipassword', 'cacti', 'mysql', '3306', false)
#1 /usr/share/cacti/install/index.php(28): include_once('/usr/share/cact...')
#2 {main}
thrown in /usr/share/cacti/lib/database.php on line 52
[31-Mar-2018 19:26:31 UTC] PHP Fatal error: Uncaught Error: Class 'PDO' not found in /usr/share/cacti/lib/database.php:52
Stack trace:
#0 /usr/share/cacti/include/global.php(217): db_connect_real('localhost', 'cactiuser', 'cactipassword', 'cacti', 'mysql', '3306', false)
#1 /usr/share/cacti/install/index.php(28): include_once('/usr/share/cact...')
#2 {main}
thrown in /usr/share/cacti/lib/database.php on line 52
[31-Mar-2018 19:27:05 UTC] PHP Fatal error: Uncaught Error: Class 'PDO' not found in /usr/share/cacti/lib/database.php:52
Stack trace:
#0 /usr/share/cacti/include/global.php(217): db_connect_real('localhost', 'cactiuser', 'cactipassword', 'cacti', 'mysql', '3306', false)
#1 /usr/share/cacti/install/index.php(28): include_once('/usr/share/cact...')
#2 {main}
thrown in /usr/share/cacti/lib/database.php on line 52
So I will appreciate if somebody can tell me how to fix this problem.
Re: Two problems with CACTI installation on Fedora 27 server
OK so you need to make sure you have php-pdo installed and enabled.
Additionally, you need to make sure you have the correct username/password entered in the <cacti>/include/config.php file for connecting to MySQL. As this is the first server, you need to leave the $r prefixed variables alone since they are for the remote pollers.
Additionally, you need to make sure you have the correct username/password entered in the <cacti>/include/config.php file for connecting to MySQL. As this is the first server, you need to leave the $r prefixed variables alone since they are for the remote pollers.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 5 guests