Code: Select all
Linux cacti-server 4.10.10-200.fc25.x86_64 #1 SMP Thu Apr 13 01:11:51 UTC 2017 x86_64 GNU/Linux
Specific error:
Code: Select all
[Tue Apr 25 14:05:01.853727 2017] [proxy_fcgi:error] [pid 25790] [client 192.168.5.5:33550] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /usr/share/webapps/cacti/lib/database.php:52
Stack trace:
#0 /usr/share/webapps/cacti/include/global.php(207): db_connect_real('192.168.5.200', 'cacti_user', 'Cacti_Pass', 'cacti_DB', 'mysql', '3306', false)
#1 /usr/share/webapps/cacti/include/auth.php(27): include('/usr/share/weba...')
#2 /usr/share/webapps/cacti/index.php(25): include('/usr/share/weba...')
#3 {main}
thrown in /usr/share/webapps/cacti/lib/database.php on line 52'
This same host is running PHPMyAdmin, and other web services which are working fine. PHPMyAdmin can connect to the MariaDB database as well.
Special things to consider:
- 1. I've configured the config file under /etc/webapps/cacti/config.php for the remote server as well as the MySQL database (i.e. added user, gave privileges, etc). Because of this, I haven't installed mariadb on the server hosting cacti.
- 2. The list of dependencies for cacti on Arch basically require installing Wayland and Mesa (display server and driver) for cairo. Specifically, it goes: rrdtool < pango < cairo < libgl < mesa < wayland. Where < means "depends on". I've opted to not do this and just copy the libGL.so file to the correct place, and install pango and rrdtool. I *could* be missing a symlink somewhere, but this is probably 100% unrelated to this issue.
Any help is appreciated.